Enable Help > Contents to open the FAQ on the web.

This commit is contained in:
Christian Dywan 2008-09-07 22:41:03 +02:00
parent ee33d8e3dd
commit f72f48542b

View file

@ -2532,6 +2532,17 @@ _action_about_activate (GtkAction* action,
NULL); NULL);
} }
static void
_action_help_contents_activate (GtkAction* action,
MidoriBrowser* browser)
{
const gchar* faq_uri = "http://wiki.xfce.org/_export/xhtml/midori_faq";
gint n;
n = midori_browser_add_uri (browser, faq_uri);
midori_browser_set_current_page (browser, n);
}
static void static void
_action_panel_activate (GtkToggleAction* action, _action_panel_activate (GtkToggleAction* action,
MidoriBrowser* browser) MidoriBrowser* browser)
@ -2907,7 +2918,7 @@ static const GtkActionEntry entries[] = {
{ "Help", NULL, N_("_Help") }, { "Help", NULL, N_("_Help") },
{ "HelpContents", GTK_STOCK_HELP, { "HelpContents", GTK_STOCK_HELP,
N_("_Contents"), "F1", N_("_Contents"), "F1",
N_("Show the documentation"), NULL/*G_CALLBACK (_action_help_contents_activate)*/ }, N_("Show the documentation"), G_CALLBACK (_action_help_contents_activate) },
{ "About", GTK_STOCK_ABOUT, { "About", GTK_STOCK_ABOUT,
NULL, "", NULL, "",
N_("Show information about the program"), G_CALLBACK (_action_about_activate) }, N_("Show information about the program"), G_CALLBACK (_action_about_activate) },