Re: GTK Coding Conventions
- From: Rick Sutphin <sutphinc bellsouth net>
- To: gtk-app-devel-list gnome org
- Subject: Re: GTK Coding Conventions
- Date: Wed, 13 Apr 2005 07:07:25 -0400
Hi Stefan,
Thanks for the response. I am currently trying to work my way through
the GObject turorial; it is somewhat beyond my current coding ability.
Is there other ways of coding that would let me write more modular
programs that are not as complex as GObject?
Thanks,
Rick
Stefan Kost wrote:
Hi Rick,
look at the GObject tutorial:
http://www.le-hacker.org/papers/gobject/
If you design your application in a oo-fashion, all global variables
you have is an application object handle. That in turn knows the rest.
Its like a tree, where one tree-node knows stuff about what it is
responsible for and who is its parent.
Generally OO design needsa some thinking, like what parts, modules my
app consist of and so on. It definitely pays back, when the app get
larger.
A keyword to look out for is: 'Design Patterns'.
I myself look in apps like e.g gedit.
Ciao
Stefan
Hello,
I am a noob to GTK+ programming, and GUI programming in general. I have
worked through the example, and done a few simple programs of my own.
I would like to improve my programs. Particularly I would like to do
away with , or at least reduce, the mumber of global variables. I would
also like to make my code more modular and object oriented. Can anyone
recommend any good examples, or simple programs, that I could study to
learn good GTK+ coding practices?
Rick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]