[rep-gtk: 2/12] Fix definition of GdkPixbuf



commit dc7fd5d4ec32895abce751559881395dc8835770
Author: Juergen Hoetzel <juergen archlinux org>
Date:   Tue Aug 25 16:21:54 2009 +0200

    Fix definition of GdkPixbuf
    
    GdkPixbuf is derived from GObject not a boxed type.

 gdk-pixbuf.defs |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gdk-pixbuf.defs b/gdk-pixbuf.defs
index b228c2b..76a7ca8 100644
--- a/gdk-pixbuf.defs
+++ b/gdk-pixbuf.defs
@@ -2,9 +2,7 @@
 
 (import "gdk.defs")
 
-(define-boxed GdkPixbuf
-  (copy gdk_pixbuf_ref)
-  (free gdk_pixbuf_unref))
+(define-object GdkPixbuf (GObject))
 
 (define-enum GdkColorspace
   (rgb GDK_COLORSPACE_RGB))
@@ -70,7 +68,7 @@
 ;;; loading
 
 (define-func gdk_pixbuf_new_from_file
-  (GdkPixbuf (copy nil))
+  (GdkPixbuf)
   ((string filename)
    ;; XXX fix this
    (GPointer gerror (= "0"))))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]