Change transition type for our pages stack to make it feel less glitchy.
This commit is contained in:
parent
22d4b6e50c
commit
5b2f030cfc
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ static void koto_window_init (KotoWindow * self) {
|
||||||
self->pages = gtk_stack_new(); // New stack to hold our pages
|
self->pages = gtk_stack_new(); // New stack to hold our pages
|
||||||
|
|
||||||
if (GTK_IS_STACK(self->pages)) { // Created our stack successfully
|
if (GTK_IS_STACK(self->pages)) { // Created our stack successfully
|
||||||
gtk_stack_set_transition_type(GTK_STACK(self->pages), GTK_STACK_TRANSITION_TYPE_OVER_LEFT_RIGHT);
|
gtk_stack_set_transition_type(GTK_STACK(self->pages), GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT);
|
||||||
gtk_box_append(GTK_BOX(self->content_layout), self->pages);
|
gtk_box_append(GTK_BOX(self->content_layout), self->pages);
|
||||||
gtk_widget_set_hexpand(self->pages, TRUE);
|
gtk_widget_set_hexpand(self->pages, TRUE);
|
||||||
gtk_widget_set_vexpand(self->pages, TRUE);
|
gtk_widget_set_vexpand(self->pages, TRUE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue