From: H.G.Muller Date: Sun, 17 Apr 2016 08:13:38 +0000 (+0200) Subject: Provide help clicks on recently-used-engines menu items X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c538ad128cef9fea034c4c67405cfb51dc2b6ce3;p=xboard.git Provide help clicks on recently-used-engines menu items The items for recently used engines in the Engine menu are now recognized as such, and will look for help on "Recently Used Engines" rather than on the item text (which is the engine name). --- diff --git a/gtk/xoptions.c b/gtk/xoptions.c index d84d425..3cf123e 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -503,7 +503,7 @@ CreateMenuPopup (Option *opt, int n, int def) } else entry = gtk_menu_item_new_with_label(msg); gtk_signal_connect_object (GTK_OBJECT (entry), "activate", GTK_SIGNAL_FUNC(MenuSelect), (gpointer) (intptr_t) ((n<<16)+i)); - g_signal_connect(entry, "button-release-event", G_CALLBACK (HelpEvent), (gpointer) mb[i].string ); + g_signal_connect(entry, "button-release-event", G_CALLBACK (HelpEvent), (gpointer) (mb[i].proc ? mb[i].string : "Recently Used Engines")); if(mb[i].accel) { guint accelerator_key; GdkModifierType accelerator_mods;