[nautilus/gnome-3-20] pathbar: remove hardcoded width for sliders



commit 3292b651b2126240ba1bcb06e3815d0225e41a9e
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 17 16:58:57 2016 +0100

    pathbar: remove hardcoded width for sliders

 src/nautilus-pathbar.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 7f38470..c3fe34e 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -479,7 +479,9 @@ nautilus_path_bar_get_preferred_width (GtkWidget *widget,
        /* Theoretically, the slider could be bigger than the other button.  But we're
         * not going to worry about that now.
         */
-       path_bar->priv->slider_width = MIN (height * 2 / 3 + 5, height);
+        gtk_widget_get_preferred_width (path_bar->priv->down_slider_button,
+                                        &path_bar->priv->slider_width,
+                                        NULL);
 
        if (path_bar->priv->button_list) {
                *minimum += (path_bar->priv->slider_width) * 2;


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