evince r3218 - in trunk: . shell



Author: carlosgc
Date: Sun Oct 12 12:06:24 2008
New Revision: 3218
URL: http://svn.gnome.org/viewvc/evince?rev=3218&view=rev

Log:
2008-10-12  Carlos Garcia Campos  <carlosgc gnome org>

	* shell/ev-window.c: (launch_external_uri):

	Do not consider mailto links as http uris. Fixes bug #555801.

Modified:
   trunk/ChangeLog
   trunk/shell/ev-window.c

Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c	(original)
+++ trunk/shell/ev-window.c	Sun Oct 12 12:06:24 2008
@@ -4902,7 +4902,8 @@
 					      GDK_CURRENT_TIME);
 #endif
 
-	if (!g_strstr_len (uri, strlen (uri), "://")) {
+	if (!g_strstr_len (uri, strlen (uri), "://") &&
+	    !g_str_has_prefix (uri, "mailto:";)) {
 		gchar *http;
 		
 		/* Not a valid uri, assuming it's http */



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