GDBusConnection: don't pass boolean > 1 to _g_dbus_worker_new
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 22 Nov 2011 12:39:54 +0000 (12:39 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 22 Nov 2011 16:08:14 +0000 (16:08 +0000)
commitc4a11858cfb098ccc25d35dd7f5461c51b7f6ad3
treeedf288060368a76d129e0267501aeceed7f9db0c
parent95faa44f2d04593f201a2d98210575e894d4cf01
GDBusConnection: don't pass boolean > 1 to _g_dbus_worker_new

This happens to work at the moment (because GDBusWorker.frozen is a
gboolean and not just a 1-bit bitfield), but isn't right: the gboolean
ends up with values 0 or G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING
(which is more than 1).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=664558
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: David Zeuthen <davidz@redhat.com>
gio/gdbusconnection.c