summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2009-02-17 07:04:07 +0000
committerLi Yuan <liyuan@src.gnome.org>2009-02-17 07:04:07 +0000
commitdfc29dba441f1bd025a782bf615987384cba9213 (patch)
tree4b9301f6b4128d093bb7651a9f889b0ac18a9be8
parent9a5e06ce7b2ba4d934a67ba23c3423976503f884 (diff)
downloadgtk+-dfc29dba441f1bd025a782bf615987384cba9213.tar.gz
Bug #561631. Use g_queue_get_length to determine if a queue is empty.
2009-02-17 Li Yuan <li.yuan@sun.com> * gailbutton.c: (idle_do_action): Bug #561631. Use g_queue_get_length to determine if a queue is empty. svn path=/trunk/; revision=22348
-rw-r--r--modules/other/gail/ChangeLog5
-rw-r--r--modules/other/gail/gailbutton.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog
index 0bdaf80dd8..47afc3f8ff 100644
--- a/modules/other/gail/ChangeLog
+++ b/modules/other/gail/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-17 Li Yuan <li.yuan@sun.com>
+
+ * gailbutton.c: (idle_do_action):
+ Bug #561631. Use g_queue_get_length to determine if a queue is empty.
+
2009-02-04 Tor Lillqvist <tml@novell.com>
Bug 570406 - gailutil.def is in srcdir, but used from builddir
diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 5583d56b6f..3226ecd4c2 100644
--- a/modules/other/gail/gailbutton.c
+++ b/modules/other/gail/gailbutton.c
@@ -511,7 +511,7 @@ idle_do_action (gpointer data)
gtk_widget_event (widget, &tmp_event);
button = GTK_BUTTON (widget);
- while (!g_queue_is_empty (gail_button->action_queue))
+ while (g_queue_get_length(gail_button->action_queue) != 0)
{
gint action_number = (gint) g_queue_pop_head (gail_button->action_queue);
if (gail_button->default_is_press)