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



commit 7c0889638450a0de588b8c33a3af7d192ced6ba7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 18 17:55:04 2014 -0500

    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.

 gtk/gtkpathbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index ec3364b..3a1c821 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -371,7 +371,7 @@ gtk_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]