Re: collapse/expand TreeView

2005-06-22 Thread The Saltydog
On 6/20/05, The Saltydog <[EMAIL PROTECTED]> wrote: > On 6/20/05, muppet <[EMAIL PROTECTED]> wrote: > > > > 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" h

Re: collapse/expand TreeView

2005-06-20 Thread The Saltydog
On 6/20/05, muppet <[EMAIL PROTECTED]> wrote: > > 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 im

Re: collapse/expand TreeView

2005-06-20 Thread muppet
The Saltydog said: > On 6/20/05, Torsten Schoenfeld <[EMAIL PROTECTED]> 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 origina

Re: collapse/expand TreeView

2005-06-20 Thread muppet
The Saltydog said: > On 6/20/05, muppet <[EMAIL PROTECTED]> wrote: >> What theme are you using? Some themes are notorious for making assumptions >> about what type of widget is calling what rendering function... > > Ubuntu Human theme. But it should not depend upon the theme... > What is that Gtk

Re: collapse/expand TreeView

2005-06-20 Thread The Saltydog
On 6/20/05, Torsten Schoenfeld <[EMAIL PROTECTED]> 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 m

Re: collapse/expand TreeView

2005-06-20 Thread Torsten Schoenfeld
On Mon, 2005-06-20 at 10:26 -0400, muppet wrote: > What's interesting is that your error message (from the earlier post) mentions > a GtkRange, a type which doesn't appear anywhere in the example you cited. > Are you sure the bug isn't in your adaptation of the example code? The $widget is a tre

Re: collapse/expand TreeView

2005-06-20 Thread The Saltydog
On 6/20/05, muppet <[EMAIL PROTECTED]> wrote: > What theme are you using? Some themes are notorious for making assumptions > about what type of widget is calling what rendering function... Ubuntu Human theme. But it should not depend upon the theme... What is that GtkRange the application is cla

Re: collapse/expand TreeView

2005-06-20 Thread muppet
The Saltydog said: > GLib-GObject-WARNING **: invalid cast from `GtkTreeView' to `GtkRange' > at ./cellrender_progress.pl line 87. > > I didn't make any adaptation. Line 87 of the code is: > > $style->paint_box ($window, > 'normal', 'in', > undef, $widget

Re: collapse/expand TreeView

2005-06-20 Thread The Saltydog
On 6/20/05, muppet <[EMAIL PROTECTED]> wrote: > What's interesting is that your error message (from the earlier post) mentions > a GtkRange, a type which doesn't appear anywhere in the example you cited. > Are you sure the bug isn't in your adaptation of the example code? I have just tested again.

Re: collapse/expand TreeView

2005-06-20 Thread muppet
The Saltydog said: > On 6/19/05, muppet <[EMAIL PROTECTED]> wrote: >> The example works for me without any warnings. What versions of gtk+ >> and Gtk2 do you have? > ... > ~ $ perl -MGtk2 -e 'print "$Gtk2::VERSION\n"; print join(".", > Gtk2->get_version_info)."\n";' > 1.061 > 2.6.4 Should be alr

Re: collapse/expand TreeView

2005-06-20 Thread The Saltydog
On 6/19/05, muppet <[EMAIL PROTECTED]> wrote: > The example works for me without any warnings. What versions of gtk+ > and Gtk2 do you have? ~ $ perl -MGtk2 -e 'print "$Gtk2::VERSION\n"' 1.061 ~ $ perl -MGtk2 -e 'print "$Gtk2::VERSION\n"; print join(".", Gtk2->get_version_info)."\n";' 1.061 2

Re: collapse/expand TreeView

2005-06-19 Thread muppet
On Jun 19, 2005, at 2:57 PM, The Saltydog wrote: I was studying the cellrenderer_progress example in cvs: http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/ examples/cellrenderer_progress.pl?rev=1.1&view=log but the code is buggy. I am getting a long list of: GLib-GObject-WA

Re: collapse/expand TreeView

2005-06-19 Thread The Saltydog
On 6/19/05, ofey aikon <[EMAIL PROTECTED]> wrote: > > Won't Gtk2::Ex::Simple::Tree or Gtk2::TreeView do the job ? Yes, I have started with TreeView. I was studying the cellrenderer_progress example in cvs: http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/examples/cellrenderer_pro

Re: collapse/expand TreeView

2005-06-19 Thread ofey aikon
On 6/18/05, The Saltydog <[EMAIL PROTECTED]> wrote: > I am planning an application in which I need to display data in a List > window. Some element should be expandable/collapsable and every > element in the list should represent a string and a graphical colored > bar... Won't Gtk2::Ex::Simple::Tr

collapse/expand TreeView

2005-06-18 Thread The Saltydog
I am planning an application in which I need to display data in a List window. Some element should be expandable/collapsable and every element in the list should represent a string and a graphical colored bar... Any suggestion before starting on the wrong way? I am afraid that SimpleList is not th