diff options
author | Benjamin Otte <otte@redhat.com> | 2013-10-16 15:40:40 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-11-04 16:36:11 +0100 |
commit | 74dc941c221a13145152d2f3c264bfb564bb7160 (patch) | |
tree | 31f5a375421c2dcdf9bf35ee2e7bf6febd099430 /tests | |
parent | f0d3d72574ff0282ecb3aa6311677def57cef8f5 (diff) | |
download | gtk+-74dc941c221a13145152d2f3c264bfb564bb7160.tar.gz |
tests: Make testflowbox test not emit warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testflowbox.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/testflowbox.c b/tests/testflowbox.c index 522231b714..ae416d9909 100644 --- a/tests/testflowbox.c +++ b/tests/testflowbox.c @@ -158,14 +158,20 @@ populate_flowbox_stock (GtkFlowBox *flowbox) gint i; if (!stock_ids) - stock_ids = gtk_stock_list_ids (); + { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + stock_ids = gtk_stock_list_ids (); + G_GNUC_END_IGNORE_DEPRECATIONS; + } for (i = 0, l = stock_ids; i < 30 && l != NULL; i++, l = l->next) { gchar *stock_id = l->data; gchar *text = g_strdup_printf ("Item %02d", i); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; widget = gtk_button_new_from_stock (stock_id); + G_GNUC_END_IGNORE_DEPRECATIONS; gtk_widget_show (widget); g_object_set_data_full (G_OBJECT (widget), "id", (gpointer)g_strdup (text), g_free); @@ -336,7 +342,7 @@ on_child_activated (GtkFlowBox *self, g_message ("Child activated %p: %s", child, id); } -static void +static G_GNUC_UNUSED void selection_foreach (GtkFlowBox *self, GtkFlowBoxChild *child_info, gpointer data) |