[gnome-maps] placeBubble: Wrap long labels



commit c5023c25af8503184486d46e31a5fff623d29c79
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Mon Feb 15 07:51:16 2016 +0100

    placeBubble: Wrap long labels

 src/placeBubble.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index e694138..8c3ef42 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -186,12 +186,15 @@ const PlaceBubble = new Lang.Class({
                 let label = new Gtk.Label({ label: expandedContent[row].label.italics(),
                                             visible: true,
                                             use_markup: true,
+                                            yalign: 0,
                                             halign: Gtk.Align.START });
                 this._expandedContent.attach(label, col++, row, 1, 1);
             }
 
             let info = new Gtk.Label({ visible: true,
                                        use_markup: true,
+                                       max_width_chars: 25,
+                                       wrap: true,
                                        halign: Gtk.Align.START });
             if (expandedContent[row].linkUrl) {
                 let text = expandedContent[row].linkText;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]