This is the mail archive of the guile-gtk@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

guile-gtk function stubs?


I found a C function as follows:

GdkPixmap*  gdk_pixmap_create_from_xpm      (GdkWindow *window,
                                              GdkBitmap **mask,
                                              GdkColor *transparent_color,
                                              const gchar *filename);


which obviously translates to gdk-pixmap-create-from-xpm, but i'm uncertain 
how the paramteres may have changed.  are there stub files anywhere which 
can tell me the modifications to the parameter list?  Im guessing it's 
moddified cause i keep getting error messages like:

$ ./interface.scm
ERROR: In procedure primitive-load in expression (primitive-load name):
ERROR: end of file in
$


from :

(let((picture3 (gdk-pixmap-create-from-xpm drawing 0 0 "./peon3-4.xpm"))

(i couldn't find a NULL defined anywhere, so i assumed were supposed to use 
0)

actually, of interest, it gives me the same message when using:

(let ((drawing (gtk-drawing-area-new)))
  (let((picture3 (gdk-pixmap-create-from-xpm))


which since it's not saying "wrong numer of parameters", shows that 
somethings wrong somwhere.


Of interest,

(let ((qbutton (gtk-button-new-with-label "stubble2")))
  (let((picture2 (gtk-pixmap-new "./peon3-2.xpm" qbutton)))
    (gtk-box-pack-start main-box picture2 #t #t 0)
    (gtk-widget-show picture2)
    ))

works perfectly fine (except that it's not in a drawing-area).  Any ideas?






______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]