Re: [gtk-list] Re: Creating objects in gtk+ ??



> Bawer Dagdeviren <chamele0n@geocities.com> writes:
> 
> > Hello to all of you!
> > I have a question that might seem a bit too general, but I'll go ahead
> > and ask it anyways =)
> > How does one go about to create a new object in gtk? 

Owen Taylor wrote:

> I'm afraid there isn't a lot of documentation on making new widgets
> yet. (There isn't even much documentation on using widgets...) Do take
> a look at the stuff in the docs directory though - there's some useful
> information on the object system and signals already. The best way to
> start out is to take an existing widget and try modifying it a bit. If
> you run into problems, ask lots of questions here - other people will
> doubtless find the answers useful as well. (Including the people doing
> the answering...)

Thank you for your answer, Owen! I have acctually been looking around in
the gtk - directory, looking at class-definitions for the base widgets,
and I must say that I am slowly getting the grip on gtk-objects. But it
will take awhile until I understand it enough to make my own widgets. 
Honestly I cannot understand why the documentation is lacking, IMHO it
would be possible to have a semi-usefull doc. if the authors at least
could scribble down a note or two as they develop new features. Well,
ok, complaining mode off.
I have been playing around with menus a couple of days now, those things
are trickier than they seem =)... Well, finding them that tricky I
thought to myself: "why should the next gtk newbie be forced to plow
through numerous lines of source-code just to get a grip on menus, I
should write a tutorial!". Do you think that there would be a need for
one? Certainly all who have been using gtk for a while know how menus
work, but as I said: I found it pretty complicated at the beginning, so
I figured since I'm not THAT retarded someone else could need a tut. =)

> P.S. It isn't complete (and is outdated) but here's a list of the
> objects in gtk that I made at one point, if that was what you were
> asking for. No descriptions, but I've found it useful. You might be
> able to do better automatically with gtk_type_describe_tree.
<SNIP, SNIP>
Yeah, I tried that one not long ago actually, thanks anyway.

Bawer



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]