summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/spinner.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-23 08:32:39 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-23 08:57:46 -0400
commit6f46e95c754c71dc7051714925bdd312b6b6a62d (patch)
treed9a4124dea2b23efb05aa89c3418a9fbaaccdc7d /demos/gtk-demo/spinner.c
parent799fb41937950e32cace797c142ac66e290b192b (diff)
downloadgtk+-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 'demos/gtk-demo/spinner.c')
-rw-r--r--demos/gtk-demo/spinner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/gtk-demo/spinner.c b/demos/gtk-demo/spinner.c
index 925f02576e..8cd6b76680 100644
--- a/demos/gtk-demo/spinner.c
+++ b/demos/gtk-demo/spinner.c
@@ -35,6 +35,7 @@ do_spinner (GtkWidget *do_widget)
if (!window)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
window = gtk_dialog_new_with_buttons ("Spinner",
GTK_WINDOW (do_widget),
0,
@@ -48,6 +49,7 @@ do_spinner (GtkWidget *do_widget)
g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
+G_GNUC_END_IGNORE_DEPRECATIONS
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_widget_set_margin_start (vbox, 5);