[gnome-builder/wip/chergert/shortcuts] shortcuts: fix page button styling and transition



commit c6e61fe0fe0bbf02e8587ffebe001b4ac5165b0f
Author: Christian Hergert <christian hergert me>
Date:   Mon Aug 31 00:47:10 2015 -0700

    shortcuts: fix page button styling and transition

 src/shortcuts/gb-shortcuts-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/shortcuts/gb-shortcuts-view.c b/src/shortcuts/gb-shortcuts-view.c
index 74c2901..a6a46c8 100644
--- a/src/shortcuts/gb-shortcuts-view.c
+++ b/src/shortcuts/gb-shortcuts-view.c
@@ -184,6 +184,7 @@ gb_shortcuts_view_init (GbShortcutsView *self)
 
   self->stack = g_object_new (GTK_TYPE_STACK,
                               "homogeneous", TRUE,
+                              "transition-type", GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT,
                               "vexpand", TRUE,
                               "visible", TRUE,
                               NULL);
@@ -192,9 +193,11 @@ gb_shortcuts_view_init (GbShortcutsView *self)
   self->switcher = g_object_new (GTK_TYPE_STACK_SWITCHER,
                                  "halign", GTK_ALIGN_CENTER,
                                  "stack", self->stack,
+                                 "spacing", 12,
                                  "visible", TRUE,
                                  NULL);
   gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self->switcher)), "round");
+  gtk_style_context_remove_class (gtk_widget_get_style_context (GTK_WIDGET (self->switcher)), "linked");
   gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (self->switcher));
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]