'clicked' and 'middle-clicked' signals prevent normal activation behaviour in gtk.Menu.popup()
Bug #477158 reported by
Denham2010
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Awn |
Invalid
|
Medium
|
Unassigned |
Bug Description
When using AwnIcon's 'clicked' and 'middle-clicked' events to open a gtk.Menu.popup(), items in the popup menu can only be activated by the same button that launched the gtk.Menu.popup().
Replacing 'clicked' and 'middle-clicked' with 'button-
Distribution : Xubuntu 9.10
Awn Version : 0.3.9-rewrite-
Awn Installation : via ppa repository
Window Manager : Compiz / Emerald
Video Card : nvidia GeForce 8500 GT
Video Driver : nvidia binary 185.18.36
tags: | added: libawn |
Changed in awn: | |
importance: | Undecided → Medium |
milestone: | none → 0.4.0 |
To post a comment you must log in.
AwnIcon's "clicked" and "middle-clicked" signals are emitted on mouse button release, therefore as Gtk+ docs say:
The button parameter should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, button should be 0.
You should set the button parameter to 0 when displaying a menu in the signal handlers.