testsuite: Add deprecation guards

This commit is contained in:
Benjamin Otte 2015-05-28 16:53:53 +02:00
parent d8885777a1
commit d921a4fe84

View File

@ -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);