-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Haude said:
On Wed, 27 Apr 2005 19:21:50 +0100,
Aaargh! The moment you feel compelled to actually make use of GObject is
the moment to switch to C++. By the time you have understood how to define
a class in GObject you'll have mastered quite a bit of C++ (just a guess;
I've not been able to wrap my head around GObject yet and quit trying).
I came back to C from C++, primarily because of GObject. You are
correct, though: knowing C++ (or Objective C) helps understand it,
since you need to know the internals of how the C++ runtime works in
order to comprehend the details of GObject (fixing up the vtable,
chaining up constructors, virtual calls, etc.).
I was certainly well out of my depth until I had mastered C++, but my
C skills are much better as a result.
You might find these useful:
http://www.le-hacker.org/papers/gobject/
http://people.debian.org/~rleigh/gtk/ogcalc/
I use Gtk+ for GUI programming in C, but that's OK because I don't
get to see much of GObject that way.
You use it every time you connect a signal, or instantiate an object.
You also don't realise the full potential of GTK+ unless you derive
from the standard widgets, or create your own from scratch. Trivial
example: in most of my code, my top-level "application" object derives
from GtkWindow.
ACK. Followup set.
Regards,
Roger
- --
Roger Leigh
Printing on GNU/Linux?
http://gimp-print.sourceforge.net/
Debian GNU/Linux
http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <
http://mailcrypt.sourceforge.net/>
iD8DBQFCci74VcFcaSW/uEgRAuzpAJ9kVjr26VU/NfAnXT2HvMCGu9fZAACfUJ5U
4+pbCzIT4dhoN7gjF1ICSdg=
=iZN3
-----END PGP SIGNATURE-----