[nautilus] Revert "Fix path bar changing size when navigating"
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Revert "Fix path bar changing size when navigating"
- Date: Wed, 28 Mar 2018 08:34:13 +0000 (UTC)
commit 16c0115593fec7db2442824fd9eb87634265517c
Author: Carlos Soriano <csoriano1618 gmail com>
Date: Wed Mar 28 08:33:20 2018 +0000
Revert "Fix path bar changing size when navigating"
This reverts commit 01dca52cbdb6978fa9bb759dcd7d126a497e8185
src/nautilus-pathbar.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index e6016b77c..630b8ed33 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -480,13 +480,7 @@ set_label_size_request (ButtonData *button_data)
}
gtk_widget_get_preferred_size (button_data->label, NULL, &nat_req);
-
- /* We need to show the bold label first before measuring it, because
- * invisible widgets always return 0 when their size is requested.
- */
- gtk_widget_show (button_data->bold_label);
gtk_widget_get_preferred_size (button_data->bold_label, &bold_req, NULL);
- gtk_widget_hide (button_data->bold_label);
width = MAX (nat_req.width, bold_req.width);
width = MIN (width, NAUTILUS_PATH_BAR_BUTTON_MAX_WIDTH);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]