]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-string-parser.c
Updated Polish translation
[empathy.git] / libempathy-gtk / empathy-string-parser.c
index fa56a2d4270f8417a6f8739f266d0820097f2395..a661cd477eb07e6524eab3905335c88c8b185b76 100644 (file)
@@ -201,6 +201,16 @@ empathy_add_link_markup (const gchar *text)
        };
        GString *string;
 
+       g_return_val_if_fail (text != NULL, NULL);
+
+       /* GtkLabel with links could make infinite loop because of
+        * GNOME bug #612066. It is fixed in GTK >= 2.18.8 and GTK >= 2.19.7.
+        * FIXME: Remove this check once we have an hard dep on GTK 2.20 */
+       if (gtk_check_version (2, 18, 8) != NULL ||
+           (gtk_minor_version == 19 && gtk_micro_version < 7)) {
+               return g_markup_escape_text (text, -1);
+       }
+
        string = g_string_sized_new (strlen (text));
        empathy_string_parser_substr (text, -1, parsers, string);