aboutsummaryrefslogtreecommitdiffstats
path: root/applets/showdesktop/showdesktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/showdesktop/showdesktop.c')
-rw-r--r--applets/showdesktop/showdesktop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/applets/showdesktop/showdesktop.c b/applets/showdesktop/showdesktop.c
index 61dd5c2..33c13e1 100644
--- a/applets/showdesktop/showdesktop.c
+++ b/applets/showdesktop/showdesktop.c
@@ -181,6 +181,12 @@ button_clicked_cb (GtkButton *button,
&xev);
}
+static void
+realize_cb (GtkWidget *button, ShowDesktopApplet *applet)
+{
+ sync_applet (applet);
+}
+
G_MODULE_EXPORT GtkWidget *
mb_panel_applet_create (const char *id,
GtkOrientation orientation)
@@ -216,6 +222,10 @@ mb_panel_applet_create (const char *id,
"clicked",
G_CALLBACK (button_clicked_cb),
applet);
+ g_signal_connect (button,
+ "realize",
+ G_CALLBACK (realize_cb),
+ applet);
g_object_weak_ref (G_OBJECT (button),
(GWeakNotify) show_desktop_applet_free,