aboutsummaryrefslogtreecommitdiff
path: root/tray.c
diff options
context:
space:
mode:
Diffstat (limited to 'tray.c')
-rw-r--r--tray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tray.c b/tray.c
index ac9596d..eb6c65a 100644
--- a/tray.c
+++ b/tray.c
@@ -221,7 +221,8 @@ void tray_init()
gtk_status_icon_set_has_tooltip (tray, TRUE);
g_signal_connect(G_OBJECT(tray), "query-tooltip", GTK_SIGNAL_FUNC(update_tooltip), NULL);
g_signal_connect(G_OBJECT(tray), "popup-menu", GTK_SIGNAL_FUNC(popup_menu), NULL);
- gtk_timeout_add(1000, update_icon, NULL);
+ g_signal_connect(G_OBJECT(tray), "activate", GTK_SIGNAL_FUNC(activate), NULL);
+ g_timeout_add(1000, update_icon, NULL);
tray_init_menu();
}