On Mon, 2003-09-01 at 18:22, Colin Fox wrote:
> On Mon, 2003-09-01 at 00:48, Malcolm Tredinnick wrote:
> > Set the 'name' and 'version' properties on the GnomeAbout widget before
> > the widget is shown. I can see the logic of not setting the version
> > number in Glade (it changes more often than you want to change your
> > .glade file), but the lack of name setting has always seemed a bit odd,
> > I agree.
> 
> Cool. So now I have:
> 
> aboutbox.set_property('name','Demo Program')
> aboutbox.set_property('version','0.1')
> 
> and it works. I don't remember seeing any docs on this anywhere.
> Would it be worth putting this into the FAQ?
> 
> > By the way, the name you want shown in the about box is not necessarily
> > the name string you pass in to the gnome.init() method. It really wants
> > to be the same as whatever the 'human-readable-name' property of
> > GnomeProgram to (if you set that property), but that is getting pretty
> > subtle (not a lot of programs do that).
> 
> Ok - is there some documentation somewhere that states all of the
> properties of the various Gnome components and their purposes?

Not really. The libgnome (C language) API documentation explains some of
this, but bits of it need updating, since I didn't understand some bits
when I wrote it (and other bits were written by other people going back
as far as GNOME 1.0 in places).

However, I just looked and it does not contain a list of properties that
can set on things like the GnomeProgram object. That needs looking into
at some point. The state of GNOME developer documentation always makes
me feel sad, but it's such an enormous job to fix everything and
baby-step fixes are the only way to work.

I cannot really recommend the way I learnt this as the best method: I
wrote a lot of the libgnome API documentation, so at one point a couple
of years ago (just pre-GNOME 2.0) I had read pretty much every line of
code in libgnome and libgnomeui. It was not particularly fun. :-(

Cheers,
Malcolm

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to