changeset 25862:b6f2c637a3d9

In the GNOME URL registration, ftp, gopher, http, and https are now special-cased as being "scheme://" instead of just plain "scheme:".
author Richard Laager <rlaager@wiktel.com>
date Mon, 01 Dec 2008 19:44:13 +0000
parents 48cf0a545621
children d5852f7208fa c6f7143cc7f4
files pidgin/gtkutils.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkutils.c	Mon Dec 01 19:37:11 2008 +0000
+++ b/pidgin/gtkutils.c	Mon Dec 01 19:44:13 2008 +0000
@@ -3621,7 +3621,17 @@
 				}
 
 				start += sizeof("/desktop/gnome/url-handlers/") - 1;
-				protocol = g_strdup_printf("%s:", start);
+
+				/* It would be nice if this was tracked in gconf. */
+				if (!strcmp(start, "ftp") ||
+				    !strcmp(start, "gopher") ||
+				    !strcmp(start, "http") ||
+				    !strcmp(start, "https"))
+					protocol = g_strdup_printf("%s://", start);
+				else
+					protocol = g_strdup_printf("%s:", start);
+
+				/* We need to free this later. */
 				gnome_url_handlers = g_list_prepend(gnome_url_handlers, protocol);
 
 				if (!strcmp(protocol, "mailto:"))