label with context menu (populate-popup)

Is there an easy way to get a context menu on a label?
According to the documentation, it should support a
'populate-popup' signal, so it looks like this should be
painless. If I try the following (which works fine on other

     sub {
             warn "populate";
              my ($widget, $mnu ) = @_;
              my $item=Gtk2::MenuItem->new('Show Latin');
                         sub {warn "do something ...";});

I get no warning, only the signal is never triggered.
The documentation for GtkLabel doesn't say when this
signal occurs, I just assumed it would be triggered
whith the right mouse button...

                   Peter Daum

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