From 1759dc27ca9ce0095fdc8ff53dc3728dfff78595 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Tue, 11 Jan 2011 00:18:00 +0100 Subject: [PATCH] disable tray context menu completely as it's pretty much useless ATM --- xchat-wdk.patch | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xchat-wdk.patch b/xchat-wdk.patch index 5cae6432..2a5d9831 100644 --- a/xchat-wdk.patch +++ b/xchat-wdk.patch @@ -1635,7 +1635,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/palette.c xchat-wdk/src/ #include diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/plugin-tray.c xchat-wdk/src/fe-gtk/plugin-tray.c --- xchat-wdk.orig/src/fe-gtk/plugin-tray.c 2010-11-16 09:26:23 +0100 -+++ xchat-wdk/src/fe-gtk/plugin-tray.c 2011-01-10 09:32:04 +0100 ++++ xchat-wdk/src/fe-gtk/plugin-tray.c 2011-01-11 00:16:30 +0100 @@ -1,8 +1,7 @@ /* Copyright (C) 2006-2007 Peter Zelezny. */ @@ -1691,6 +1691,17 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/plugin-tray.c xchat-wdk/ mg_create_icon_item (_("_Quit"), GTK_STOCK_QUIT, menu, tray_menu_quit_cb, NULL); menu_add_plugin_items (menu, "\x5$TRAY", NULL); +@@ -631,8 +632,8 @@ + sticon = gtk_status_icon_new_from_pixbuf (ICON_NORMAL); + if (!sticon) + return; +- g_signal_connect (G_OBJECT (sticon), "popup-menu", +- G_CALLBACK (tray_menu_cb), sticon); ++ /* g_signal_connect (G_OBJECT (sticon), "popup-menu", ++ G_CALLBACK (tray_menu_cb), sticon); */ + g_signal_connect (G_OBJECT (sticon), "activate", + G_CALLBACK (tray_menu_restore_cb), NULL); + } @@ -650,15 +651,15 @@ /* FIXME: hides any previous private messages */ tray_hilight_count++;