ensure menu exists

This commit is contained in:
TingPing 2012-11-20 15:25:38 -05:00
parent ecde599fd4
commit a1c8fd998c

View File

@ -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));*/