TreeModel HAS_CHILD return

2008-04-23 Thread Kevin Ryde
When implementing HAS_CHILD for a TreeModel, I tried to return a string or undef as my boolean but got an error, Argument "\x{5e}\x{41}..." isn't numeric in subroutine entry at t-symlist-model.pl line 18. gtk2perl_tree_model_iter_has_child looks like it uses POPi. Could it test the return w

bad free after iter->to_arrayref

2008-04-23 Thread Kevin Ryde
The program below gets an error for me, Attempt to free unreferenced scalar: SV 0x83c10a8, Perl interpreter: 0x8150008. It seems to have something to do with returning a reference as data in an iter. Are you allowed to do that? I saw "Will not persist" in the Gtk2::TreeModel docs, but coul

Re: bad free after iter->to_arrayref

2008-04-23 Thread Kevin Ryde
Oh, I get it now, you can return a reference but it's the model's job to keep it alive for as long as the iter is good. Hmm. (Actually I don't want to return a reference, I was trying ways to keep two integers in my iter ...) ___ gtk-perl-list mailing l

Re: bad free after iter->to_arrayref

2008-04-23 Thread muppet
On Apr 23, 2008, at 9:51 PM, Kevin Ryde wrote: > Oh, I get it now, you can return a reference but it's the model's > job to > keep it alive for as long as the iter is good. Hmm. Yeah, it sucks. Alternatives involve putting quite a bit of magic into the bindings at this point, which would p

TextView, TextBuffer and copy-paste, undo/redo?

2008-04-23 Thread Gabor Szabo
I am trying to add windows with editing capabilities to my app. I started with a TextView and a TextBuffer in it but as I can see out of the box it only supports simple editing. Do I have to implement copy-paste, undo/redo myself or is there a widget that I can use and will already provide all this

Re: TextView, TextBuffer and copy-paste, undo/redo?

2008-04-23 Thread nadim khemir
I have written Text::Editor::Vip which is an editing module and I did write some ui for it with gtk. unfortunately it is not complete. If you want it or (even better) want to help finishing the UI send me a mail. Nadim. On Thursday 24 April 2008 07.01.00 Gabor Szabo wrote: > I am trying to add

deprecated functions - Gtk2::AboutDialog

2008-04-23 Thread Gabor Szabo
I have an Gtk2::AboutDialog in the application (using glade). I am trying to set its name using $about->set_name() which works on Ubuntu. When I try the same on Camelbox I get a warning about set_name being deprecated and that I should use set_program_name() instead. So I guess it is just that the

Re: TextView, TextBuffer and copy-paste, undo/redo?

2008-04-23 Thread nadim khemir
On Thursday 24 April 2008 08.16.35 Gabor Szabo wrote: > so here is a mail. > > Gabor Text::Editor::Vip is on CPAN. it's stable and well tested. The only thing that it is missing is override mode (oops!). gVip is not anywhere close to a module, it's a hack just to see if it's worth it. a tarball