This is the mail archive of the guile-gtk@sources.redhat.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]

GTK+ 1.3 GTK_TYPE issues


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)

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