mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
Test g_signal_handlers_disconnect_matched for G_SIGNAL_MATCH_ID match
Signed-off-by: Przemyslaw Gorszkowski <pgorszkowski@igalia.com>
This commit is contained in:
parent
9d2f65576f
commit
74d49e447f
@ -1503,6 +1503,20 @@ test_block_handler (void)
|
||||
g_assert_cmpuint (g_signal_handlers_block_matched (test1, G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, 0, 0, NULL, test_handler, &count1), ==, 1);
|
||||
g_assert_cmpuint (g_signal_handlers_unblock_matched (test1, G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, 0, 0, NULL, test_handler, &count1), ==, 1);
|
||||
|
||||
/* Test g_signal_handlers_disconnect_matched for G_SIGNAL_MATCH_ID match */
|
||||
g_assert_cmpuint (g_signal_handlers_disconnect_matched (test1,
|
||||
G_SIGNAL_MATCH_ID,
|
||||
simple_id, 0,
|
||||
NULL, NULL, NULL),
|
||||
==,
|
||||
1);
|
||||
g_assert_cmpuint (g_signal_handler_find (test1,
|
||||
G_SIGNAL_MATCH_ID,
|
||||
simple_id, 0,
|
||||
NULL, NULL, NULL),
|
||||
==,
|
||||
0);
|
||||
|
||||
g_object_unref (test1);
|
||||
g_object_unref (test2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user