gtk+ r19354 - in trunk: . gtk



Author: hasselmm
Date: Sat Jan 12 11:10:14 2008
New Revision: 19354
URL: http://svn.gnome.org/viewvc/gtk+?rev=19354&view=rev

Log:
Print angle brackets arround e-mail addresses in the about dialog
(#409520, Mariano SuÃrez-Alvarez).

* gtk/gtkaboutdialog.c: Keep e-mail brackets in add_credits_page().


Modified:
   trunk/ChangeLog
   trunk/gtk/gtkaboutdialog.c

Modified: trunk/gtk/gtkaboutdialog.c
==============================================================================
--- trunk/gtk/gtkaboutdialog.c	(original)
+++ trunk/gtk/gtkaboutdialog.c	Sat Jan 12 11:10:14 2008
@@ -1966,21 +1966,23 @@
 	      gchar *link;
 	      const gchar *link_type;
 	      GtkTextTag *tag;
-	      
-	      gtk_text_buffer_insert_at_cursor (buffer, q0, q1 - q0);
-	      gtk_text_buffer_get_end_iter (buffer, &end);
-
-	      q0 = q2;
 
-	      if (*q1 == '<') 
+	      if (*q1 == '<')
 		{
+		  gtk_text_buffer_insert_at_cursor (buffer, q0, (q1 - q0) + 1);
+		  gtk_text_buffer_get_end_iter (buffer, &end);
 		  q1++;
-		  q0++;
 		  link_type = I_("email");
 		}
-	      else 
-		link_type = I_("url");
-	      
+	      else
+		{
+		  gtk_text_buffer_insert_at_cursor (buffer, q0, q1 - q0);
+		  gtk_text_buffer_get_end_iter (buffer, &end);
+		  link_type = I_("url");
+		}
+
+	      q0 = q2;
+
 	      link = g_strndup (q1, q2 - q1);
 
 	      if (g_slist_find_custom (priv->visited_links, link, (GCompareFunc)strcmp))



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