X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/236e096ef31850942bb6563b3ed0a9b718392960..88a1a3bf0858adf1f639b7b34757472f7847a8d6:/gtk/gtk.lisp diff --git a/gtk/gtk.lisp b/gtk/gtk.lisp index 38c61bb..21a44a6 100644 --- a/gtk/gtk.lisp +++ b/gtk/gtk.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtk.lisp,v 1.71 2007/06/01 09:17:17 espen Exp $ +;; $Id: gtk.lisp,v 1.72 2007/06/04 19:03:12 espen Exp $ (in-package "GTK") @@ -73,7 +73,7 @@ (defun clg-init (&optional display) (gdk:gdk-init) (unless (gtk-init) (error "Initialization of GTK+ failed.")) - #+(or cmu sbcl) + #?(or (pkg-config:featurep :cmu) (and (pkg-config:featurep :sbcl) (not (pkg-config:sbcl>= 1 0 6)))) (progn (signal-connect (gdk:display-manager) 'display-opened #'(lambda (display) @@ -89,6 +89,8 @@ (defun clg-init (&optional display) (setq *periodic-polling-function* #'main-iterate-all) (setq *max-event-to-sec* 0) (setq *max-event-to-usec* *event-poll-interval*)) + #?(pkg-config:sbcl>= 1 0 6) + (warn "Periodic polling functionality has been removed from SERVE-EVENT in SBCL 1.0.6. An explicit gtk main loop has to be invoked.") #+(and clisp readline) ;; Readline will call the event hook at most ten times per second (setf readline:event-hook #'main-iterate-all)