[alacarte] ItemEditor: Make sure to set the Type field



commit fb569f0e74b8b4c11e4381e5bead0515e8bc3b5b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 11 01:26:59 2013 -0500

    ItemEditor: Make sure to set the Type field

 Alacarte/ItemEditor.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Alacarte/ItemEditor.py b/Alacarte/ItemEditor.py
index 3685c56..be725fd 100644
--- a/Alacarte/ItemEditor.py
+++ b/Alacarte/ItemEditor.py
@@ -180,7 +180,8 @@ class LauncherEditor(ItemEditor):
                     Exec=self.builder.get_object('exec-entry').get_text(),
                     Comment=self.builder.get_object('comment-entry').get_text(),
                     Terminal=self.builder.get_object('terminal-check').get_active(),
-                    Icon=get_icon_string(self.builder.get_object('icon-image')))
+                    Icon=get_icon_string(self.builder.get_object('icon-image')),
+                    Type="Application")
 
     def pick_exec(self, button):
         chooser = Gtk.FileChooserDialog(title=_("Choose a command"),
@@ -224,7 +225,8 @@ class DirectoryEditor(ItemEditor):
     def get_keyfile_edits(self):
         return dict(Name=self.builder.get_object('name-entry').get_text(),
                     Comment=self.builder.get_object('comment-entry').get_text(),
-                    Icon=get_icon_string(self.builder.get_object('icon-image')))
+                    Icon=get_icon_string(self.builder.get_object('icon-image')),
+                    Type="Directory")
 
 def test_editor(path):
     if path.endswith('.directory'):



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