[Mono-list] Mono w/GLib & GObject

Christopher David Howie me at chrishowie.com
Thu Jul 29 16:14:38 EDT 2010


On 07/29/2010 08:25 AM, Adam Tauno Williams wrote:
> Is there any intro-to-the-GObject-mindset docs for C#/.NET/Mono? Or
> any good examples for this-is-how-you-use-Gobject-and-why? I'd
> really appreciate some pointers.

If you are developing a new application, you shouldn't be creating
GObject classes, unless you need to subclass something to work with e.g.
Gtk#.

If your intent is to learn Gtk#, the basic idea is make sure you
.Destroy() things when you're done with them.  Destroying a container
will destroy any contained widgets, so for example you usually only call
Destroy on a dialog when you're done with it, and that will also free
all the widgets it contains.

Basically, just jump in and start coding.  The bindings are pretty good
when it comes to keeping the C ugliness away from you.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

If you correspond with me on a regular basis, please read this document:
http://www.chrishowie.com/email-preferences/

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5

------------------------------------------------------------------------
                    IMPORTANT INFORMATION/DISCLAIMER

This document should be read only by those persons to whom it is
addressed.  If you have received this message it was obviously addressed
to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses or to ANY
mailing lists to which I am subscribed, whether intentionally or
accidentally, you are agreeing that I am "the intended recipient," and
that I may do whatever I wish with the contents of any message received
from you, unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may
be included on your message.


More information about the Mono-list mailing list