pidgin.next.minor: 62bf0ee1: In the GNOME URL registration, ftp, goph...
rlaager at pidgin.im
rlaager at pidgin.im
Mon Dec 1 14:45:44 EST 2008
-----------------------------------------------------------------
Revision: 62bf0ee1dda63922e7b455e3609f8bad99e7282c
Ancestor: d5a2c4e40e3f1c9b49ca4835dbe2b9b60bd74264
Author: rlaager at pidgin.im
Date: 2008-12-01T19:44:13
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/62bf0ee1dda63922e7b455e3609f8bad99e7282c
Modified files:
pidgin/gtkutils.c
ChangeLog:
In the GNOME URL registration, ftp, gopher, http, and https are now
special-cased as being "scheme://" instead of just plain "scheme:".
-------------- next part --------------
============================================================
--- pidgin/gtkutils.c d5f2c260e5746d8159b86c91aa287f5529c3ce7d
+++ pidgin/gtkutils.c dac95e5312168e0b155ac0f67ffacbfdc0cd24e6
@@ -3621,7 +3621,17 @@ register_gnome_url_handlers()
}
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:"))
More information about the Commits
mailing list