diff options
author | Jason Leach <jleach@ximian.com> | 2001-08-16 04:28:21 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-08-16 04:28:21 +0800 |
commit | 23587cb770e5c00d212097ffee974247875955ea (patch) | |
tree | b05783d76758cb9dfc7af935d68c991e0fb3f79e /shell/e-shell-view-menu.c | |
parent | 3b25ec8b5e8464405b1f53aea50c5fd821be61d1 (diff) | |
download | gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.tar gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.tar.gz gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.tar.bz2 gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.tar.lz gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.tar.xz gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.tar.zst gsoc2013-evolution-23587cb770e5c00d212097ffee974247875955ea.zip |
Don't hardcode/build a help URI here, use gnome_help_display() instead,
2001-08-15 Jason Leach <jleach@ximian.com>
* e-shell-view-menu.c (command_help): Don't hardcode/build a help
URI here, use gnome_help_display() instead, which will figure out
what language the user needs, etc.
(help_verbs): Adapt these menu items to above changes, they don't
need to pass "evolution/foo.html" to command_help, just
"foo.html".
svn path=/trunk/; revision=12072
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 56239224f2..8575f472e4 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -34,6 +34,7 @@ #include <libgnome/gnome-defs.h> #include <libgnome/gnome-exec.h> +#include <libgnome/gnome-help.h> #include <libgnome/gnome-i18n.h> #include <libgnome/gnome-url.h> #include <libgnome/gnome-util.h> @@ -233,11 +234,9 @@ command_help (BonoboUIComponent *uih, void *data, const char *path) { - char *url; + GnomeHelpMenuEntry help_entry = { "evolution", data }; - url = g_strdup_printf ("ghelp:%s/gnome/help/evolution/C/%s", - EVOLUTION_DATADIR, (char *)data); - gnome_url_show (url); + gnome_help_display (NULL, &help_entry); } static void @@ -637,11 +636,11 @@ BonoboUIVerb folder_verbs [] = { }; BonoboUIVerb help_verbs [] = { - BONOBO_UI_VERB_DATA ("HelpIndex", command_help, "evolution/index.html"), - BONOBO_UI_VERB_DATA ("HelpGetStarted", command_help, "evolution/usage-mainwindow.html"), - BONOBO_UI_VERB_DATA ("HelpUsingMail", command_help, "evolution/usage-mail.html"), - BONOBO_UI_VERB_DATA ("HelpUsingCalendar", command_help, "evolution/usage-calendar.html"), - BONOBO_UI_VERB_DATA ("HelpUsingContact", command_help, "evolution/usage-contact.html"), + BONOBO_UI_VERB_DATA ("HelpIndex", command_help, "index.html"), + BONOBO_UI_VERB_DATA ("HelpGetStarted", command_help, "usage-mainwindow.html"), + BONOBO_UI_VERB_DATA ("HelpUsingMail", command_help, "usage-mail.html"), + BONOBO_UI_VERB_DATA ("HelpUsingCalendar", command_help, "usage-calendar.html"), + BONOBO_UI_VERB_DATA ("HelpUsingContact", command_help, "usage-contact.html"), BONOBO_UI_VERB_END }; |