summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-03-17 16:58:57 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-03-17 17:14:48 +0100
commit3292b651b2126240ba1bcb06e3815d0225e41a9e (patch)
tree33a109c5ac9e1539e6c01fb694afa5974d70823c
parentf1724b047e12f25b272fe524ea716ef133781fa4 (diff)
downloadnautilus-3292b651b2126240ba1bcb06e3815d0225e41a9e.tar.gz
pathbar: remove hardcoded width for sliders
-rw-r--r--src/nautilus-pathbar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 7f3847092..c3fe34edf 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;