gmain: Warn when g_source_remove() fails
authorBastien Nocera <hadess@hadess.net>
Wed, 23 Oct 2013 13:38:58 +0000 (15:38 +0200)
committerRyan Lortie <desrt@desrt.ca>
Wed, 23 Oct 2013 16:00:43 +0000 (12:00 -0400)
commita919be3d39150328874ff647fb2c2be7af3df996
tree1aca28dc7146a4e402874fe4e43ed294a45b32b3
parentfe7069749fe39a006985ec266260a3c02ee8c855
gmain: Warn when g_source_remove() fails

Trying to remove a non-existent source should really be
a programming error, as the programmer could be trying to
use the wrong function to remove a callback, as seen when
GtkScrolledWindow tried to remove ID from another function
using g_source_remove().

See https://bugzilla.gnome.org/show_bug.cgi?id=710666#c12

https://bugzilla.gnome.org/show_bug.cgi?id=710724
glib/gmain.c