[virt-tools-list] [PATCH 06/22] window: do not reset sensitivity of menu-send in rebuild

Marc-André Lureau marcandre.lureau at redhat.com
Fri Aug 31 11:14:15 UTC 2018


Hi

On Fri, Aug 31, 2018 at 8:32 AM, Victor Toso <victortoso at redhat.com> wrote:
> Hi,
>
> On Tue, Jul 31, 2018 at 03:41:09PM +0200, marcandre.lureau at redhat.com wrote:
>> From: Marc-André Lureau <marcandre.lureau at redhat.com>
>>
>> A mere app::enable-accel notification shouldn't modify the
>> sensitivity, which is handled for all menu items elsewhere, leave the
>> current state untouched.
>>
>> Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
>
> Not sure if this could introduce regression around
> https://bugzilla.redhat.com/show_bug.cgi?id=1152574
>
> Before, the code was always setting sensitive to FALSE on
> app:enable-accel. With Jonathon's commit 65560fa4664e, it was
> changed to take in consideration if display existed.
>
> Not sure how to test.
>

I lack arguments on why this patch was needed, let's drop it for now.
I'll add it back when I remember or can better explain the reason.

thanks

>> ---
>>  src/virt-viewer-window.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
>> index 301a3bf..b9b8ce9 100644
>> --- a/src/virt-viewer-window.c
>> +++ b/src/virt-viewer-window.c
>> @@ -219,7 +219,6 @@ rebuild_combo_menu(GObject    *gobject G_GNUC_UNUSED,
>>      menu = GTK_WIDGET(gtk_builder_get_object(self->priv->builder, "menu-send"));
>>      gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu),
>>                                GTK_WIDGET(virt_viewer_window_get_keycombo_menu(self)));
>> -    gtk_widget_set_sensitive(menu, (self->priv->display != NULL));
>>  }
>>
>>  static void
>> --
>> 2.18.0.321.gffc6fa0e39




More information about the virt-tools-list mailing list