From: espen Date: Thu, 9 Feb 2006 22:31:28 +0000 (+0000) Subject: Added method ALLOCATE-FOREIGN X-Git-Tag: clg-0-92~60 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/adc20f66cbd970ba6f8d495646ee27498eb8f1f2?hp=3b688fe895de03b38fff2b8c36f0c01a17b320db Added method ALLOCATE-FOREIGN --- diff --git a/gdk/gdk.lisp b/gdk/gdk.lisp index cf148c8..e3d370b 100644 --- a/gdk/gdk.lisp +++ b/gdk/gdk.lisp @@ -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: gdk.lisp,v 1.20 2006/02/08 22:20:22 espen Exp $ +;; $Id: gdk.lisp,v 1.21 2006/02/09 22:31:28 espen Exp $ (in-package "GDK") @@ -422,14 +422,12 @@ (defbinding rgb-init () nil) ;;; Cursor -(defmethod initialize-instance ((cursor cursor) &key type mask fg bg - (x 0) (y 0) (display (display-get-default))) - (setf - (foreign-location cursor) - (etypecase type - (keyword (%cursor-new-for-display display type)) - (pixbuf (%cursor-new-from-pixbuf display type x y)) - (pixmap (%cursor-new-from-pixmap type mask fg bg x y))))) +(defmethod allocate-foreign ((cursor cursor) &key type mask fg bg + (x 0) (y 0) (display (display-get-default))) + (etypecase type + (keyword (%cursor-new-for-display display type)) + (pixbuf (%cursor-new-from-pixbuf display type x y)) + (pixmap (%cursor-new-from-pixmap type mask fg bg x y)))) (defbinding %cursor-new-for-display () pointer