Commit d921a4fe authored by Benjamin Otte's avatar Benjamin Otte

testsuite: Add deprecation guards

parent d8885777
......@@ -75,6 +75,7 @@ test_signals (void)
g_signal_connect (a, "changed", G_CALLBACK (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;
gtk_adjustment_changed (a);
g_assert_cmpint (changed_count, ==, 1);
......@@ -84,6 +85,7 @@ test_signals (void)
gtk_adjustment_value_changed (a);
g_assert_cmpint (changed_count, ==, 0);
g_assert_cmpint (value_changed_count, ==, 1);
G_GNUC_END_IGNORE_DEPRECATIONS
changed_count = value_changed_count = 0;
gtk_adjustment_configure (a, 0.0, 0.0, 100.0, 1.0, 5.0, 0.0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment