chiark / gitweb /
Added selection in list and tree widgets
[clg] / gtk / gtk.lisp
index e195ab8ca95ae7d6b52039a8a6db426f7f3c66d1..85eced109cfe46a6ee9db9238425d433a6ac271d 100644 (file)
 ;; 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.17 2004-11-07 17:55:29 espen Exp $
+;; $Id: gtk.lisp,v 1.19 2004-11-21 17:39:27 espen Exp $
 
 
 (in-package "GTK")
 
 ;;; Gtk version
 
-(defbinding check-version () string
+(defbinding check-version () (copy-of string)
   (required-major unsigned-int)
   (required-minor unsigned-int)
   (required-micro unsigned-int))
@@ -39,7 +39,7 @@ (defun gtk-version ()
        (format nil "Gtk+ v~A.~A" major minor) 
       (format nil "Gtk+ v~A.~A.~A" major minor micro))))
 
-(defbinding get-default-language () string)
+(defbinding get-default-language () (copy-of pango:language))
 
 
 ;;;; Initalization
@@ -271,7 +271,7 @@ (defmethod shared-initialize ((combo-box combo-box) names &key model content)
   (unless model
     (setf 
      (combo-box-model combo-box) 
-     (make-instance 'list-store :columns '(string)))
+     (make-instance 'list-store :column-types '(string)))
     (unless (typep combo-box 'combo-box-entry)
       (let ((cell (make-instance 'cell-renderer-text)))
        (cell-layout-pack combo-box cell :expand t)
@@ -956,7 +956,7 @@ (defbinding (notebook-tab-label "gtk_notebook_get_tab_label")
   ((%notebook-child notebook page) widget))
 
 (defbinding (notebook-tab-label-text "gtk_notebook_get_tab_label_text")
-    (notebook page) string
+    (notebook page) (copy-of string)
   (notebook notebook)
   ((%notebook-child notebook page) widget))
 
@@ -979,7 +979,7 @@ (defbinding (notebook-menu-label "gtk_notebook_get_menu_label")
   ((%notebook-child notebook page) widget))
 
 (defbinding (notebook-menu-label-text "gtk_notebook_get_menu_label_text")
-    (notebook page) string
+    (notebook page) (copy-of string)
   (notebook notebook)
   ((%notebook-child notebook page) widget))
 
@@ -1499,7 +1499,7 @@ (defbinding progress-bar-pulse () nil
 
 (defbinding stock-lookup () boolean
   (stock-id string)
-  (stock-item stock-item :out))
+  ((make-instance 'stock-item) stock-item :return))