summaryrefslogtreecommitdiff
path: root/tests/styleexamples.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-24 08:21:29 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-24 08:23:21 -0400
commitecffe569551b2d91e5fa39936db9b50d5e2aab86 (patch)
tree90abc783d8f87a35a0dbe7aba36f214707b2b948 /tests/styleexamples.c
parent739dacf12acb90acda8c107a2e9c1ab92b34bd46 (diff)
downloadgtk+-ecffe569551b2d91e5fa39936db9b50d5e2aab86.tar.gz
Avoid deprecation warnings
We know regions are deprecated, no need to warn about it here.
Diffstat (limited to 'tests/styleexamples.c')
-rw-r--r--tests/styleexamples.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/styleexamples.c b/tests/styleexamples.c
index b3169f4e9c..d55ea2d7a7 100644
--- a/tests/styleexamples.c
+++ b/tests/styleexamples.c
@@ -217,7 +217,9 @@ draw_cb_extension (GtkWidget *widget, cairo_t *cr)
gtk_style_context_save (context);
gtk_style_context_add_class (context, "notebook");
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, 0);
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_style_context_set_state (context, 0);
gtk_render_extension (context, cr, 26, 12, 24, 12, GTK_POS_BOTTOM);