Re: Re: Strange interaction between Gtk2::Dialog and signal from Goo::Canvas
On Jul 14, 2009 7:34pm, Mario Kemper wrote: It looks like the button-press-event causes a pointer-grab. This leads That's a nice piece of detective work. Thanks for spotting it. Is it not a bug that Goo::Canvas::Text grabs the pointer? In both your and my examples, I can only get the first Goo::Canvas::Text created to emit a pressed signal. If I put the Goo::Canvas::Text in a Goo::Canvas::Group, it works as expected. Regards Jeff ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Re: Strange interaction between Gtk2::Dialog and signal from Goo::Canvas
Am Montag, den 20.07.2009, 11:25 + schrieb jeffrey.ratcli...@gmail.com: > > Is it not a bug that Goo::Canvas::Text grabs the pointer? > Might be, yes. I've added a 'button-release-event'-handler in my code and did the ungrab while doing some other stuff: $canvas->pointer_ungrab( $item, $ev->time ); This was the reason why I did not notice any problems here... > In both your and my examples, I can only get the first > Goo::Canvas::Text created to emit a pressed signal. Really? Did you add the 'pointer_ungrab' call to your code? snip- $dialog->destroy; #ungrab the pointer $canvas->pointer_ungrab( $widget, $ev->time ); snip- ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Re: Re: Strange interaction between Gtk2::Dialog and signal from Goo::Canvas
On Jul 20, 2009 2:15pm, Mario Kemper wrote: > In both your and my examples, I can only get the first > Goo::Canvas::Text created to emit a pressed signal. Really? Did you add the 'pointer_ungrab' call to your code? Yup. With the ungrab call, your code only emits a signal for the text "0" - clicks on the other text is ignored. If I put the text in groups, then it works as expected. Regards Jeff ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Re: Re: Strange interaction between Gtk2::Dialog and signal from Goo::Canvas
Am Montag, den 20.07.2009, 12:20 + schrieb jeffrey.ratcli...@gmail.com: > > Yup. With the ungrab call, your code only emits a signal for the text > "0" - clicks on the other text is ignored. If I put the text in > groups, then it works as expected. > I was using 0.05 of the bindings, but I after upgrading to 0.06 it is still working for me. I am sorry, but currently I don't know where the differences between our system / configurations might be here. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Re: Re: Re: Strange interaction between Gtk2::Dialog and signal from Goo::Canvas
On Jul 20, 2009 2:40pm, Mario Kemper wrote: > Yup. With the ungrab call, your code only emits a signal for the text > "0" - clicks on the other text is ignored. If I put the text in > groups, then it works as expected. No apologies. Yours also works as expected. If I remove height => $y2-$y1 from the Goo::Canvas::Text->new() call in mine, mine does too, or as I said before, if I put it in a group. Strange. I'll try and find some time to rewrite the examples in C ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list