mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
testsuite: Add deprecation guards
This commit is contained in:
parent
d8885777a1
commit
d921a4fe84
@ -75,6 +75,7 @@ test_signals (void)
|
|||||||
g_signal_connect (a, "changed", G_CALLBACK (changed_cb), NULL);
|
g_signal_connect (a, "changed", G_CALLBACK (changed_cb), NULL);
|
||||||
g_signal_connect (a, "value-changed", G_CALLBACK (value_changed_cb), NULL);
|
g_signal_connect (a, "value-changed", G_CALLBACK (value_changed_cb), NULL);
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
changed_count = value_changed_count = 0;
|
changed_count = value_changed_count = 0;
|
||||||
gtk_adjustment_changed (a);
|
gtk_adjustment_changed (a);
|
||||||
g_assert_cmpint (changed_count, ==, 1);
|
g_assert_cmpint (changed_count, ==, 1);
|
||||||
@ -84,6 +85,7 @@ test_signals (void)
|
|||||||
gtk_adjustment_value_changed (a);
|
gtk_adjustment_value_changed (a);
|
||||||
g_assert_cmpint (changed_count, ==, 0);
|
g_assert_cmpint (changed_count, ==, 0);
|
||||||
g_assert_cmpint (value_changed_count, ==, 1);
|
g_assert_cmpint (value_changed_count, ==, 1);
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
changed_count = value_changed_count = 0;
|
changed_count = value_changed_count = 0;
|
||||||
gtk_adjustment_configure (a, 0.0, 0.0, 100.0, 1.0, 5.0, 0.0);
|
gtk_adjustment_configure (a, 0.0, 0.0, 100.0, 1.0, 5.0, 0.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user