aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorDavid Adam Bordoley <bordoley@msu.edu>2003-05-09 00:22:12 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-05-09 00:22:12 +0800
commit6be59e74845e71b11e1ade1e7e8de2ad6d87f590 (patch)
tree5931e630f85581ed417fdbbf8a88f772c249ae93 /src/window-commands.c
parent8de67d32c63ed75c7e4fa233bb4d1afd63770943 (diff)
downloadgsoc2013-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/window-commands.c')
-rw-r--r--src/window-commands.c34
1 files changed, 5 insertions, 29 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index be6bbcca9..a64305efe 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -16,11 +16,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*
- * 25 Mar 2003: Added support for help manual : Patanjali Somayaji
- * (patanjali@codito.com)
- */
-
#include <config.h>
#include "ephy-shell.h"
@@ -40,6 +35,7 @@
#include "ephy-file-helpers.h"
#include "toolbar.h"
#include "ephy-state.h"
+#include "ephy-gui.h"
#include <string.h>
#include <libgnomevfs/gnome-vfs-uri.h>
@@ -47,9 +43,7 @@
#include <bonobo/bonobo-i18n.h>
#include <libgnomeui/gnome-about.h>
#include <libgnomeui/gnome-stock-icons.h>
-#include <libgnome/gnome-help.h>
#include <libgnome/gnome-program.h>
-#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkeditable.h>
enum
@@ -730,28 +724,7 @@ void
window_cmd_help_contents (EggAction *action,
EphyWindow *window)
{
- GError *err;
-
- err = NULL;
- gnome_help_display ("epiphany", NULL, &err);
-
- if (err != NULL)
- {
- GtkWidget *dialog;
- dialog = gtk_message_dialog_new (GTK_WINDOW (window),
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- _("Could not display help: %s"), err->message);
-
- g_signal_connect (G_OBJECT (dialog), "response",
- G_CALLBACK (gtk_widget_destroy),
- NULL);
-
- gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
- gtk_widget_show (dialog);
- g_error_free (err);
- }
+ ephy_gui_help (GTK_WINDOW (window), "epiphany", NULL);
}
void
@@ -765,11 +738,14 @@ window_cmd_help_about (EggAction *action,
static gchar *authors[] = {
"Marco Pesenti Gritti <mpeseng@tin.it>",
+ "Xan Lopez <xan@masilla.org>",
+ "David Bordoley <bordoley@msu.edu>",
NULL
};
gchar *documenters[] = {
"Patanjali Somayaji <patanjali@codito.com>",
+ "David Bordoley <bordoley@msu.edu>",
NULL
};