]> git.0d.be Git - empathy.git/commitdiff
gtk_check_version() is returning a string error or NULL, not a boolean
authorXavier Claessens <xclaesse@gmail.com>
Wed, 10 Mar 2010 11:15:23 +0000 (12:15 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 10 Mar 2010 11:15:23 +0000 (12:15 +0100)
This actually invert the logic

libempathy-gtk/empathy-string-parser.c

index 691263a9904dc87535f8f04aaff4de5302668587..a661cd477eb07e6524eab3905335c88c8b185b76 100644 (file)
@@ -206,7 +206,7 @@ empathy_add_link_markup (const gchar *text)
        /* 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) ||
+       if (gtk_check_version (2, 18, 8) != NULL ||
            (gtk_minor_version == 19 && gtk_micro_version < 7)) {
                return g_markup_escape_text (text, -1);
        }