Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make GTK actually optional.

  • Loading branch information...
commit ef7a0589f24ba5eba1f6a09a3ae86951ec5b1890 1 parent e7e51f7
@SimonSapin authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 cairocffi/pixbuf.py
View
5 cairocffi/pixbuf.py
@@ -89,7 +89,10 @@
gdk_pixbuf = dlopen(ffi, 'gdk_pixbuf-2.0', 'libgdk_pixbuf-2.0-0')
gobject = dlopen(ffi, 'gobject-2.0', 'libgobject-2.0-0')
-gdk = dlopen(ffi, 'gdk-3', 'gdk-x11-2.0', 'libgdk-win32-2.0-0')
+try:
+ gdk = dlopen(ffi, 'gdk-3', 'gdk-x11-2.0', 'libgdk-win32-2.0-0')
+except OSError:
+ gdk = None
gobject.g_type_init()
Please sign in to comment.
Something went wrong with that request. Please try again.