diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-11-28 13:43:36 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-11-28 14:34:55 -0500 |
commit | f339cc276c972f31bf4c94c0faa8abd8069858b1 (patch) | |
tree | 0a3ed935e824caea2694587f239041d001f530bf /gtk/gtkspinbutton.c | |
parent | 90c986e493eeaa2c95ca53c88be3e3b19086e0c3 (diff) | |
download | gtk+-f339cc276c972f31bf4c94c0faa8abd8069858b1.tar.gz |
gtk: Stop using gtk_widget_show/hide
gtk_widget_set_visible and gtk_window_present
are better alternatives, and calling gtk_widget_show
on newly created widgets is no longer necessary
anyway.
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r-- | gtk/gtkspinbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 7bce95ca95..27efc3c837 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -120,7 +120,7 @@ * button = gtk_spin_button_new (adjustment, 1.0, 0); * gtk_window_set_child (GTK_WINDOW (window), button); * - * gtk_widget_show (window); + * gtk_window_present (GTK_WINDOW (window)); * } * ``` * @@ -151,7 +151,7 @@ * button = gtk_spin_button_new (adjustment, 0.001, 3); * gtk_window_set_child (GTK_WINDOW (window), button); * - * gtk_widget_show (window); + * gtk_window_present (GTK_WINDOW (window)); * } * ``` * |