[gnome-menus] [editor] Use display name instead of name
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-menus] [editor] Use display name instead of name
- Date: Mon, 7 Sep 2009 23:30:03 +0000 (UTC)
commit db81a7f1194e435b538ab6710d752276fb1c7135
Author: Vincent Untz <vuntz gnome org>
Date: Mon Sep 7 23:28:56 2009 +0200
[editor] Use display name instead of name
simple-editor/GMenuSimpleEditor/menutreemodel.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/simple-editor/GMenuSimpleEditor/menutreemodel.py b/simple-editor/GMenuSimpleEditor/menutreemodel.py
index 637d773..5856d56 100644
--- a/simple-editor/GMenuSimpleEditor/menutreemodel.py
+++ b/simple-editor/GMenuSimpleEditor/menutreemodel.py
@@ -108,11 +108,13 @@ class MenuTreeModel (gtk.TreeStore):
for menu_file in menu_files:
tree = gmenu.lookup_tree (menu_file, gmenu.FLAGS_INCLUDE_EXCLUDED)
+ tree.sort_key = gmenu.SORT_DISPLAY_NAME
self.__append_directory (tree.root, None, False, menu_file)
system_file = lookup_system_menu_file (menu_file)
if system_file:
system_tree = gmenu.lookup_tree (system_file, gmenu.FLAGS_INCLUDE_EXCLUDED)
+ system_tree.sort_key = gmenu.SORT_DISPLAY_NAME
self.__append_directory (system_tree.root, None, True, menu_file)
def __append_directory (self, directory, parent_iter, system, menu_file):
@@ -161,7 +163,7 @@ class MenuTreeModel (gtk.TreeStore):
self[child_iter][self.COLUMN_IS_ENTRY] = True
self[child_iter][self.COLUMN_ID] = child_item.desktop_file_id
- self[child_iter][self.COLUMN_NAME] = child_item.name
+ self[child_iter][self.COLUMN_NAME] = child_item.display_name
self[child_iter][self.COLUMN_ICON] = load_icon (self.icon_theme,
child_item.icon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]