carousel: Improve carousel box
This makes the carousel look more like what it used to.
This commit is contained in:
parent
cd7d6a3845
commit
1d20fc50c9
|
@ -328,8 +328,10 @@ mct_carousel_add (MctCarousel *self,
|
||||||
g_autofree gchar *page = NULL;
|
g_autofree gchar *page = NULL;
|
||||||
|
|
||||||
page = g_strdup_printf ("%d", item->page);
|
page = g_strdup_printf ("%d", item->page);
|
||||||
self->last_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
self->last_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 18);
|
||||||
|
gtk_widget_set_hexpand (self->last_box, TRUE);
|
||||||
gtk_widget_set_valign (self->last_box, GTK_ALIGN_CENTER);
|
gtk_widget_set_valign (self->last_box, GTK_ALIGN_CENTER);
|
||||||
|
gtk_box_set_homogeneous (GTK_BOX (self->last_box), TRUE);
|
||||||
gtk_stack_add_named (self->stack, self->last_box, page);
|
gtk_stack_add_named (self->stack, self->last_box, page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue