← Back to team overview

dx-packages team mailing list archive

[Bug 1348147] [NEW] Submenu items not triggering activate events under specific conditions

 

Public bug reported:

Problem appears in indicator menus in Ubuntu 14.04, and it is NOT present in Ubuntu 12.04.
The bug can be seen even in official indicators like the network manager.

We have: "Indicator menu / Submenu / Submenu item". (e.g. Network
manager / VPN Connections / Configure VPN...).

The submenu item does not trigger "activate" and "button-press-events",
if the user changes between right and left while clicking on the way to
the submenu item and if they also don't explicitly click the submenu.

For example these combinations WORK: 
* Click indicator with any button/ Explicitly click with any button to open submenu / Click submenu item with any button
* Left-click indicator / Just hover to open submenu (do not click) / Left-click submenu item
* Right-click indicator/Just hover to open submenu (do not click) / Right-click submenu item

Any other combination DOESN'T work, for example:

* Left-click indicator / Just hover to open submenu / Right-click submenu item
* Right-click indicator / Just hover to open submenu / Left-click submenu item

These GNOME bugs might be relevant:
https://bugzilla.gnome.org/show_bug.cgi?id=533492
https://bugzilla.gnome.org/show_bug.cgi?id=695488

But this might be not be a bug in GTK, but in the way the indicator menu
is presented. I had a very similar problem with right-click popup menus
in my own application Variety and I managed to fix them in my own code.
Here is the bugreport, with solution described:
https://bugs.launchpad.net/variety/+bug/1044909

Citing the solution from this bugreport: "This was solved by calling
menu.popup(None, None, _compute_position, None, 0, event.time) instead
of menu.popup(None, None, _compute_position, None, event.button,
event.time) - for some reason if event.button was passed as the menu
trigger, then the same button that triggered the menu (right mouse
button in our case) was also the only button that successfully triggered
the submenu items"

** Affects: indicator-appmenu (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: click submenu

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-appmenu in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1348147

Title:
  Submenu items not triggering activate events under specific conditions

Status in “indicator-appmenu” package in Ubuntu:
  New

Bug description:
  Problem appears in indicator menus in Ubuntu 14.04, and it is NOT present in Ubuntu 12.04.
  The bug can be seen even in official indicators like the network manager.

  We have: "Indicator menu / Submenu / Submenu item". (e.g. Network
  manager / VPN Connections / Configure VPN...).

  The submenu item does not trigger "activate" and "button-press-
  events", if the user changes between right and left while clicking on
  the way to the submenu item and if they also don't explicitly click
  the submenu.

  For example these combinations WORK: 
  * Click indicator with any button/ Explicitly click with any button to open submenu / Click submenu item with any button
  * Left-click indicator / Just hover to open submenu (do not click) / Left-click submenu item
  * Right-click indicator/Just hover to open submenu (do not click) / Right-click submenu item

  Any other combination DOESN'T work, for example:

  * Left-click indicator / Just hover to open submenu / Right-click submenu item
  * Right-click indicator / Just hover to open submenu / Left-click submenu item

  These GNOME bugs might be relevant:
  https://bugzilla.gnome.org/show_bug.cgi?id=533492
  https://bugzilla.gnome.org/show_bug.cgi?id=695488

  But this might be not be a bug in GTK, but in the way the indicator
  menu is presented. I had a very similar problem with right-click popup
  menus in my own application Variety and I managed to fix them in my
  own code. Here is the bugreport, with solution described:
  https://bugs.launchpad.net/variety/+bug/1044909

  Citing the solution from this bugreport: "This was solved by calling
  menu.popup(None, None, _compute_position, None, 0, event.time) instead
  of menu.popup(None, None, _compute_position, None, event.button,
  event.time) - for some reason if event.button was passed as the menu
  trigger, then the same button that triggered the menu (right mouse
  button in our case) was also the only button that successfully
  triggered the submenu items"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/1348147/+subscriptions


Follow ups

References