mirror of
https://github.com/moparisthebest/hexchat
synced 2024-10-31 15:35:03 -04:00
use notify::embedded
This commit is contained in:
parent
00bd8d42c3
commit
af92429ea0
@ -427,7 +427,7 @@ tray_menu_restore_cb (GtkWidget *item, gpointer userdata)
|
|||||||
static void
|
static void
|
||||||
tray_menu_notify_cb (GObject *tray, GParamSpec *pspec, gpointer user_data)
|
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))
|
if (!gtk_status_icon_is_embedded (sticon))
|
||||||
{
|
{
|
||||||
@ -452,7 +452,6 @@ tray_menu_try_restore ()
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
tray_menu_quit_cb (GtkWidget *item, gpointer userdata)
|
tray_menu_quit_cb (GtkWidget *item, gpointer userdata)
|
||||||
{
|
{
|
||||||
@ -661,7 +660,7 @@ tray_init (void)
|
|||||||
g_signal_connect (G_OBJECT (sticon), "activate",
|
g_signal_connect (G_OBJECT (sticon), "activate",
|
||||||
G_CALLBACK (tray_menu_restore_cb), NULL);
|
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);
|
G_CALLBACK (tray_menu_notify_cb), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user