[gnome-documents/gnome-3-8] properties: Ellipsize the source label to deal with long paths
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] properties: Ellipsize the source label to deal with long paths
- Date: Tue, 13 Aug 2013 13:47:16 +0000 (UTC)
commit 0b0a1ad2df6f782181b6bd43750f94aff21ac36c
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 e631e29..c2db4c0 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 Application = imports.application;
@@ -180,6 +182,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]