This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
GTK+ 1.3 GTK_TYPE issues
- To: Ariel Rios <ariel at arcavia dot com>
- Subject: GTK+ 1.3 GTK_TYPE issues
- From: Martin Baulig <martin at home-of-linux dot org>
- Date: 30 Nov 2000 00:28:43 +0100
- Cc: guile-gtk at sourceware dot cygnus dot com
Hi,
so after this configure problem is solved and I
committed a small sgtk_signal_emit() fix for it,
this stuff basically compiles with GTK+ 1.3 except
one thing and that's actually a bigger problem:
In GTK+ 1.3, types like GTK_TYPE_OBJECT are no
longer constants but macros which expand to
gtk_object_get_type().
So this stuff now looks like the following:
===
sgtk_object_info sgtk_gtk_object_info = {
{ "GtkObject", (gtk_object_get_type ()) }, gtk_object_get_type
};
===
This is, of course, not allowed and your C compiler
correctly aborts with a parse error.
I think the only way to solve this is to keep the structure
uninitialized and call an init function after GTK+ has been
initialized.
Ideas ?
--
Martin Baulig
martin@gnome.org (private)
baulig@suse.de (work)