From f72f48542b1693a5e9362e36931dfefaa7cb3dd7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 7 Sep 2008 22:41:03 +0200 Subject: [PATCH] Enable Help > Contents to open the FAQ on the web. --- midori/midori-browser.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index b5c7c1a5..49905f61 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2532,6 +2532,17 @@ _action_about_activate (GtkAction* action, 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 _action_panel_activate (GtkToggleAction* action, MidoriBrowser* browser) @@ -2907,7 +2918,7 @@ static const GtkActionEntry entries[] = { { "Help", NULL, N_("_Help") }, { "HelpContents", GTK_STOCK_HELP, 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, NULL, "", N_("Show information about the program"), G_CALLBACK (_action_about_activate) },