[Xfce4-commits] [xfce/xfdesktop] 01/01: Hook up the signal handlers in xfdesktop-settings
noreply at xfce.org
noreply at xfce.org
Sun Apr 6 21:44:30 CEST 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit 9e1b9dce4a598534a67b8fdaf7c23a37131277b4
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sun Apr 6 22:40:54 2014 +0300
Hook up the signal handlers in xfdesktop-settings
When xfdesktop-settings is plugged into the settings manager, it
needs to watch workspace and geometry changes to keep track of the
where it is. This happens differently from when it isn't a GtkPlug.
---
settings/main.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/settings/main.c b/settings/main.c
index de80eea..476cee5 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -2111,6 +2111,13 @@ main(int argc, char **argv)
wnck_screen = wnck_screen_get(screen);
wnck_screen_force_update(wnck_screen);
panel->wnck_window = wnck_screen_get_active_window(wnck_screen);
+
+ /* These callbacks are for updating the image_iconview when the window
+ * moves to another monitor or workspace */
+ g_signal_connect(panel->wnck_window, "geometry-changed",
+ G_CALLBACK(cb_update_background_tab), panel);
+ g_signal_connect(panel->wnck_window, "workspace-changed",
+ G_CALLBACK(cb_update_background_tab), panel);
}
panel->channel = channel;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list