gtk-screen: Catch up with Glib,Pango,Gtk name changes.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sun, 6 Jul 2014 08:33:12 +0000 (01:33 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sun, 6 Jul 2014 08:33:12 +0000 (01:33 -0700)
src/gtk-screen/check.scm
src/gtk-screen/gtk-screen.pkg
src/gtk-screen/gtk-screen.scm

index 3eb3fcb3d731fdcaeeee7237e16c3aef610d9a0b..f35dffbf3b60792e62a72e3d56310382087f1b59 100644 (file)
@@ -9,6 +9,6 @@
   (set! *initial-options-file* (merge-pathnames "gtk-screen-optiondb" dirname)))
 
 (load-option 'GTK-SCREEN)
-(if (gtk-thread-running?)
+(if (gtk-initialized?)
     (load "gtk-screen-check")
     (warn "Could not test the GTK subsystem without a DISPLAY."))
\ No newline at end of file
index 6d66e36233686063a2b32464489d2f8e5087af70..bf043c183fad29f6b321c1a83ff90bd9f3ec9bd2 100644 (file)
@@ -25,8 +25,11 @@ USA.
 
 (global-definitions runtime/)
 (global-definitions sos/)
-(global-definitions gtk/)
 (global-definitions edwin/)
+(global-definitions glib/)
+(global-definitions pango/)
+(global-definitions cairo/)
+(global-definitions gtk/)
 
 (define-package (edwin screen gtk-screen)
   (files "gtk-screen" "gtk-faces")
@@ -82,7 +85,7 @@ USA.
          %window-start-mark
          %set-window-start-mark!
          %window-tab-width)
-  (import (gtk pango)
+  (import (pango)
          pangos->pixels)
   (import (gtk gtk-widget)
          gtk-widget-destroy-callback
@@ -104,9 +107,10 @@ USA.
          fix-rect-min-x fix-rect-max-x fix-rect-min-y fix-rect-max-y
          set-fix-rect-size! set-fix-rect-position!
          fix-rect-intersect? fix-rect-union!)
+  (import (glib)
+         gobject-alien gobject-unref!)
   (import (gtk)
          gdk-key-state->char-bits gdk-keyval->name
-         gobject-alien gobject-unref!
          gdk-window-process-updates
 
          gtk-widget-destroyed? gtk-widget-destroy
@@ -148,21 +152,6 @@ USA.
          gtk-window-set-opacity
          gtk-window-set-default-size
 
-         pango-layout-get-pixel-extents
-         pango-layout-index-to-pos
-         pango-layout-set-text
-         pango-layout-set-markup
-
-         pango-context-get-metrics
-         pango-context-spacing
-
-         pango-font-description-from-string
-         pango-font-description-to-string
-         pango-font-description-free
-         pango-font-metrics-get-ascent pango-font-metrics-get-descent
-         pango-font-metrics-get-approximate-char-width
-         pango-font-metrics-unref
-
          set-scm-widget-minimum-size!
          set-scm-widget-natural-size!
 
index 185cb5f3ee5e977b6e49e6de83d8b6401ba13167..111ee165c3bef4c5dead1c15c1ba8dec6b92fa98 100644 (file)
@@ -695,7 +695,7 @@ USA.
   (set! gtk-display-type
        (make-display-type 'GTK
                           #t
-                          gtk-thread-running?
+                          gtk-initialized?
                           make-gtk-screen
                           (lambda (screen)
                             screen     ;ignore