Gtk2 question...

H

Hal Fulton

I've been working for several hours now on something that is probably a
mixture of genius and idiocy.

I have a very general GTK question. (My knowledge here has always been
limited -- just a few small apps, playing with widgets.)

"Every widget in GTK can be classified as a container or not a
container." Is this a true statement?

Thanks,
Hal
 
G

gabriele renzi

il Tue, 6 Apr 2004 15:26:03 +0900, Hal Fulton
I've been working for several hours now on something that is probably a
mixture of genius and idiocy.

I have a very general GTK question. (My knowledge here has always been
limited -- just a few small apps, playing with widgets.)

"Every widget in GTK can be classified as a container or not a
container." Is this a true statement?

is'nt this a tautology ?
a or not a == true
:)

Have you looked at the widget hierarchy shown from rbbr ?

widget:
\-calendar
\-container
\-DrawingArea
\-Entry
\-invisible
\-misc
\-process
\-range
\-ruler
\-separator
 
A

Aredridel

I've been working for several hours now on something that is probably a
mixture of genius and idiocy.

I have a very general GTK question. (My knowledge here has always been
limited -- just a few small apps, playing with widgets.)

"Every widget in GTK can be classified as a container or not a
container." Is this a true statement?

True.

Button --> Container
Label --> Not
Box --> Container (and supports multiple children)
Menu Item --> Container

I think some of the shortcuts in GTK make it somewhat less than obvious
at times, but when it comes down to it, it's a true statement.

Ari
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top