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.
(cherry picked from commit b29a7ae399
)
This commit is contained in:
parent
a964f3effb
commit
2a0fc3652f
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user