[polari] connections: Ellipsize account names



commit 780e97c153bb49ce812325a686ced7d953f81a99
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Aug 11 19:43:31 2015 +0200

    connections: Ellipsize account names
    
    Account names are user configurable strings, and thus can be of
    arbitrary length. While this shouldn't be a common issue, we still
    shouldn't grow the UI indefinitely, so ellipsize the names.

 src/connections.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 11a89be..c00bc4a 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -3,6 +3,7 @@ const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const GObject = imports.gi.GObject;
 const Gtk = imports.gi.Gtk;
+const Pango = imports.gi.Pango;
 const Tp = imports.gi.TelepathyGLib;
 
 const AccountsMonitor = imports.accountsMonitor;
@@ -83,7 +84,8 @@ const ConnectionsDialog = new Lang.Class({
                                 spacing: 6, margin: 6 });
         row.add(box);
 
-        let label = new Gtk.Label({ hexpand: true, halign: Gtk.Align.START });
+        let label = new Gtk.Label({ hexpand: true, halign: Gtk.Align.START,
+                                    ellipsize: Pango.EllipsizeMode.END });
         box.add(label);
 
         let sw = new Gtk.Switch();


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