[gnome-documents] properties: Ellipsize the source label to deal with long paths



commit 184601594a528af300175919c4b93b260c66270c
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Aug 13 14:49:57 2013 +0200

    properties: Ellipsize the source label to deal with long paths
    
    Also update the copyright notice. There has been some commits by Red
    Hat employees that touch this file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702779

 src/properties.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/properties.js b/src/properties.js
index 1d11f48..922dc8c 100644
--- a/src/properties.js
+++ b/src/properties.js
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2012 Meg Ford
+ * Copyright (c) 2012, 2013 Red Hat, Inc.
  *
  * Gnome Documents is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by the
@@ -22,6 +23,7 @@
 const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
+const Pango = imports.gi.Pango;
 const _ = imports.gettext.gettext;
 const C_ = imports.gettext.pgettext;
 
@@ -181,6 +183,8 @@ const PropertiesDialog = new Lang.Class({
                 this._sourceData = new Gtk.LinkButton({ label: sourcePath,
                                                         uri: sourceLink.get_uri(),
                                                         halign: Gtk.Align.START });
+                let label = this._sourceData.get_child();
+                label.set_ellipsize(Pango.EllipsizeMode.END);
             }
         }
 


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