rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / desktop / hexchat / patches / workaround-crash.patch
blob40b1d9a631149af0255af2c1a410d6e51dd78aec
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
5 @@ -607,7 +607,7 @@
6 static void
7 tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
9 - static GtkWidget *menu;
10 + GtkWidget *menu;
11 GtkWidget *submenu;
12 GtkWidget *item;
13 int away_status;
14 @@ -615,12 +615,6 @@
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))
20 - {
21 - tray_menu_destroy (menu, NULL);
22 - }
24 menu = gtk_menu_new ();
25 /*gtk_menu_set_screen (GTK_MENU (menu), gtk_widget_get_screen (widget));*/