Convert backend determination for pygi and Gtk3 (GEP-029)

svn: r20005
This commit is contained in:
John Ralls 2012-07-15 23:49:11 +00:00
parent 9f3feb9832
commit e9a2520802

View File

@ -94,7 +94,7 @@ def is_quartz():
from gi.repository import Gdk
except:
return False
return Gdk.WINDOWING == "quartz"
return Gdk.Display.get_default().__class__.__name__.endswith("quartzDisplay")
return False
def has_display():