summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-01-04 20:30:30 -0500
committerTingPing <tingping@tingping.se>2013-01-04 20:30:30 -0500
commitaf92429ea05918dfa2502eb3ba2323b1423870cb (patch)
treeae7e4d397faba3178eb24f59560f0bc83c7b8f28
parent00bd8d42c3b2e3a6fd453393f401cc0af5071135 (diff)
use notify::embedded
-rw-r--r--src/fe-gtk/plugin-tray.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c
index 17d55780..ccd00f97 100644
--- a/src/fe-gtk/plugin-tray.c
+++ b/src/fe-gtk/plugin-tray.c
@@ -427,7 +427,7 @@ tray_menu_restore_cb (GtkWidget *item, gpointer userdata)
 static void
 tray_menu_notify_cb (GObject *tray, GParamSpec *pspec, gpointer user_data)
 {
-	if (sticon && strcmp (pspec->name, "embedded") == 0)
+	if (sticon)
 	{
 		if (!gtk_status_icon_is_embedded (sticon))
 		{
@@ -452,7 +452,6 @@ tray_menu_try_restore ()
 	return TRUE;
 }
 
-
 static void
 tray_menu_quit_cb (GtkWidget *item, gpointer userdata)
 {
@@ -661,7 +660,7 @@ tray_init (void)
 	g_signal_connect (G_OBJECT (sticon), "activate",
 							G_CALLBACK (tray_menu_restore_cb), NULL);
 
-	g_signal_connect (G_OBJECT (sticon), "notify",
+	g_signal_connect (G_OBJECT (sticon), "notify::embedded",
 							G_CALLBACK (tray_menu_notify_cb), NULL);
 }