From: Martin Baulig <martin@home-of-linux.org>
To: Ariel Rios <ariel@arcavia.com>
Cc: guile-gtk@sourceware.cygnus.com
Subject: GTK+ 1.3 GTK_TYPE issues
Date: Wed, 29 Nov 2000 15:27:00 -0000 [thread overview]
Message-ID: <86d7febbo4.fsf@einstein.home-of-linux.org> (raw)
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)
next reply other threads:[~2000-11-29 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-29 15:27 Martin Baulig [this message]
2000-11-30 7:00 ` Martin Baulig
2000-11-30 14:18 ` ariel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86d7febbo4.fsf@einstein.home-of-linux.org \
--to=martin@home-of-linux.org \
--cc=ariel@arcavia.com \
--cc=guile-gtk@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).