[evolution-patches] patch for 47541



Hi, 

Attached patch for 47541.
        
This is a patch for solving the problem of "Hyperlink cannot be 
opened in mozilla browser" . Pl. check this and let me know.
        
Thanks & Regards,
Cynthia
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2761
diff -u -r1.2761 ChangeLog
--- ChangeLog   25 Jun 2003 16:54:16 -0000      1.2761
+++ ChangeLog   12 Aug 2003 05:11:38 -0000
@@ -221,3 +221,8 @@
        add Escape as a keybinding for the Close button (see why GTK+ is
        on crack on b.g.o #74221 and #101293).
                                                                                
+2003-08-11 Cynthia Gu   <cynthia gu sun com>
+
                                                                                
+        * mail/mail-display.c: use tmp_url to replace url since it doesn't
+        display right in browser.
+

Index: mail-display.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-display.c,v
retrieving revision 1.282
diff -u -r1.282 mail-display.c
--- mail-display.c	11 Jun 2003 16:19:34 -0000	1.282
+++ mail-display.c	12 Aug 2003 05:08:34 -0000
@@ -302,6 +302,13 @@
 static void
 on_link_clicked (GtkHTML *html, const char *url, MailDisplay *md)
 {
+	char *tmp_url;
+	
+	if (!strncasecmp (url, "cid:/", 5))
+		tmp_url = url+5 ;
+	else
+		tmp_url = url ;
+
 	if (!strncasecmp (url, "mailto:";, 7)) {
 		send_to_url (url, NULL);
 	} else if (*url == '#') {
@@ -309,7 +316,7 @@
 	} else {
 		GError *err = NULL;
 		
-		gnome_url_show (url, &err);
+		gnome_url_show (tmp_url, &err);
 		
 		if (err) {
 			g_warning ("gnome_url_show: %s", err->message);



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