From 1ad3090c8d80fe51dc6d9d3fdb0e8619ddc2ac69 Mon Sep 17 00:00:00 2001 From: Youssef Adnan Date: Sat, 8 Dec 2018 14:00:23 -0800 Subject: [PATCH] osx: Bring Meld to the front --- meld/meldwindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meld/meldwindow.py b/meld/meldwindow.py index 9e5fcefae..b567a8607 100644 --- a/meld/meldwindow.py +++ b/meld/meldwindow.py @@ -38,7 +38,7 @@ is_native = False try: - from Foundation import NSUserDefaults + from Cocoa import NSApp is_native = True except: pass @@ -293,6 +293,7 @@ def osx_menu_setup(self, widget, event, callback_data=None): self.macapp.insert_app_menu_item(prefs_item, 2) self.macapp.insert_app_menu_item(Gtk.SeparatorMenuItem(), 3) #self.macapp.ready() + NSApp.activateIgnoringOtherApps_(True) self.osx_ready = True def _on_recentmenu_map(self, recentmenu):