summaryrefslogtreecommitdiff
path: root/gtk/gtkalertdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-29 13:53:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-29 15:27:53 -0400
commit9948053cd7e43e09cdcc3942c08d33fc6dc58c62 (patch)
tree13567c05eb01624e8833b0b728030f952edfb9dd /gtk/gtkalertdialog.c
parentf1af8046d0dc225dac57b7762d3216267afa67f2 (diff)
downloadgtk+-9948053cd7e43e09cdcc3942c08d33fc6dc58c62.tar.gz
Deprecate GtkDialog
GtkDialog is too flexible in terms of UI (headerbars vs action bar, etc), and has archaic APIs. It is time to retire it.
Diffstat (limited to 'gtk/gtkalertdialog.c')
-rw-r--r--gtk/gtkalertdialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkalertdialog.c b/gtk/gtkalertdialog.c
index 4048c6bb1f..db853ebe46 100644
--- a/gtk/gtkalertdialog.c
+++ b/gtk/gtkalertdialog.c
@@ -663,6 +663,7 @@ gtk_alert_dialog_choose (GtkAlertDialog *self,
g_return_if_fail (GTK_IS_ALERT_DIALOG (self));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
window = g_object_new (GTK_TYPE_MESSAGE_DIALOG,
"transient-for", parent,
"destroy-with-parent", TRUE,
@@ -689,6 +690,7 @@ gtk_alert_dialog_choose (GtkAlertDialog *self,
gtk_dialog_set_default_response (GTK_DIALOG (window), 0);
self->cancel_return = 0;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, gtk_alert_dialog_choose);