@@ -309,7 +309,7 @@ def on_new_menu_button_clicked(self, button):
309
309
parent = menus [iter ][2 ]
310
310
file_path = os .path .join (util .getUserDirectoryPath (), util .getUniqueFileId ('mozo-made' , '.directory' ))
311
311
process = subprocess .Popen (['mate-desktop-item-edit' , file_path ], env = os .environ )
312
- GLib .timeout_add (100 , self .waitForNewMenuProcess , process , parent .menu_id , file_path )
312
+ GLib .timeout_add (100 , self .waitForNewMenuProcess , process , parent .get_menu_id () , file_path )
313
313
314
314
def on_new_item_button_clicked (self , button ):
315
315
menu_tree = self .tree .get_object ('menu_tree' )
@@ -322,7 +322,7 @@ def on_new_item_button_clicked(self, button):
322
322
parent = menus [iter ][2 ]
323
323
file_path = os .path .join (util .getUserItemPath (), util .getUniqueFileId ('mozo-made' , '.desktop' ))
324
324
process = subprocess .Popen (['mate-desktop-item-edit' , file_path ], env = os .environ )
325
- GLib .timeout_add (100 , self .waitForNewItemProcess , process , parent .menu_id , file_path )
325
+ GLib .timeout_add (100 , self .waitForNewItemProcess , process , parent .get_menu_id () , file_path )
326
326
327
327
def on_new_separator_button_clicked (self , button ):
328
328
item_tree = self .tree .get_object ('item_tree' )
0 commit comments