Re: collapse/expand TreeView




The Saltydog said:
On 6/20/05, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
On Mon, 2005-06-20 at 10:26 -0400, muppet wrote:
don't know what the correct behavior is, but passing undef instead of
$widget in the first paint_box call seems to work.


yes it does work (also the original version worked, apart the
message). Now the warning has changed:

No widget to draw?!
No widget to draw?!
No widget to draw?!
No widget to draw?!
No widget to draw?!
No widget to draw?!

It's a bug in your theme, then.  That text string appears nowhere in the gtk+
source, nor in the gtk2-perl source.

The widget parameter to paint_box() is used by the theme implementation to get
hints, either from style properties or from the type of the object itself. 
The "what sort of box" hint is the string "trough", and my guess is that your
theme's implementation of paint_box() thinks that a "trough" will only be
drawn for a GtkRange.



-- 
muppet <scott at asofyet dot org>




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