Fixed ref counting problem when reading the icon-list slot in windows
[clg] / gtk / gtk.lisp
index 722584a..bf7c8cd 100644 (file)
@@ -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.46 2005-10-21 12:32:29 espen Exp $
+;; $Id: gtk.lisp,v 1.49 2006-02-06 19:16:17 espen Exp $
 
 
 (in-package "GTK")
   (defbinding %window-present () nil
     (window window))
 
-  (defbinding %window-present-with-timestamp () nil
+  (defbinding %window-present-with-time () nil
     (window window)
     (timespamp unsigned-int))
 
   (defun window-present (window &optional timestamp)
     (if timestamp
-       (%window-present-with-timestamp window timestamp)
+       (%window-present-with-time window timestamp)
       (%window-present window))))
 
 (defbinding window-iconify () nil
   (width int)
   (heigth int))
 
+(defbinding %window-get-icon-list () (glist (copy-of gdk:pixbuf))
+  (window window))
+
 
 ;;; Window group
 
 
 (defun stock-lookup (stock-id)
   (let ((location 
-        (allocate-memory (proxy-instance-size (find-class 'stock-item)))))
+        (allocate-memory (foreign-size (find-class 'stock-item)))))
     (unwind-protect
        (when (%stock-lookup stock-id location)
          (ensure-proxy-instance 'stock-item (%stock-item-copy location)))