X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/c775862ea87960c2d8ab55a82b9c315c0660ae6d..9adccb27da69b60d058aa37867d55ea20ecf97ca:/gtk/gtk.lisp diff --git a/gtk/gtk.lisp b/gtk/gtk.lisp index d71b327..845fdd8 100644 --- a/gtk/gtk.lisp +++ b/gtk/gtk.lisp @@ -15,7 +15,7 @@ ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -;; $Id: gtk.lisp,v 1.14 2004-11-03 10:41:23 espen Exp $ +;; $Id: gtk.lisp,v 1.15 2004-11-06 21:39:58 espen Exp $ (in-package "GTK") @@ -42,6 +42,27 @@ (defun gtk-version () (defbinding get-default-language () string) +;;;; Initalization + +(defbinding (gtk-init "gtk_parse_args") () nil + "Initializes the library without opening the display." + (nil null) + (nil null)) + +(defun clg-init (&optional display) + "Initializes the system and starts the event handling" + (unless (gdk:display-get-default) + (gdk:gdk-init) + (gtk-init) + (prog1 + (gdk:display-open display) + (system:add-fd-handler + (gdk:display-connection-number) :input #'main-iterate-all) + (setq lisp::*periodic-polling-function* #'main-iterate-all) + (setq lisp::*max-event-to-sec* 0) + (setq lisp::*max-event-to-usec* 1000)))) + + ;;; Acccel group @@ -248,6 +269,7 @@ (defbinding (color-selection-is-adjusting-p (defmethod shared-initialize ((combo combo) names &rest initargs &key popdown-strings) + (declare (ignore initargs)) (call-next-method) (when popdown-strings (combo-set-popdown-strings combo popdown-strings))) @@ -264,6 +286,7 @@ (defbinding combo-disable-activate () nil ;;;; Dialog (defmethod shared-initialize ((dialog dialog) names &rest initargs &key button) + (declare (ignore button)) (call-next-method) (dolist (button-definition (get-all initargs :button)) (apply #'dialog-add-button dialog (mklist button-definition)))) @@ -677,14 +700,14 @@ (defbinding window-begin-resize-drag () nil (edge gdk:window-edge) (button int) (root-x int) (root-y int) - (timestamp (unsigned-int 32))) + (timestamp unsigned-int)) (defbinding window-begin-move-drag () nil (window window) (edge gdk:window-edge) (button int) (root-x int) (root-y int) - (timestamp (unsigned-int 32))) + (timestamp unsigned-int)) (defbinding window-set-frame-dimensions () nil (window window)