general: Use gtk_widget_set_visible

A lot of places were using gtk_widget_show/gtk_widget_hide, but those
methods are deprecated since Gtk 4.10.

Let's use gtk_widget_set_visible instead.
This commit is contained in:
Felipe Kinoshita
2023-03-03 19:14:09 -03:00
parent 69728fc814
commit 2805b414f8
15 changed files with 44 additions and 32 deletions
+2 -2
View File
@@ -207,7 +207,7 @@ on_animation_done_cb (AdwAnimation *animation,
GcalMonthPopover *self)
{
if (adw_animation_get_value (animation) == 0.0)
gtk_widget_hide (GTK_WIDGET (self));
gtk_widget_set_visible (GTK_WIDGET (self), FALSE);
}
static void
@@ -425,7 +425,7 @@ gcal_month_popover_popup (GcalMonthPopover *self)
GCAL_ENTRY;
gtk_widget_show (GTK_WIDGET (self));
gtk_widget_set_visible (GTK_WIDGET (self), TRUE);
adw_timed_animation_set_reverse (ADW_TIMED_ANIMATION (self->animation), FALSE);
adw_timed_animation_set_easing (ADW_TIMED_ANIMATION (self->animation), ADW_EASE_OUT_EXPO);
+2 -2
View File
@@ -764,7 +764,7 @@ apply_overflow_at_weekday (GcalWeekHeader *self,
child = gtk_grid_get_child_at (self->grid, weekday, 3);
split_event_widget_at_column (self, child, weekday);
gtk_widget_hide (child);
gtk_widget_set_visible (child, FALSE);
}
static void
@@ -1129,7 +1129,7 @@ header_expand (GcalWeekHeader *self)
}
else
{
gtk_widget_show (child);
gtk_widget_set_visible (child, TRUE);
}
child = next;