example-00-simple-imports.scm 387 B

123456789101112131415161718
  1. (use-modules (gi))
  2. (use-typelibs
  3. ("GLib" "2.0")
  4. ("Gtk" "3.0"))
  5. ;; (define-module (doc ex-load-by-name)
  6. ;; #:use-module (gi)
  7. ;; #:use-module (gi repository))
  8. ;; (require "GLib" "2.0")
  9. ;; (load-by-name "GLib" "MainLoop")
  10. ;; (load-by-name "GLib" "MainContext")
  11. ;; (export <GMainLoop>
  12. ;; main-loop:new
  13. ;; is-running?
  14. ;; <GMainContext>
  15. ;; get-context)