in virtual-manager, the global-menu or local integrated menus stopped working in the vm-display

Bug #1291370 reported by Dimitri John Ledkov
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unity-gtk-module (Ubuntu)
William Hua
virt-manager (Ubuntu)
Fix Released

Bug Description

1) open virtual manager
2) create / open a virtual machine
3) start it
4) try to open menu "Send keys" -> Ctrl Alt F2

the menu titles "File, Virtual Machine, ..." are visible but it's not possible to expand them, see any options under them, or click on them.

I believe virtual manager is using python-gtk2.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: unity-gtk2-module 0.0.0+14.04.20140311-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-17.37-generic 3.13.6
Uname: Linux 3.13.0-17-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 12 13:24:29 2014
InstallationDate: Installed on 2012-01-12 (789 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130318)
SourcePackage: unity-gtk-module
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

I can confirm this is a regression in unity-gtk-module. Downgrading to 0.0.0+14.04.20140213.2-0ubuntu1 fixes the issue, and upgrading back to 0.0.0+14.04.20140311-0ubuntu1 breaks it again.

Changed in virt-manager (Ubuntu):
status: New → Invalid
Changed in unity-gtk-module (Ubuntu):
status: New → Confirmed
Changed in unity-gtk-module (Ubuntu):
assignee: nobody → William Hua (attente)
importance: Undecided → High
Revision history for this message
William Hua (attente) wrote :

Marc, thanks for pinpointing exactly where the regression occurred.

virt-manager disables gtk-enable-mnemonics when a running VM window is focused and re-enables it when the focus is lost. So clicking the global menu steals the focus away, changing the gtk-enable-mnemonics setting, which updates the menus (adding back their mnemonics). Since menu updates are done by removing and re-adding the same menu, the old menu is opened but immediately replaced by a new unopened menu...

I think we need to patch virt-manager to fix this.

Revision history for this message
William Hua (attente) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "virt-manager_0.9.5-1ubuntu3.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for figuring this out, William!

Patch looks good, uploaded.

Changed in virt-manager (Ubuntu):
status: Invalid → Confirmed
Changed in unity-gtk-module (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virt-manager - 0.9.5-1ubuntu3

virt-manager (0.9.5-1ubuntu3) trusty; urgency=medium

  * debian/patches/leave-mnemonics-alone-on-focus-change.patch:
    - Leave gtk-enable-mnemonics setting alone under Unity when windows
      change focus. (LP: #1291370)
 -- William Hua <email address hidden> Sun, 16 Mar 2014 19:55:45 +1300

Changed in virt-manager (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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