[nautilus] pathbar: remove hardcoded width for sliders
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] pathbar: remove hardcoded width for sliders
- Date: Thu, 17 Mar 2016 15:59:24 +0000 (UTC)
commit 6d87f24a8bc6bd5c376c0cb851fb24e440d766f6
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 e406a07..29ddcc4 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]