chiark / gitweb /
Dependency fix
[clg] / gtk / gtk.lisp
index b9e9c2217795b15955fccfb438a2fba0307d6391..e7ee2ac8019c92fd2920014e03ccd85e848e81a8 100644 (file)
@@ -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.32 2005-02-03 23:09:07 espen Exp $
+;; $Id: gtk.lisp,v 1.34 2005-02-10 00:15:51 espen Exp $
 
 
 (in-package "GTK")
@@ -62,6 +62,24 @@ (defun clg-init (&optional display)
       (setq *max-event-to-usec* 1000))))
 
 
+;;; About dialog
+
+#+gtk2.6
+(progn
+  (def-callback-marshal %about-dialog-activate-link-func 
+    (nil (dialog about-dialog) (link (copy-of string))))
+
+  (defbinding about-dialog-set-email-hook (function) nil
+    ((callback %about-dialog-activate-link-func) pointer)
+    ((register-callback-function function) unsigned-int)
+    ((callback user-data-destroy-func) pointer))
+  
+  (defbinding about-dialog-set-url-hook (function) nil
+    ((callback %about-dialog-activate-link-func) pointer)
+    ((register-callback-function function) unsigned-int)
+    ((callback user-data-destroy-func) pointer)))
+
+
 ;;; Acccel group
 
 (defbinding %accel-group-connect () nil
@@ -565,8 +583,8 @@ (defbinding dialog-set-response-sensitive (dialog response-id sensitive) nil
   (sensitive boolean))
 
 #+gtk2.6
-(defbinding alternative-dialog-button-order-p(&optional screen)
-  (screen (or null screen)))
+(defbinding alternative-dialog-button-order-p (&optional screen) boolean
+  (screen (or null gdk:screen)))
 
 #+gtk2.6
 (defbinding (dialog-set-alternative-button-order 
@@ -752,8 +770,7 @@ (defbinding file-filter-add-pattern () nil
 
 #+gtk2.6
 (defbinding file-filter-add-pixbuf-formats () nil
-  (filter file-filter)
-  (pattern string))
+  (filter file-filter))
 
 (def-callback-marshal %file-filter-func (boolean file-filter-info))
 
@@ -920,7 +937,7 @@ (defbinding menu-item-toggle-size-allocate () nil
 ;;; Menu tool button
 
 #+gtk2.6
-(defbinding menu-tool-button-set-arrow-tip () nil
+(defbinding menu-tool-button-set-arrow-tooltip () nil
   (menu-tool-button menu-tool-button)
   (tooltips tooltips)
   (tip-text string)
@@ -1866,7 +1883,7 @@ (defbinding editable-insert-text (editable text &optional (position 0)) nil
   (editable editable)
   (text string)
   ((length text) int)
-  (position position-type :in-out))
+  (position position :in-out))
 
 (defun editable-append-text (editable text)
   (editable-insert-text editable text nil))