Re: label with context menu (populate-popup)

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.


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