[Epiphany] [patch] Help manual support for Epiphany



Hi, 

I've added 
1. help manual support to Epiphany (code added in the handler)
2. added in a help/ directory with the necessary makefile
3. Written a basic xml file which will be extended, this is the help
manual. It is in help/C/epiphany.xml
4. Done the necessary scrollkeeper integration, which means an
omf-install/ directory and some other make files here and there. 
5. Created and integrated a screenshot of the app in the help manual. 
6. Done Configure.in changes and Makefile changes at the top level 

All this gets help support in, so  when one clicks on help->contents,
yelp opens with the help manual. This will be exctended to include
context sensitive help, bookmark tab help etc. This is the first step of
setting up the required infrastructure. 

There are two attachments: 
1. Patch file for top level Makefile.am, configure.in, and
src/window-commands.c (callback edited). 
2. Tarball containing the extra files and directories that need to be
added. 

I hope these files are sufficient. If they are integrated and cause
build problems or other problems, will resolve them as soon as possible
:)

thanks, 
Patanjali

-- 
Patanjali Somayaji <patanjali@codito.com>
Codito Technologies Pvt. Ltd.
? help
? help-support.patch
? omf-install
? omf.make
? patch.pj
? xmldocs.make
? src/.popup-commands.c.swp
Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/epiphany/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- Makefile.am	20 Feb 2003 10:09:06 -0000	1.2
+++ Makefile.am	26 Mar 2003 06:46:43 -0000
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = lib embed src data po
+SUBDIRS = lib embed src data po help
 
 EXTRA_DIST = 			\
 	intltool-merge.in	\
Index: configure.in
===================================================================
RCS file: /cvs/gnome/epiphany/configure.in,v
retrieving revision 1.27
diff -u -r1.27 configure.in
--- configure.in	23 Mar 2003 17:16:52 -0000	1.27
+++ configure.in	26 Mar 2003 06:46:44 -0000
@@ -170,5 +170,7 @@
 embed/mozilla/Makefile
 src/Makefile
 src/bookmarks/Makefile
+help/Makefile
+help/C/Makefile
 po/Makefile.in
 ])
Index: src/window-commands.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/window-commands.c,v
retrieving revision 1.23
diff -u -r1.23 window-commands.c
--- src/window-commands.c	24 Mar 2003 20:08:06 -0000	1.23
+++ src/window-commands.c	26 Mar 2003 06:47:09 -0000
@@ -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"
@@ -667,6 +672,29 @@
 			 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

epiphany-help-support.tar.gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]