Fix up mac integration for introspection
Requires not-yet-released gtk-mac-integration 1.1.0 svn: r20033
This commit is contained in:
parent
ec2367cb66
commit
cf6b91ffe9
@ -94,7 +94,7 @@ def is_quartz():
|
||||
from gi.repository import Gdk
|
||||
except:
|
||||
return False
|
||||
return Gdk.Display.get_default().__class__.__name__.endswith("quartzDisplay")
|
||||
return Gdk.Display.get_default().__class__.__name__.endswith("QuartzDisplay")
|
||||
return False
|
||||
|
||||
def has_display():
|
||||
|
@ -108,9 +108,10 @@ from gen.utils.configmanager import safe_eval
|
||||
#-------------------------------------------------------------------------
|
||||
if is_quartz():
|
||||
try:
|
||||
import gtk_osxapplication as QuartzApp
|
||||
from gi.repository import GtkosxApplication as QuartzApp
|
||||
_GTKOSXAPPLICATION = True
|
||||
except:
|
||||
print ("Failed to import gtk_osxapplication")
|
||||
_GTKOSXAPPLICATION = False
|
||||
else:
|
||||
_GTKOSXAPPLICATION = False
|
||||
@ -305,7 +306,7 @@ class ViewManager(CLIManager):
|
||||
"""
|
||||
CLIManager.__init__(self, dbstate, False)
|
||||
if _GTKOSXAPPLICATION:
|
||||
self.macapp = QuartzApp.OSXApplication()
|
||||
self.macapp = QuartzApp.Application()
|
||||
|
||||
self.view_category_order = view_category_order
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user