aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.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/prefs-dialog.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/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 932da6336..fd322ef33 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -113,30 +113,6 @@ prefs_dialog_class_init (PrefsDialogClass *klass)
}
static void
-prefs_dialog_show_help (EphyDialog *dialog)
-{
- GtkWidget *window, *notebook;
- int id;
-
- static const char help_preferences[][28] = {
- "general-preferences",
- "fonts-and-style-preferences",
- "privacy-preferences",
- "language-preferences"
- };
-
- ephy_dialog_get_controls (dialog,
- "prefs_dialog", &window,
- "prefs_notebook", &notebook,
- NULL);
-
- id = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook));
- id = CLAMP (id, 0, 3);
-
- ephy_gui_help (window, help_preferences[id]);
-}
-
-static void
css_edit_button_clicked_cb (GtkWidget *button,
PrefsDialog *pd)
{
@@ -897,7 +873,7 @@ prefs_dialog_response_cb (GtkDialog *widget,
{
if (response == GTK_RESPONSE_HELP)
{
- prefs_dialog_show_help (dialog);
+ ephy_gui_help (GTK_WIDGET (widget), "pref");
return;
}