mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
GDBusMessage: Don't reset serial number when copying
Ryan pointed out that it's safe to do this because we have the G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag and that it simplifies how filter functions work. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -108,7 +108,7 @@ message_copy (void)
|
||||
g_assert_cmpint (G_OBJECT (m)->ref_count, ==, 1);
|
||||
g_assert_cmpint (G_OBJECT (copy)->ref_count, ==, 1);
|
||||
|
||||
g_assert_cmpint (g_dbus_message_get_serial (copy), ==, 0);
|
||||
g_assert_cmpint (g_dbus_message_get_serial (copy), ==, g_dbus_message_get_serial (m));
|
||||
g_assert_cmpint (g_dbus_message_get_byte_order (copy), ==, g_dbus_message_get_byte_order (m));
|
||||
g_assert_cmpint (g_dbus_message_get_flags (copy), ==, g_dbus_message_get_flags (m));
|
||||
g_assert_cmpint (g_dbus_message_get_message_type (copy), ==, g_dbus_message_get_message_type (m));
|
||||
|
Reference in New Issue
Block a user