From 1feec7d16afd3c0396e3dde422001d95bea15bf7 Mon Sep 17 00:00:00 2001 From: Ekaterina Gerasimova Date: Sat, 6 Jul 2013 22:54:56 +0100 Subject: Update links to help, add app menuitem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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… --- src/prefs-dialog.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/prefs-dialog.c') 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 @@ -112,30 +112,6 @@ prefs_dialog_class_init (PrefsDialogClass *klass) g_type_class_add_private (object_class, sizeof(PrefsDialogPrivate)); } -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", ¬ebook, - 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; } -- cgit v1.2.3