Gtk2 question

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

is’nt this a tautology ?
a or not a == true
:slight_smile:

Have you looked at the widget hierarchy shown from rbbr ?

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

···

il Tue, 6 Apr 2004 15:26:03 +0900, Hal Fulton hal9000@hypermetrics.com ha scritto::

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?

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