Re: label with context menu (populate-popup)
- From: squentin <squentin free fr>
- To: gator_ml yahoo de
- Cc: gtk-perl-list gnome org
- Subject: Re: label with context menu (populate-popup)
- Date: Thu, 29 Mar 2007 14:57:18 +0200
On Wed, 2007-03-28 at 20:45 +0200, Peter Daum wrote:
Is there an easy way to get a context menu on a label?
If you don't want to make the label selectable as suggested by muppet,
the other solution is to put the label in an eventbox, and connect a
callback to the button_press_event or button_release_event signal of the
eventbox. In the callback, you can check which button was pressed,
create your menu and use its popup method to display it.
Of course doing this without any indication that the label is clickable
is not very intuitive for the user.
Quentin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]