[nautilus] path bar: Request enough natural width to fit all buttons



commit 0e8bdf7d0847ebe15520624fd0a5fadfced352a2
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Sun Jan 19 14:26:56 2014 +0200

    path bar: Request enough natural width to fit all buttons
    
    Otherwise, we are at the mercy of the container giving us
    more space than we request, which does not always work.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722542

 src/nautilus-pathbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 09ecae8..9d94f28 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -359,7 +359,7 @@ nautilus_path_bar_get_preferred_width (GtkWidget *widget,
                }
 
                *minimum = MAX (*minimum, child_min);
-               *natural = MAX (*natural, child_nat);
+               *natural = *natural + child_nat;
        }
 
        /* Add space for slider, if we have more than one path */


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