[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH] Virt-manager: Add description label to the grab keys dialog



Hi,
some time ago I wrote a patch to make grab keys combination configurable however I've been told that it's hard to understand how it can be used so I created a patch to add a description label to the "Configure grab keys" dialog explaining how you can configure the grab keys combination to help people understand how to use it.

Michal

Signed-off-by: Michal Novotny <minovotn redhat com>

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

diff -r 60f80fc312d3 src/virtManager/preferences.py
--- a/src/virtManager/preferences.py	Wed Dec 01 17:48:07 2010 -0500
+++ b/src/virtManager/preferences.py	Thu Dec 02 13:06:11 2010 +0100
@@ -214,13 +214,18 @@
         label.set_text( self.grabkeys_get_string(defs['keysyms']) )
 
     def change_grab_keys(self, src):
-        dialog = gtk.Dialog ( _("Configure key combination"),
+        dialog = gtk.Dialog ( _("Configure grab key combination"),
                               None,
                               gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
                               (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT,
                                gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
         label = gtk.Label( _("Please press desired grab key combination") )
-        dialog.set_size_request(300, 100)
+        dialog.set_size_request(325, 160)
+        (dialog.get_content_area()).add(
+            gtk.Label( _("You can now define grab keys by pressing them.\n"
+                         "To confirm your selection please click OK button\n"
+                         "while you have desired keys pressed.") )
+        )
         (dialog.get_content_area()).add(label)
         defs = { 'label': label, 'keysyms': [] }
         dialog.connect("key-press-event", self.grabkeys_dlg_press, defs)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]