diff options
author | Patanjali Somayaji <patanjali@codito.com> | 2003-03-27 01:05:07 +0800 |
---|---|---|
committer | Patanjali Somayaji <patanja@src.gnome.org> | 2003-03-27 01:05:07 +0800 |
commit | 712aae808ee329cafdcb92e78f145a50c78b89b8 (patch) | |
tree | 6dc60b00e68273e1ce42cfd7ce4dd7e79d21ada6 /src/window-commands.c | |
parent | 61972bb181cc4de1537d1137e797edd7f386ae91 (diff) | |
download | gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.tar gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.tar.gz gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.tar.bz2 gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.tar.lz gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.tar.xz gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.tar.zst gsoc2013-epiphany-712aae808ee329cafdcb92e78f145a50c78b89b8.zip |
Added help support, help manual and scrollkeeper updates
2003-03-26 Patanjali Somayaji <patanjali@codito.com>
Added help support, help manual and scrollkeeper updates
* configure.in (help/Makefile and help/C/Makefile for AC_OUTPUT())
* makefile.am (added "help" to SUBDIRS in Makefile.am)
* omf.make (added)
* xmldocs.make (added)
* omf-install/Makefile.am (added)
* help/Makefile.am (added)
* help/C/epiphany.xml (manual xml added)
* help/C/legal.xml (added)
* help/C/epiphany-C.omf (omf file added)
* help/C/Makefile.am (added)
* help/C/figures/ephy-screenshot.png (added)
* src/window-commands.c (added handler code to show manual)
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index 2891160a6..fbb42dfa0 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -16,6 +16,11 @@ * 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" @@ -666,7 +671,28 @@ void window_cmd_help_contents (EggAction *action, EphyWindow *window) { - /* FIXME: Need to implement */ + 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); + } } void |