From 5a6a7b50af31826d342dbdb81901415f3b8f9356 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 25 Jul 2018 17:42:26 +0200 Subject: all: Don't warn about deprecated gtk_window_present usage Avoid compilation warnings about internal users of gtk_window_present(). --- gtk/gtkaboutdialog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk/gtkaboutdialog.c') diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index ab344cc71b..1105a966e9 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -1002,7 +1002,9 @@ gtk_about_dialog_activate_link (GtkAboutDialog *about, g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_window_present (GTK_WINDOW (dialog)); + G_GNUC_END_IGNORE_DEPRECATIONS } return TRUE; @@ -2409,7 +2411,9 @@ gtk_show_about_dialog (GtkWindow *parent, } + G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_window_present (GTK_WINDOW (dialog)); + G_GNUC_END_IGNORE_DEPRECATIONS } /** -- cgit v1.2.1