diff options
author | David Adam Bordoley <bordoley@msu.edu> | 2003-05-09 00:22:12 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-05-09 00:22:12 +0800 |
commit | 6be59e74845e71b11e1ade1e7e8de2ad6d87f590 (patch) | |
tree | 5931e630f85581ed417fdbbf8a88f772c249ae93 /src/prefs-dialog.c | |
parent | 8de67d32c63ed75c7e4fa233bb4d1afd63770943 (diff) | |
download | gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.tar gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.tar.gz gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.tar.bz2 gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.tar.lz gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.tar.xz gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.tar.zst gsoc2013-epiphany-6be59e74845e71b11e1ade1e7e8de2ad6d87f590.zip |
Convenience function for displaying help. Remove unneeded include of
2003-05-08 David Adam Bordoley <bordoley@msu.edu>
* lib/ephy-gui.c: (ephy_gui_help):
* lib/ephy-gui.h:
Convenience function for displaying help.
Remove unneeded include of gnome-dialog.h
* src/ephy-history-window.c: (cmd_help_contents):
* src/prefs-dialog.c: (prefs_dialog_show_help):
* src/window-commands.c: (window_cmd_help_contents),
(window_cmd_help_about):
* src/bookmarks/ephy-bookmark-properties.c:
(ephy_bookmark_properties_help),
(bookmark_properties_response_cb):
* src/bookmarks/ephy-bookmarks-editor.c:
(cmd_help_contents):
* src/bookmarks/ephy-new-bookmark.c:
(ephy_new_bookmark_help), (response_cb):
Hook up help to windows/dialogs.
Add the guilty parties to about.
* help/C/epiphany.xml:
Fixed the "To Create a New Bookmark" id.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 17ca94cd8..6a58a3b7c 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -28,6 +28,7 @@ #include "ephy-embed-prefs.h" #include "ephy-shell.h" #include "ephy-state.h" +#include "ephy-gui.h" #include <bonobo/bonobo-i18n.h> #include <gtk/gtkframe.h> @@ -38,8 +39,6 @@ #include <gtk/gtkimage.h> #include <gtk/gtklabel.h> #include <gtk/gtkstock.h> -#include <gtk/gtkmessagedialog.h> -#include <libgnome/gnome-help.h> static void prefs_dialog_class_init (PrefsDialogClass *klass); @@ -243,35 +242,20 @@ prefs_dialog_show_help (PrefsDialog *pd) { GError *err = NULL; gint id; + + /* FIXME: Once we actually have documentation we + * should point these at the correct links. + */ gchar *help_preferences[] = { - "ephy-preferences-appearance", - "ephy-preferences-general", - "ephy-preferences-ui", - "ephy-preferences-advanced" + "setting-preferences", + "setting-preferences", + "setting-preferences", + "setting-preferences" }; id = gtk_notebook_get_current_page (GTK_NOTEBOOK (pd->priv->notebook)); - gnome_help_display ("epiphany", help_preferences [id], &err); - if (err != NULL) - { - GtkWidget *err_dialog; - err_dialog = gtk_message_dialog_new ( - GTK_WINDOW (pd), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, - _("Could not display help: %s"), - err->message); - - g_signal_connect (G_OBJECT (err_dialog), "response", - G_CALLBACK (gtk_widget_destroy), - NULL); - gtk_window_set_resizable (GTK_WINDOW (err_dialog), - FALSE); - gtk_widget_show (err_dialog); - g_error_free (err); - } + ephy_gui_help (GTK_WINDOW (pd), "epiphany", help_preferences[id]); } static void |