[nautilus] properties-window: set max-width for value labels
- From: Lars Uebernickel <larsu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: set max-width for value labels
- Date: Mon, 6 Oct 2014 16:21:37 +0000 (UTC)
commit ac8394203a80e882f3c282ef6879c69abe08e26c
Author: Lars Uebernickel <lars uebernickel canonical com>
Date: Mon Oct 6 18:17:50 2014 +0200
properties-window: set max-width for value labels
Not setting it can lead to very wide windows, because gtk doesn't
enforce a maximum window size anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=732117
src/nautilus-properties-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 81bd351..efc1466 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -1288,6 +1288,7 @@ attach_label (GtkGrid *grid,
if (ellipsize_text) {
gtk_widget_set_hexpand (label_field, TRUE);
+ gtk_label_set_max_width_chars (GTK_LABEL (label_field), 24);
}
if (sibling != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]