* 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
* Re: GTK+ 1.3 GTK_TYPE issues
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
0 siblings, 1 reply; 3+ messages in thread
From: Martin Baulig @ 2000-11-30 7:00 UTC (permalink / raw)
To: Ariel Rios; +Cc: guile-gtk
Sorry for being stupid yesterday evening, there's a much
simpler and better fix for this, I was just way too tired
to see it ....
That's all what was needed:
===
2000-11-30 Martin Baulig <baulig@suse.de>
* gtk/config.scm.in (gtkconf-gtk-2-0): Added.
* configure.in (GTKCONFIG_GTK_2_0): Added, either `#t' or `#f'.
* build-guile-gtk (emit-object-info): Use G_TYPE_OBJECT for
GTK+ 2.x and GTK_TYPE_OBJECT for GTK+ 1.x.
===
--
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).