Have g_queue_remove() return a boolean
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 16 Oct 2010 11:40:44 +0000 (07:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jun 2011 02:04:31 +0000 (22:04 -0400)
commitf065d7d60e2b6110705b1b32f050ccad0bcde62f
tree000a4e919f702e9a0043bfc31484ae738b821a33
parent496157ffd3350799198e32e1002a19fc8be3ea83
Have g_queue_remove() return a boolean

g_queue_remove() should return a boolean so callers can verify that an
element was found and removed, as in the following example:

    if (g_queue_remove (queue, referenced_object))
        g_object_unref (referenced_object);

Similarly, g_queue_remove_all() should return the number of elements
found and removed.

https://bugzilla.gnome.org/show_bug.cgi?id=632294
glib/gqueue.c
glib/gqueue.h