On Mon, Jan 26, 2004 at 01:16:18PM -0500, Paul Davis wrote:
From: torbenh(a)gmx.de
[ gnomecanvas ]
the only problem would be determining widget size
when you add a widget
to the canvas. gtk behaves sort of strange there.
[ Posted this to gtk-app-devel-list as well. Reply to where you wish
as I will summary. ]
Should the module widgets be put to a fixed size container before
they are inserted to the canvas? Or what is the problem?
widgets on the canvas are second class citizens. don't go there.
all of GTK is slowly migrating toward a client-side compositing model
based on Cairo. do not expect the GTK crew to be supportive of any
attempts to fix up the existing canvas/widget dichotomy.
where do i fond info on that ?
Is the viewport
a wrong widget for the task? Is there any other constant
size container in GTK?
GtkLayout is the correct widget to use. But like all GTK containers,
it is not intended to handle overlapping widgets, although it can do
so under some circumstances.
the widget added last is displayed on top.
could work ok if one sorted the child list by hand.
note that there are also issues when adding widgets to a GtkLayout which
is not mapped.
but after half a year of sporadic fiddling i fixed it.
--
torben Hohn
http://galan.sourceforge.net -- The graphical Audio language