summaryrefslogtreecommitdiff
path: root/src/gui/themeList.vala
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-03-05 12:20:00 +0100
committerAlessandro Ghedini <al3xbio@gmail.com>2012-03-05 12:20:00 +0100
commit9efffcc071e59e6c0fe5d0b406e558cc7319e8ee (patch)
tree1f4d8d555dc439403da78c52e413be3c29833c21 /src/gui/themeList.vala
parent75655ffca55cb5e5ca51d8f6a4d3d600f1f54cdc (diff)
parent98f3ef2689de06e8ab8b46a91acfa7dd2056a3a6 (diff)
Merge tag 'upstream/0.5.1'
Upstream version 0.5.1
Diffstat (limited to 'src/gui/themeList.vala')
-rw-r--r--src/gui/themeList.vala12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/themeList.vala b/src/gui/themeList.vala
index 7aaecc6..1c038a9 100644
--- a/src/gui/themeList.vala
+++ b/src/gui/themeList.vala
@@ -24,6 +24,15 @@ namespace GnomePie {
class ThemeList : Gtk.TreeView {
/////////////////////////////////////////////////////////////////////
+ /// This signal gets emitted, when a new theme is selected by the
+ /// user. This new theme is applied automatically, with this signal
+ /// actions may be triggered which should be executed AFTER the
+ /// change to a new theme.
+ /////////////////////////////////////////////////////////////////////
+
+ public signal void on_select_new();
+
+ /////////////////////////////////////////////////////////////////////
/// The currently selected row.
/////////////////////////////////////////////////////////////////////
@@ -69,6 +78,9 @@ class ThemeList : Gtk.TreeView {
Timeout.add(10, () => {
int index = int.parse(data.get_path(active).to_string());
Config.global.theme = Config.global.themes[index];
+
+ this.on_select_new();
+
Config.global.theme.load();
Config.global.theme.load_images();
return false;