]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-list-view.c
Remove check on GTK version, we depend on >= 2.14.0 now.
[empathy.git] / libempathy-gtk / empathy-contact-list-view.c
index 5df6c8d2a18b5c4b6eeb4f0b952902171744d4ba..6cb8b7e8c51ecbbcebd92d45f96ba40a7d8ced56 100644 (file)
@@ -141,19 +141,14 @@ contact_list_view_query_tooltip_cb (EmpathyContactListView *view,
        GtkTreeModel               *model;
        GtkTreeIter                 iter;
        GtkTreePath                *path;
-       static gboolean             running = FALSE;
+       static gint                 running = 0;
        gboolean                    ret = FALSE;
 
        /* Avoid an infinite loop. See GNOME bug #574377 */
-       if (running) {
+       if (running > 0) {
                return FALSE;
        }
-       running = TRUE;
-
-       /* FIXME: We need GTK version >= 2.12.10. See GNOME bug #504087 */
-       if (gtk_check_version (2, 12, 10)) {
-               goto OUT;
-       }
+       running++;
 
        if (!gtk_tree_view_get_tooltip_context (GTK_TREE_VIEW (view), &x, &y,
                                                keyboard_mode,
@@ -188,7 +183,7 @@ contact_list_view_query_tooltip_cb (EmpathyContactListView *view,
 
        g_object_unref (contact);
 OUT:
-       running = FALSE;
+       running--;
 
        return ret;
 }