1 workaround for crash in g_type_check_instance_is_fundamentally_a when one
2 right-clicks icon tray multiple times
3 --- hexchat-2.10.2/src/fe-gtk/plugin-tray.c.~1~ 2014-11-25 20:42:31.000000000 +0300
4 +++ hexchat-2.10.2/src/fe-gtk/plugin-tray.c 2016-04-16 13:09:52.722359586 +0300
7 tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
9 - static GtkWidget *menu;
15 /* ph may have an invalid context now */
16 hexchat_set_context (ph, hexchat_find_context (ph, NULL, NULL));
18 - /* close any old menu */
19 - if (G_IS_OBJECT (menu))
21 - tray_menu_destroy (menu, NULL);
24 menu = gtk_menu_new ();
25 /*gtk_menu_set_screen (GTK_MENU (menu), gtk_widget_get_screen (widget));*/