summaryrefslogtreecommitdiff
path: root/tests/testgtk.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2013-06-26 15:50:32 +0200
committerBenjamin Otte <otte@redhat.com>2013-06-26 15:51:32 +0200
commit427d4195a1ff448d6e605e78b12a23328e64ceb9 (patch)
treed28d26099189158a2c0f2f35dcece255c2bca9c2 /tests/testgtk.c
parent14c78ed66773243dfd7cd49d30d17c8998f81cbf (diff)
downloadgtk+-427d4195a1ff448d6e605e78b12a23328e64ceb9.tar.gz
tests: Ignore deprecation warnings
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r--tests/testgtk.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 777a23ea90..db14da74a6 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -662,6 +662,7 @@ create_buttons (GtkWidget *widget)
gtk_container_set_border_width (GTK_CONTAINER (grid), 10);
gtk_box_pack_start (GTK_BOX (box1), grid, TRUE, TRUE, 0);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
button[0] = gtk_button_new_with_label ("button1");
button[1] = gtk_button_new_with_mnemonic ("_button2");
button[2] = gtk_button_new_with_mnemonic ("_button3");
@@ -671,6 +672,7 @@ create_buttons (GtkWidget *widget)
button[6] = gtk_button_new_with_label ("button7");
button[7] = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
button[8] = gtk_button_new_with_label ("button9");
+ G_GNUC_END_IGNORE_DEPRECATIONS;
for (i = 0; i < 9; i++)
{
@@ -1292,7 +1294,11 @@ create_toolbar (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (toolitem), entry);
}
else if (create_toolbar_items[i].stock_id)
- toolitem = gtk_tool_button_new_from_stock (create_toolbar_items[i].stock_id);
+ {
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+ toolitem = gtk_tool_button_new_from_stock (create_toolbar_items[i].stock_id);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
+ }
else
{
GtkWidget *icon;
@@ -3301,7 +3307,9 @@ create_menus (GtkWidget *widget)
menu = create_menu (screen, 1, 5);
gtk_menu_set_accel_group (GTK_MENU (menu), accel_group);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_NEW, accel_group);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);