diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-29 10:36:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-10-29 13:31:41 -0400 |
commit | 66b062a9761ca86130658adb66e929b3c5acb7ba (patch) | |
tree | 7be067c23b2d2ef328cd02c118b465fe1ec1caf1 /gtk/gtkwindow.c | |
parent | 15572b01833910a3b65edcc28eaa28968847fe71 (diff) | |
download | gtk+-66b062a9761ca86130658adb66e929b3c5acb7ba.tar.gz |
Deprecate GtkMessageDialog
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 6b4e2d77a7..d5141c10b6 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -47,7 +47,7 @@ #include <glib/gi18n-lib.h> #include "gtkmain.h" #include "gtkmarshalers.h" -#include "gtkmessagedialog.h" +#include "deprecated/gtkmessagedialog.h" #include "gtkpointerfocusprivate.h" #include "gtkprivate.h" #include "gtkroot.h" @@ -6130,6 +6130,7 @@ gtk_window_set_debugging (GdkDisplay *display, if (warn) { +G_GNUC_BEGIN_IGNORE_DEPRECATIONS dialog = gtk_message_dialog_new (GTK_WINDOW (inspector_window), GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, @@ -6141,6 +6142,7 @@ gtk_window_set_debugging (GdkDisplay *display, "application to break or crash.")); area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog)); +G_GNUC_END_IGNORE_DEPRECATIONS check = gtk_check_button_new_with_label (_("Don’t show this message again")); gtk_widget_set_margin_start (check, 10); gtk_widget_show (check); |