testsuite: Ignore deprecation warnings
This commit is contained in:
@ -1930,7 +1930,9 @@ test_icon_factory (void)
|
||||
icon_set = gtk_icon_factory_lookup (GTK_ICON_FACTORY (factory), "apple-red");
|
||||
g_assert (icon_set != NULL);
|
||||
gtk_icon_factory_add_default (GTK_ICON_FACTORY (factory));
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
image = gtk_image_new_from_stock ("apple-red", GTK_ICON_SIZE_BUTTON);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
g_assert (image != NULL);
|
||||
g_object_ref_sink (image);
|
||||
g_object_unref (image);
|
||||
@ -2390,7 +2392,9 @@ test_menus (void)
|
||||
|
||||
gtk_widget_show_all (window);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
sample_menu_item = gtk_image_menu_item_new_from_stock (GTK_STOCK_NEW, accel_group);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
|
||||
child = gtk_bin_get_child (GTK_BIN (sample_menu_item));
|
||||
g_assert (child);
|
||||
|
||||
Reference in New Issue
Block a user