diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-23 08:32:39 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-10-23 08:57:46 -0400 |
commit | 6f46e95c754c71dc7051714925bdd312b6b6a62d (patch) | |
tree | d9a4124dea2b23efb05aa89c3418a9fbaaccdc7d /gtk/inspector/css-editor.c | |
parent | 799fb41937950e32cace797c142ac66e290b192b (diff) | |
download | gtk+-deprecate-gtkdialog.tar.gz |
Deprecate GtkDialogdeprecate-gtkdialog
GtkDialog API is archaic and over-complicated.
What is needed for dialogs can typically achieved
more easily by adding buttons directly to a window.
Diffstat (limited to 'gtk/inspector/css-editor.c')
-rw-r--r-- | gtk/inspector/css-editor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/inspector/css-editor.c b/gtk/inspector/css-editor.c index b1dc9bf701..759beb9ceb 100644 --- a/gtk/inspector/css-editor.c +++ b/gtk/inspector/css-editor.c @@ -248,7 +248,11 @@ save_clicked (GtkButton *button, _("_Save"), GTK_RESPONSE_ACCEPT, NULL); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), "custom.css"); + +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); +G_GNUC_END_IGNORE_DEPRECATIONS + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); g_signal_connect (dialog, "response", G_CALLBACK (save_response), ce); gtk_widget_show (dialog); |