From 00bd8d42c3b2e3a6fd453393f401cc0af5071135 Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 3 Jan 2013 18:18:04 -0500 Subject: [PATCH] use tabs --- src/fe-gtk/plugin-tray.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c index 73a7572b..17d55780 100644 --- a/src/fe-gtk/plugin-tray.c +++ b/src/fe-gtk/plugin-tray.c @@ -427,29 +427,29 @@ 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 (!gtk_status_icon_is_embedded (sticon)) - { - tray_restore_timer = g_timeout_add(500, (GSourceFunc)tray_menu_try_restore, NULL); - } - else - { - if (tray_restore_timer) - { - g_source_remove (tray_restore_timer); - tray_restore_timer = 0; - } - } - } + if (sticon && strcmp (pspec->name, "embedded") == 0) + { + if (!gtk_status_icon_is_embedded (sticon)) + { + tray_restore_timer = g_timeout_add(500, (GSourceFunc)tray_menu_try_restore, NULL); + } + else + { + if (tray_restore_timer) + { + g_source_remove (tray_restore_timer); + tray_restore_timer = 0; + } + } + } } static gboolean tray_menu_try_restore () { - tray_cleanup(); - tray_init(); - return TRUE; + tray_cleanup(); + tray_init(); + return TRUE; } @@ -661,7 +661,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", G_CALLBACK (tray_menu_notify_cb), NULL); }