~ubuntu-branches/ubuntu/vivid/nautilus/vivid

« back to all changes in this revision

Viewing changes to debian/patches/git_properties_window_set_max_width_for_value_labels.patch

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Lars Uebernickel
  • Date: 2014-10-20 09:05:18 UTC
  • Revision ID: package-import@ubuntu.com-20141020090518-ykbdbqn3cb98gyh5
Tags: 1:3.10.1-0ubuntu15
* debian/patches/git_name_column.patch:
  - "nautilus-list-view: Avoid unreadable names" (lp: #1243806)

[ Lars Uebernickel ]
* debian/patches/properties_window_set_max_width_for_value_labels.patch:
  - avoid very wide properties window (GNOME: #732117)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 0618af5a154cff26c7a04b303abcbeec2a8ca10d Mon Sep 17 00:00:00 2001
 
2
From: Lars Uebernickel <lars.uebernickel@canonical.com>
 
3
Date: Mon, 6 Oct 2014 13:07:51 +0200
 
4
Subject: [PATCH] properties-window: set max-width for value labels
 
5
 
 
6
Not setting it can lead to very wide windows, because gtk doesn't
 
7
enforce a maximum window size anymore.
 
8
 
 
9
https://bugzilla.gnome.org/show_bug.cgi?id=732117
 
10
---
 
11
 src/nautilus-properties-window.c | 1 +
 
12
 1 file changed, 1 insertion(+)
 
13
 
 
14
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
 
15
index 3b15dd9..631c456 100644
 
16
--- a/src/nautilus-properties-window.c
 
17
+++ b/src/nautilus-properties-window.c
 
18
@@ -1276,6 +1276,7 @@ attach_label (GtkGrid *grid,
 
19
 
 
20
        if (ellipsize_text) {
 
21
                gtk_widget_set_hexpand (label_field, TRUE);
 
22
+               gtk_label_set_max_width_chars (GTK_LABEL (label_field), 24);
 
23
        }
 
24
 
 
25
        if (sibling != NULL) {
 
26
-- 
 
27
2.1.0