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));
|
||||
|
||||
/* close any old menu */
|
||||
if (G_IS_OBJECT (menu))
|
||||
{
|
||||
tray_menu_destroy (menu, NULL);
|
||||
}
|
||||
|
||||
menu = gtk_menu_new ();
|
||||
/*gtk_menu_set_screen (GTK_MENU (menu), gtk_widget_get_screen (widget));*/
|
||||
|
Loading…
Reference in New Issue
Block a user