[evince] ev-sidebar: Expand the sidebar switcher to fill the space



commit 906952a43b7d5b3b9cc75d82af178e925933ae6f
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Jul 31 22:24:35 2018 -0400

    ev-sidebar: Expand the sidebar switcher to fill the space
    
    From issue #947:
    
    The toggle buttons in the sidebar feel unnecessarily
    constrained - it would be better if they were wider,
    or perhaps even expanded to fill the available width
    (compare the current UI to the mockups).

 shell/ev-sidebar.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c
index 2ad0773e..197b96b0 100644
--- a/shell/ev-sidebar.c
+++ b/shell/ev-sidebar.c
@@ -205,7 +205,9 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
        gtk_box_pack_start (GTK_BOX (ev_sidebar), switcher, FALSE, TRUE, 0);
        g_object_set (switcher, "icon-size", 1, NULL);
        gtk_container_set_border_width (GTK_CONTAINER (switcher), 6);
-       gtk_widget_set_halign (switcher, GTK_ALIGN_CENTER);
+       gtk_widget_set_halign (switcher, GTK_ALIGN_FILL);
+       gtk_widget_set_hexpand (switcher, TRUE);
+       gtk_box_set_homogeneous (GTK_BOX (switcher), TRUE);
        gtk_widget_show (ev_sidebar->priv->switcher);
 
        stack = gtk_stack_new ();


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