[tracker/tst-ui-fixes] t-s-t: Set ellipsizing to link buttons.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tst-ui-fixes] t-s-t: Set ellipsizing to link buttons.
- Date: Wed, 24 Mar 2010 11:57:03 +0000 (UTC)
commit fa7c53e7ce5ba47f91ea6d30dd2fce4fa8129b0a
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Mar 24 12:56:10 2010 +0100
t-s-t: Set ellipsizing to link buttons.
This is so window size doesn't change with long paths/filenames.
src/tracker-search-tool/tracker-metadata-tile.gs | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-search-tool/tracker-metadata-tile.gs b/src/tracker-search-tool/tracker-metadata-tile.gs
index 97ab158..11cb27e 100644
--- a/src/tracker-search-tool/tracker-metadata-tile.gs
+++ b/src/tracker-search-tool/tracker-metadata-tile.gs
@@ -23,6 +23,7 @@
uses
Gtk
Cairo
+ Pango
TrackerUtils
@@ -105,7 +106,7 @@ class TrackerMetadataTile : EventBox
name_label = CreateLabel (N_("Name:"), false)
AttachToTable (name_label, 1, 2, 0, 1, false)
table.attach (name_link, 2, 3, 0, 1, AttachOptions.FILL, AttachOptions.FILL, 0, 0)
-
+
path_link = new LinkButton ("")
path_link.xalign = 0
path_label = CreateLabel (N_("Folder:"), false)
@@ -292,8 +293,14 @@ class TrackerMetadataTile : EventBox
name_link.label = filepath
path_link.uri = displaypath.get_uri ()
path_link.label = displaypath.get_path ()
-
-
+
+ link_label : Label
+ link_label = (Label) path_link.get_child ()
+ link_label.set_ellipsize (EllipsizeMode.MIDDLE)
+
+ link_label = (Label) name_link.get_child ()
+ link_label.set_ellipsize (EllipsizeMode.MIDDLE)
+
SetLabelValue (info_value1, mime)
try
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]