public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* guile-gtk function stubs?
@ 2000-01-16 12:14 Firstname Lastname
  2000-01-16 14:50 ` Marius Vollmer
  0 siblings, 1 reply; 2+ messages in thread
From: Firstname Lastname @ 2000-01-16 12:14 UTC (permalink / raw)
  To: guile-gtk

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-01-16 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-16 12:14 guile-gtk function stubs? Firstname Lastname
2000-01-16 14:50 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).