public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* GTK+ 1.3 GTK_TYPE issues
@ 2000-11-29 15:27 Martin Baulig
  2000-11-30  7:00 ` Martin Baulig
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Baulig @ 2000-11-29 15:27 UTC (permalink / raw)
  To: Ariel Rios; +Cc: guile-gtk

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)

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

end of thread, other threads:[~2000-11-30 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-29 15:27 GTK+ 1.3 GTK_TYPE issues Martin Baulig
2000-11-30  7:00 ` Martin Baulig
2000-11-30 14:18   ` ariel

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).