Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37738333
en ru br
ALT Linux repositórios
S:11.0-alt3
5.0: 0.0.3-alt1
4.1: 0.0.3-alt1

Group :: Sistema/Configurações/Rede
RPM: virt-viewer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0003-src-update-action-sensitivity-when-creating-window.patch
Download


From aa6b4b40b8dac1ba38e06237db04bfd4fa5f4850 Mon Sep 17 00:00:00 2001
From: Daniel P. Berrangé <berrange@redhat.com>
Date: Thu, 20 May 2021 12:50:13 +0100
Subject: [PATCH] src: update action sensitivity when creating window
If we don't explicitly set action sensitivity after associating a
display with the window, the actions will end up with the wrong
state. This exhibits itself as send key actions being marked
disabled despite being connected,
Related: https://gitlab.com/virt-viewer/virt-viewer/-/issues/37
Closes: https://gitlab.com/virt-viewer/virt-viewer/-/issues/41
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 src/virt-viewer-app.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 2687745..c01fe76 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1231,6 +1231,8 @@ ensure_window_for_display(VirtViewerApp *self, VirtViewerDisplay *display)
             g_object_set_data(G_OBJECT(display), "virt-viewer-window", win);
             g_object_weak_ref(G_OBJECT(win), window_weak_notify, display);
         }
+
+        virt_viewer_window_set_actions_sensitive(win, priv->connected);
     }
     virt_viewer_app_set_window_subtitle(self, win, nth);
 
--
libgit2 1.1.0
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009