* 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
* Re: guile-gtk function stubs?
2000-01-16 12:14 guile-gtk function stubs? Firstname Lastname
@ 2000-01-16 14:50 ` Marius Vollmer
0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2000-01-16 14:50 UTC (permalink / raw)
To: Firstname Lastname; +Cc: guile-gtk
"Firstname Lastname" <msnsux@hotmail.com> writes:
> 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"))
This is not a complete Scheme expression. You can tell because there
are to few closing parentheses.
> (i couldn't find a NULL defined anywhere, so i assumed were supposed to use
> 0)
Use `#f' (the Scheme `false' value) for NULL.
> actually, of interest, it gives me the same message when using:
>
> (let ((drawing (gtk-drawing-area-new)))
> (let((picture3 (gdk-pixmap-create-from-xpm))
This is also a incomplete Scheme expression.
But, unfortunately, I don't think there is a Scheme equivalent of
gdk_pixmap_create_from_xpm yet. I don't exactly remember why, tho.
Something to do with the type confusions between GdkPixmap, GdkBitmap
and GdkWindow, I guess.
So, I think you are out of luck with Gdk pixmaps and guile-gtk,
currently. Maybe there is someone out there on this list who can take
a look at this issue?
^ 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).