summaryrefslogtreecommitdiff
path: root/src/gui/preferencesWindow.vala
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-01-24 09:42:25 +0100
committerAlessandro Ghedini <al3xbio@gmail.com>2012-01-24 09:42:25 +0100
commit21c8b0c749be00fff27e41e4c2d677dd7d320fa0 (patch)
treee439b4de4a50a1bb656762f6e7a79a39431dd526 /src/gui/preferencesWindow.vala
parent60560a030fda3c539ff9dc1563b9926414a193da (diff)
Imported Upstream version 0.4.1upstream/0.4.1
Diffstat (limited to 'src/gui/preferencesWindow.vala')
-rw-r--r--src/gui/preferencesWindow.vala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/preferencesWindow.vala b/src/gui/preferencesWindow.vala
index 022e44b..933919b 100644
--- a/src/gui/preferencesWindow.vala
+++ b/src/gui/preferencesWindow.vala
@@ -129,6 +129,11 @@ public class PreferencesWindow : GLib.Object {
// save settings on close
Config.global.save();
Pies.save();
+
+ Timeout.add(100, () => {
+ IconSelectWindow.clear_icons();
+ return false;
+ });
});
this.window.delete_event.connect(this.window.hide_on_delete);
@@ -181,9 +186,7 @@ public class PreferencesWindow : GLib.Object {
if (pie.icon.contains("/"))
try {
this.icon.pixbuf = new Gdk.Pixbuf.from_file_at_scale(pie.icon,
- this.icon.get_pixel_size(),
- this.icon.get_pixel_size(),
- true);
+ this.icon.get_pixel_size(), this.icon.get_pixel_size(), true);
} catch (GLib.Error error) {
warning(error.message);
}
@@ -305,6 +308,7 @@ public class PreferencesWindow : GLib.Object {
}
this.icon_window.show();
+ this.icon_window.set_icon(PieManager.all_pies[selected_id].icon);
}
}