mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 22:42:06 +00:00
1 file changed
+16
@@ -418,6 +418,17 @@ tray_app_indicator_cleanup (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
tray_app_indicator_activate_cb (AppIndicator *indicator, gint x, gint y, gpointer userdata)
|
||||||
|
{
|
||||||
|
(void)indicator;
|
||||||
|
(void)x;
|
||||||
|
(void)y;
|
||||||
|
(void)userdata;
|
||||||
|
|
||||||
|
tray_menu_restore_cb (NULL, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
tray_app_indicator_init (void)
|
tray_app_indicator_init (void)
|
||||||
{
|
{
|
||||||
@@ -430,6 +441,11 @@ tray_app_indicator_init (void)
|
|||||||
if (!tray_indicator)
|
if (!tray_indicator)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
/* Primary activation was added in Ayatana AppIndicator 0.6.0. */
|
||||||
|
if (g_signal_lookup ("activate", G_OBJECT_TYPE (tray_indicator)))
|
||||||
|
g_signal_connect (G_OBJECT (tray_indicator), "activate",
|
||||||
|
G_CALLBACK (tray_app_indicator_activate_cb), NULL);
|
||||||
|
|
||||||
tray_menu = gtk_menu_new ();
|
tray_menu = gtk_menu_new ();
|
||||||
g_signal_connect (G_OBJECT (tray_menu), "show",
|
g_signal_connect (G_OBJECT (tray_menu), "show",
|
||||||
G_CALLBACK (tray_menu_show_cb), NULL);
|
G_CALLBACK (tray_menu_show_cb), NULL);
|
||||||
|
|||||||
Reference in new issue
Block a user