summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-11-28 13:43:36 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-11-28 14:34:55 -0500
commitf339cc276c972f31bf4c94c0faa8abd8069858b1 (patch)
tree0a3ed935e824caea2694587f239041d001f530bf /gtk/gtkcalendar.c
parent90c986e493eeaa2c95ca53c88be3e3b19086e0c3 (diff)
downloadgtk+-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/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 724bb8a6bd..6f9e80653c 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -752,7 +752,7 @@ gtk_calendar_init (GtkCalendar *calendar)
gtk_grid_attach (GTK_GRID (calendar->grid), label, 0, 1 + i, 1, 1);
calendar->week_number_labels[i] = label;
- gtk_widget_hide (label);
+ gtk_widget_set_visible (label, FALSE);
}
{