summaryrefslogtreecommitdiff
path: root/Mozo
diff options
context:
space:
mode:
authorgm10 <[email protected]>2019-03-07 09:08:44 +0100
committerraveit65 <[email protected]>2019-03-11 09:03:52 +0100
commitffe5e719745f9f1f3e77f7b27e60112406a00753 (patch)
tree0f3c8f5049b82d1c0c494823b36c85346d8fdc0c /Mozo
parent30caedb0c53281859d7fb724dea9cd96c796990c (diff)
downloadmozo-ffe5e719745f9f1f3e77f7b27e60112406a00753.tar.bz2
mozo-ffe5e719745f9f1f3e77f7b27e60112406a00753.tar.xz
Fix creating new menus and items
Diffstat (limited to 'Mozo')
-rw-r--r--Mozo/MainWindow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py
index 19e2894..4ca5b84 100644
--- a/Mozo/MainWindow.py
+++ b/Mozo/MainWindow.py
@@ -309,7 +309,7 @@ class MainWindow:
parent = menus[iter][2]
file_path = os.path.join(util.getUserDirectoryPath(), util.getUniqueFileId('mozo-made', '.directory'))
process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ)
- GLib.timeout_add(100, self.waitForNewMenuProcess, process, parent.menu_id, file_path)
+ GLib.timeout_add(100, self.waitForNewMenuProcess, process, parent.get_menu_id(), file_path)
def on_new_item_button_clicked(self, button):
menu_tree = self.tree.get_object('menu_tree')
@@ -322,7 +322,7 @@ class MainWindow:
parent = menus[iter][2]
file_path = os.path.join(util.getUserItemPath(), util.getUniqueFileId('mozo-made', '.desktop'))
process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ)
- GLib.timeout_add(100, self.waitForNewItemProcess, process, parent.menu_id, file_path)
+ GLib.timeout_add(100, self.waitForNewItemProcess, process, parent.get_menu_id(), file_path)
def on_new_separator_button_clicked(self, button):
item_tree = self.tree.get_object('item_tree')