[virt-tools-list] [PATCH] Virt-manager: Add configurable grab keys

Michal Novotny minovotn at redhat.com
Tue Aug 10 12:15:24 UTC 2010


Hi,
this is the patch to add configurable grab keys to the virt-manager I 
did in my spare time for my own purposes originally (and also it's 
partially based on a request from a collegue in our office). It requires 
at least Gtk-VNC 0.4.0 since git commit 378721ec1 of Gtk-VNC introduced 
this feature. It's been tested and this patch is for the latest 
mercurial codebase of VMM and a bug 616355 ( [RFE] Add configurable grab 
key sequences for VMM) has been filed by myself some time ago for this 
request.

This is the second version of the patch that's including the exception 
handling for case the user is using some older version of Gtk-VNC 
(pre-0.4.0) that doesn't support the configurable grab keys. For the VMM 
interface itself, a new tab in preferences dialog, called "Keys", has 
been added showing the current grab keys combination and new GConf entry 
is being written when edited. Also, when you press the "Define" button 
on this tab a new dialog window is being opened and you have to press 
all the keys you want to use as grab keys and when you have all the keys 
you want to use in your combination pressed you have to click OK button 
to allow VMM to remember it.

Also, one slight issue is when you opened the console window already 
since the grab key combination is being read only on init() apparently 
so when changing the grab keys combination the restart of virt-manager 
is recommended.

Please write me your feedback.

Thanks,
Michal

-- 
Michal Novotny<minovotn at redhat.com>, RHCE
Virtualization Team (xen userspace), Red Hat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmm-add-configurable-grab-key-combination.patch
Type: text/x-patch
Size: 13343 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20100810/d2be8706/attachment.bin>


More information about the virt-tools-list mailing list