[nautilus] path bar: Request enough natural width to fit all buttons
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] path bar: Request enough natural width to fit all buttons
- Date: Sun, 16 Feb 2014 02:05:54 +0000 (UTC)
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]