From 5d2c2b27a6323e2666378b986129b2a7c2c39e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 6 Feb 2022 16:04:24 +0100 Subject: New upstream version 5.2.2GA --- app/wlib/gtklib/help.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/wlib/gtklib/help.c') diff --git a/app/wlib/gtklib/help.c b/app/wlib/gtklib/help.c index 8f2766d..45d1813 100644 --- a/app/wlib/gtklib/help.c +++ b/app/wlib/gtklib/help.c @@ -28,7 +28,8 @@ #include #include -#include "misc.h" +//#include "misc.h" +extern const char * GetCurCommandName(); #include "gtkint.h" #include "i18n.h" @@ -51,7 +52,7 @@ DoHelpMenu(void *data) switch (func) { case 1: - wHelp("index"); + wHelp("contents"); break; case 3: -- cgit v1.2.3 From a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 3 Jul 2024 10:19:30 +0200 Subject: New upstream version 5.3.0GA --- app/wlib/gtklib/help.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'app/wlib/gtklib/help.c') diff --git a/app/wlib/gtklib/help.c b/app/wlib/gtklib/help.c index 45d1813..f062b83 100644 --- a/app/wlib/gtklib/help.c +++ b/app/wlib/gtklib/help.c @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #define GTK_DISABLE_SINGLE_INCLUDES @@ -46,29 +46,31 @@ extern const char * GetCurCommandName(); static void DoHelpMenu(void *data) { - int func = (intptr_t)data; + int func = (intptr_t)data; - const char * topic; + const char * topic; - switch (func) { - case 1: - wHelp("contents"); - break; + switch (func) { + case 1: + wHelp("contents"); + break; - case 3: - topic = GetCurCommandName(); - if (topic && topic[0]) - wHelp(topic); - break; + case 3: + topic = GetCurCommandName(); + if (topic && topic[0]) { + wHelp(topic); + } + break; - default: - break; - } + default: + break; + } - return; + return; } -void wDoAccelHelp(wAccelKey_e key, void * context) { +void wDoAccelHelp(wAccelKey_e key, void * context) +{ DoHelpMenu(context); } @@ -81,6 +83,6 @@ void wDoAccelHelp(wAccelKey_e key, void * context) { void wMenuAddHelp(wMenu_p m) { - wMenuPushCreate(m, NULL, _("&Contents"), 0, DoHelpMenu, (void*)1); - wMenuPushCreate(m, NULL, _("Co&mmand Context help"), 0, DoHelpMenu, (void*)3); + wMenuPushCreate(m, NULL, _("&Contents"), 0, DoHelpMenu, (void*)1); + wMenuPushCreate(m, NULL, _("Co&mmand Context help"), 0, DoHelpMenu, (void*)3); } -- cgit v1.2.3