diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/wlib/gtklib/help.c | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/wlib/gtklib/help.c')
-rw-r--r-- | app/wlib/gtklib/help.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/app/wlib/gtklib/help.c b/app/wlib/gtklib/help.c index 8f2766d..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 @@ -28,7 +28,8 @@ #include <gtk/gtk.h> #include <gdk/gdk.h> -#include "misc.h" +//#include "misc.h" +extern const char * GetCurCommandName(); #include "gtkint.h" #include "i18n.h" @@ -45,29 +46,31 @@ 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("index"); - 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); } @@ -80,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); } |