diff options
author | Benjamin Otte <otte@redhat.com> | 2015-11-07 20:13:09 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-11-09 01:48:14 +0100 |
commit | d55628cd9f0fccc3be0cc00378bc85d2da9192b3 (patch) | |
tree | e6c364161eea09084e8ecec3f0bdd21a7079fd87 /gtk/gtktestutils.c | |
parent | c2a9202a66437d4d8ee814c0f1da356c7c289621 (diff) | |
download | gtk+-d55628cd9f0fccc3be0cc00378bc85d2da9192b3.tar.gz |
testutils: Add deprecation guards
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r-- | gtk/gtktestutils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index 7973b0230f..a396df0ca3 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -664,17 +664,21 @@ gtk_test_display_button_window (const gchar *window_title, ...) /* NULL terminated list of (label, &int) pairs */ { va_list var_args; +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GtkWidget *window = gtk_test_create_widget (GTK_TYPE_WINDOW, "title", window_title, NULL); GtkWidget *vbox = gtk_test_create_widget (GTK_TYPE_BOX, "parent", window, "orientation", GTK_ORIENTATION_VERTICAL, NULL); const char *arg1; gtk_test_create_widget (GTK_TYPE_LABEL, "label", dialog_text, "parent", vbox, NULL); +G_GNUC_END_IGNORE_DEPRECATIONS; g_signal_connect (window, "destroy", G_CALLBACK (try_main_quit), NULL); va_start (var_args, dialog_text); arg1 = va_arg (var_args, const char*); while (arg1) { int *arg2 = va_arg (var_args, int*); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GtkWidget *button = gtk_test_create_widget (GTK_TYPE_BUTTON, "label", arg1, "parent", vbox, NULL); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; g_signal_connect_swapped (button, "clicked", G_CALLBACK (test_increment_intp), arg2); arg1 = va_arg (var_args, const char*); } @@ -706,9 +710,11 @@ GtkWidget* gtk_test_create_simple_window (const gchar *window_title, const gchar *dialog_text) { +G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GtkWidget *window = gtk_test_create_widget (GTK_TYPE_WINDOW, "title", window_title, NULL); GtkWidget *vbox = gtk_test_create_widget (GTK_TYPE_BOX, "parent", window, "orientation", GTK_ORIENTATION_VERTICAL, NULL); gtk_test_create_widget (GTK_TYPE_LABEL, "label", dialog_text, "parent", vbox, NULL); +G_GNUC_END_IGNORE_DEPRECATIONS; g_signal_connect (window, "destroy", G_CALLBACK (try_main_quit), NULL); gtk_widget_show_all (vbox); return window; |