[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mismatch between <something> and <something*> ?
From: |
Neil Jerram |
Subject: |
Mismatch between <something> and <something*> ? |
Date: |
Fri, 24 Mar 2006 00:35:26 +0000 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Hello g-wrap/guile-gtk/guile-gnome hackers! I've been trying to
extend guile-gnome so that it wraps the Hildon API used on the Nokia
770 as well as all the usual Gnome/GTK APIs. My build now appears to
be completely successful, but when I try a simple Hello World app I
get a runtime error.
The app is this:
(use-modules (gnome-0))
(use-modules (gnome gtk)
(gnome hildon))
(let ((app (make <hildon-app>))
(appview (make <hildon-app-view>))
(button (make <gtk-button> #:label "Hello World!")))
(set-title app "Hello World")
(set-appview app appview)
(add appview button)
(show-all app)
(gtk-main))
And I get an error from the set-appview line like this (from memory,
as I don't have it in front of me right now):
ERROR: In set-appview:
ERROR: wrong type arg in position 2: <<hildon-app-view> 0x34569348>
Now the .def for the set-appview method says that its second parameter
should be a <hildon-app-view*>, so it looks like the problem might be
a mismatch between <hildon-app-view> and <hildon-app-view*> ... But
then when I look at the .defs for lots of GTK widgets, and examples
that use them, I see lots of analogous cases where the method is
defined to take a <gtk-something*>, but it seems to work just fine to
pass it a <gtk-something>.
So does this mean that I'm missing some kind of declaration in the
Hildon defs, to allow <hildon-app-view> and <hildon-app-view*> to
match each other? Or have I done something else wrong in the way I've
invoked g-wrap to create the Hildon wrapset?
Any help would be much appreciated. (I can provide my source and
generated code, and any build output, if that would help.)
Thanks,
Neil
- Mismatch between <something> and <something*> ?,
Neil Jerram <=