Gtk+ 3: open library in "global" mode to support the printer dialog

Opening a shared object in global mode risks conflicts with
other shared objects, but opening only one library that way
will hopefully not create conflicts.
This commit is contained in:
Matthew Flatt 2015-11-19 12:01:37 -07:00
parent c0bbc70194
commit b29a7ae399

View File

@ -8,7 +8,9 @@
(define (get-gdk3-lib)
(ffi-lib "libgdk-3" '("0" "") #:fail (lambda () #f)))
(define (get-gtk3-lib)
(ffi-lib "libgtk-3" '("0" "") #:fail (lambda () #f)))
;; Open in "global" mode so that gtk_print_operation_run()
;; can find the printer dialog using _g_module_symbol():
(ffi-lib "libgtk-3" '("0" "") #:global? #t #:fail (lambda () #f)))
(define gtk3?
(and (not (getenv "PLT_GTK2"))