chiark / gitweb /
Add a boundp-function slot, which is required by virtual slot getter.
[clg] / examples / testgtk.lisp
index b008a04d60e3d7408820a21f5f8473378284e1d3..514510d32a4c08f7e2e0a96cc950dfac9adfd6e1 100644 (file)
 ;; Parts of this file are direct translations of code from 'testgtk.c'
 ;; distributed with the Gtk+ library, and thus covered by the GNU
 ;; Lesser General Public License and copyright Peter Mattis, Spencer
-;; Kimball, Josh MacDonald and others.
+;; Kimball, Josh MacDonald and others. To be safe the entire file
+;; should probably be considered as being GPL'ed.
 
 
-;; $Id: testgtk.lisp,v 1.40 2007-06-20 10:20:47 espen Exp $
+;; $Id: testgtk.lisp,v 1.44 2008-12-09 19:37:19 espen Exp $
 
 #+sbcl(require :gtk)
 #+(or cmu clisp)(asdf:oos 'asdf:load-op :gtk)
@@ -544,7 +545,7 @@   (defun load-pixbufs ()
           :message-type :error :visible t
           :text "<b>Failed to load an image</b>" 
           :secondary-text (glib:gerror-message condition)
-          :signal (list :close #'widget-destroy :object t))
+          :signal (list :ok #'widget-destroy :object t))
          (return-from load-pixbufs nil))))
     t)
 
@@ -950,8 +951,8 @@ (defun create-notebook-page (notebook page-num book-closed)
        
 (define-simple-dialog create-notebook (dialog "Notebook")
   (let ((main (make-instance 'v-box :parent dialog)))
-    (let ((book-open (gdk:pixbuf-new-from-xpm-data book-open-xpm))
-         (book-closed (gdk:pixbuf-new-from-xpm-data book-closed-xpm))
+    (let ((book-open (make-instance 'gdk:pixbuf :source book-open-xpm))
+         (book-closed (make-instance 'gdk:pixbuf :source book-closed-xpm))
          (notebook (make-instance 'notebook 
                     :border-width 10 :tab-pos :top :parent main)))
 
@@ -1795,7 +1796,7 @@ (define-toplevel create-handle-box (window "Handle Box Test" :border-width 20)
    :child (create-label "Below")))
 
 
-;;; Tooltips test
+;;; Tooltips test. Note that GtkTooltips has been deprecated in GTK+ 2.12
 
 (define-simple-dialog create-tooltips (dialog "Tooltips" :default-width 200)
   (let ((tooltips (make-instance 'tooltips)))