mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 20:52:16 -05:00
ensure menu exists
This commit is contained in:
parent
ecde599fd4
commit
a1c8fd998c
@ -540,7 +540,10 @@ tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
|
|||||||
hexchat_set_context (ph, hexchat_find_context (ph, NULL, NULL));
|
hexchat_set_context (ph, hexchat_find_context (ph, NULL, NULL));
|
||||||
|
|
||||||
/* close any old menu */
|
/* close any old menu */
|
||||||
|
if (G_IS_OBJECT (menu))
|
||||||
|
{
|
||||||
tray_menu_destroy (menu, NULL);
|
tray_menu_destroy (menu, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
menu = gtk_menu_new ();
|
menu = gtk_menu_new ();
|
||||||
/*gtk_menu_set_screen (GTK_MENU (menu), gtk_widget_get_screen (widget));*/
|
/*gtk_menu_set_screen (GTK_MENU (menu), gtk_widget_get_screen (widget));*/
|
||||||
|
Loading…
Reference in New Issue
Block a user