I've tried the above fix, but things are still not good. I've uploaded a simple demo to: http://tesla.duckdns.org/downloads/menu.pl ( pasting stuff in gmail always mangles things ).
$event is still morphing from a Gtk3::Gdk::EventButton to a Gtk3::Gdk::Event, which is giving: *** unhandled exception in callback: *** Can't locate object method "time" via package "Gtk3::Gdk::Event" at menu.pl line 66. *** ignoring at /usr/local/lib64/perl5/5.16.3/Gtk3.pm line 318. Frankly, I can work around this. What's annoying me most at the moment is that the menu doesn't pop up. Can anyone see why I can't get a menu? Dan On Tue, Aug 26, 2014 at 7:07 AM, Torsten Schönfeld < torsten.schoenf...@gmx.de> wrote: > On 25.08.2014 20:24, Yuri Myasoedov wrote: > >> But when you use Gtk3: >> >> (Gtk2::Widget, Gtk3::Gdk::EventButton) - first click >> (Gtk2::Widget, Gtk3::Gdk::EventButton) - second click >> (Gtk2::Widget, Gtk3::Gdk::Event) - 2button-press !!! >> >> I have no idea, why Gtk3::Gdk::Event is used instead of >> Gtk3::Gdk::EventButton. May be a bug? >> Anyway you can bless $event for Gtk3::Gdk::EventButton. >> > > It looks like the mapping in <https://git.gnome.org/browse/ > perl-Gtk3/tree/lib/Gtk3.pm#n150> is incorrect then. "button-2press" and > "button-3press" should probably be "2button-press" and "3button-press". > Can you try that change and see if it fixes things? > > I have no idea how the these strange incorrect names got in there. I > think I auto-generated the list somehow, but don't recall. > > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-perl-list >
_______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list