project: Remove unnecessary usage of gtk_widget_show()

Now that widgets are visible by default, no need to show them
after creating them. Also revove gtk_widget_show_all() which
doesn't exist in GTK4.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 15:51:59 -03:00
parent bb0865eb23
commit c39ffd45fc
2 changed files with 0 additions and 4 deletions

View file

@ -329,12 +329,10 @@ mct_carousel_add (GtkContainer *container,
page = g_strdup_printf ("%d", MCT_CAROUSEL_ITEM (widget)->page);
self->last_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (self->last_box);
gtk_widget_set_valign (self->last_box, GTK_ALIGN_CENTER);
gtk_stack_add_named (self->stack, self->last_box, page);
}
gtk_widget_show_all (widget);
gtk_box_append (GTK_BOX (self->last_box), widget);
update_buttons_visibility (self);