GNOME Bugzilla – Bug 632294
g_queue_remove() should return a boolean
Last modified: 2011-06-04 02:04:44 UTC
Created attachment 172488 [details] [review] Proposed patch 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.
The following fix has been pushed: f065d7d Have g_queue_remove() return a boolean
Created attachment 189195 [details] [review] 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.