Awn

'clicked' and 'middle-clicked' signals prevent normal activation behaviour in gtk.Menu.popup()

Bug #477158 reported by Denham2010
4
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-press-event' restores normal gtk behaviour, ie. gtk.Menu.popup() item activation can occur with any button.

Distribution : Xubuntu 9.10
Awn Version : 0.3.9-rewrite-bzr1674-karmic1-1
Awn Installation : via ppa repository
Window Manager : Compiz / Emerald
Video Card : nvidia GeForce 8500 GT
Video Driver : nvidia binary 185.18.36

Tags: libawn
Mark Lee (malept)
tags: added: libawn
Changed in awn:
importance: Undecided → Medium
milestone: none → 0.4.0
Revision history for this message
Michal Hruby (mhr3) wrote :

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.

Changed in awn:
status: New → Invalid
Revision history for this message
Michal Hruby (mhr3) wrote :

For clarity this was from documentation for gtk_menu_popup().

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.