From c538ad128cef9fea034c4c67405cfb51dc2b6ce3 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 17 Apr 2016 10:13:38 +0200 Subject: [PATCH] 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). --- gtk/xoptions.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4