[kupfer] preferences: Display (nice) path for directories
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] preferences: Display (nice) path for directories
- Date: Mon, 7 Sep 2009 21:50:27 +0000 (UTC)
commit 9736143f9a8845848b2bae7ba94d77d77640c2c3
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Sep 7 15:52:02 2009 +0200
preferences: Display (nice) path for directories
kupfer/preferences.py | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/kupfer/preferences.py b/kupfer/preferences.py
index 54b9e9e..c8c8e4a 100644
--- a/kupfer/preferences.py
+++ b/kupfer/preferences.py
@@ -119,7 +119,7 @@ class PreferencesWindowController (pretty.OutputMixin):
cell = gtk.CellRendererText()
col = gtk.TreeViewColumn("name", cell)
- col.add_attribute(cell, "markup", 2)
+ col.add_attribute(cell, "text", 2)
cell.set_property("ellipsize", pango.ELLIPSIZE_END)
self.dir_table.append_column(icon_col)
self.dir_table.append_column(col)
@@ -142,13 +142,9 @@ class PreferencesWindowController (pretty.OutputMixin):
have.append(d)
d = os.path.expanduser(d)
- basename = os.path.basename(os.path.normpath(d))
+ dispname = utils.get_display_path_for_bytestring(d)
gicon = icons.get_gicon_for_file(d)
- desc = u"%s\n<small>%s</small>" % (
- gobject.markup_escape_text(basename),
- gobject.markup_escape_text(d),
- )
- self.dir_store.append((d, gicon, desc))
+ self.dir_store.append((d, gicon, dispname))
if store:
setctl = settings.GetSettingsController()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]