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,
g_object_unref (contact);
OUT:
- running = FALSE;
+ running--;
return ret;
}