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

Marc-André Lureau mlureau at redhat.com
Tue Oct 15 17:09:39 UTC 2013


looks good, ack

----- Original Message -----
> ---
>  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
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
> 




More information about the virt-tools-list mailing list