[alacarte] MainWindow: Fix typos related to separators



commit f3a41e14b3d7e30c1b3776f7b03a234ca6ebf4d8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jun 11 11:39:40 2012 -0400

    MainWindow: Fix typos related to separators
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677343

 Alacarte/MainWindow.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index 69e6518..b73efd0 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -85,7 +85,7 @@ class MainWindow(object):
             elif isinstance(items[iter][3], GMenu.TreeDirectory):
                 item_id = os.path.split(items[iter][3].get_desktop_file_path())[1]
                 update_type = GMenu.TreeItemType.DIRECTORY
-            elif isinstance(items[iter][3], GMenu.Tree.Separator):
+            elif isinstance(items[iter][3], GMenu.TreeSeparator):
                 item_id = items.get_path(iter)
                 update_type = GMenu.TreeItemType.SEPARATOR
         menus, iter = menu_tree.get_selection().get_selected()
@@ -220,7 +220,7 @@ class MainWindow(object):
                 name = item.get_name()
             elif isinstance(item, GMenu.TreeEntry):
                 name = item.get_app_info().get_display_name()
-            elif isinstance(item, GMenu.Separator):
+            elif isinstance(item, GMenu.TreeSeparator):
                 name = '---'
             else:
                 assert False, 'should not be reached'



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