summaryrefslogtreecommitdiff
path: root/gtk/gtkaboutdialog.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-07-25 17:42:26 +0200
committerBastien Nocera <hadess@hadess.net>2019-02-25 17:38:08 +0100
commit5a6a7b50af31826d342dbdb81901415f3b8f9356 (patch)
treec71e3d1661bb371903b0da540421cadbd70be1bd /gtk/gtkaboutdialog.c
parent8438880906722681f54848f7f335e0bc074afd43 (diff)
downloadgtk+-5a6a7b50af31826d342dbdb81901415f3b8f9356.tar.gz
all: Don't warn about deprecated gtk_window_present usage
Avoid compilation warnings about internal users of gtk_window_present().
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r--gtk/gtkaboutdialog.c4
1 files changed, 4 insertions, 0 deletions
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
}
/**