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:
parent
bb0865eb23
commit
c39ffd45fc
2 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue