[virt-tools-list] [PATCH] Make 'Send' menu items with defined accels work in fullscreen

Jonathon Jongsma jjongsma at redhat.com
Tue Oct 15 17:03:21 UTC 2013


---
 src/virt-viewer-window.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 9d7b0cf..dcd0cba 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -618,8 +618,11 @@ virt_viewer_menu_add_combo(VirtViewerWindow *self, GtkMenu *menu,
         item = gtk_separator_menu_item_new();
     } else {
         item = gtk_menu_item_new_with_mnemonic(label);
-        if (accel_path)
+        if (accel_path) {
             gtk_menu_item_set_accel_path(GTK_MENU_ITEM(item), accel_path);
+            /* make accel work in fullscreen */
+            g_signal_connect(item, "can-activate-accel", G_CALLBACK(can_activate_cb), self);
+        }
         guint *ckeys = g_memdup(keys, (get_nkeys(keys) + 1) * sizeof(guint));
         g_object_set_data_full(G_OBJECT(item), "vv-keys", ckeys, g_free);
         g_signal_connect(item, "activate", G_CALLBACK(virt_viewer_window_menu_send), self);
-- 
1.8.3.1




More information about the virt-tools-list mailing list