aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-08 17:45:33 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-08 17:45:33 +0800
commit8da7942d316a692fbb07d3d436210c1a42453465 (patch)
tree8b0a810fdc783f0f2131f2a4a1a9b247435324d3 /libempathy-gtk
parent509345b8a4522318e9a0c8e3a741fc3a5b6b8435 (diff)
downloadgsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.tar
gsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.tar.gz
gsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.tar.bz2
gsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.tar.lz
gsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.tar.xz
gsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.tar.zst
gsoc2013-empathy-8da7942d316a692fbb07d3d436210c1a42453465.zip
Use running++ and running-- instead of a boolean
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2628
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 5df6c8d2a..91050be40 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -141,14 +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;
+ running++;
/* FIXME: We need GTK version >= 2.12.10. See GNOME bug #504087 */
if (gtk_check_version (2, 12, 10)) {
@@ -188,7 +188,7 @@ contact_list_view_query_tooltip_cb (EmpathyContactListView *view,
g_object_unref (contact);
OUT:
- running = FALSE;
+ running--;
return ret;
}