aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorEkaterina Gerasimova <kittykat3756@gmail.com>2013-07-07 05:54:56 +0800
committerEkaterina Gerasimova <kittykat3756@gmail.com>2013-08-04 23:37:10 +0800
commit1feec7d16afd3c0396e3dde422001d95bea15bf7 (patch)
tree30d2eb05b35bff4a4f7ffa72301e255b65579ac5 /src/ephy-shell.c
parent3959996638d390e27eb4e1e78c62cd04eb6b8071 (diff)
downloadgsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.tar
gsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.tar.gz
gsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.tar.bz2
gsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.tar.lz
gsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.tar.xz
gsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.tar.zst
gsoc2013-epiphany-1feec7d16afd3c0396e3dde422001d95bea15bf7.zip
Update links to help, add app menuitem
Update ephy_gui_help to link to pages, not sections. Update links to pages in the new help. Add an app menu Help item. Change the link from the preference dialog to link to the pref.page because one page per tab is not compatible with the help style…
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index bfb6d7a4a..d82479229 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -188,6 +188,18 @@ show_pdm (GSimpleAction *action,
}
static void
+show_help (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
+{
+ GtkWindow *window;
+
+ window = gtk_application_get_active_window (GTK_APPLICATION (ephy_shell));
+
+ window_cmd_help_contents (NULL, GTK_WIDGET (window));
+}
+
+static void
show_about (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
@@ -214,6 +226,7 @@ static GActionEntry app_entries[] = {
{ "history", show_history, NULL, NULL, NULL },
{ "preferences", show_preferences, NULL, NULL, NULL },
{ "pdm", show_pdm, NULL, NULL, NULL },
+ { "help", show_help, NULL, NULL, NULL },
{ "about", show_about, NULL, NULL, NULL },
{ "quit", quit_application, NULL, NULL, NULL },
};