yelp r3136 - in trunk: . src



Author: dscorgie
Date: Sun May 25 09:44:32 2008
New Revision: 3136
URL: http://svn.gnome.org/viewvc/yelp?rev=3136&view=rev

Log:
* src/yelp-utils.c (resolve_process_ghelp):
Fix gnome-help: URIs
bug #528434


Modified:
   trunk/ChangeLog
   trunk/src/yelp-utils.c

Modified: trunk/src/yelp-utils.c
==============================================================================
--- trunk/src/yelp-utils.c	(original)
+++ trunk/src/yelp-utils.c	Sun May 25 09:44:32 2008
@@ -59,6 +59,16 @@
     RrnReg *reg = rrn_find_from_ghelp (&uri[6]);
     YelpRrnType type = YELP_RRN_TYPE_ERROR;
 
+    if (!strncmp (uri, "ghelp:", 6)) {
+	reg = rrn_find_from_ghelp (&uri[6]);
+    } else if (!strncmp (uri, "gnome-help:", 11)) {
+	reg = rrn_find_from_ghelp (&uri[11]);
+    } else {
+	g_warning ("Trying to resolve a ghelp URI from a non-ghelp string.");
+	return YELP_RRN_TYPE_ERROR;
+    }
+   
+
     if (reg) {
 	gchar *mime = NULL;
 	if (g_str_has_prefix (reg->uri, "file:"))



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