virt-manager: disable subtitle

This commit is contained in:
Mikhail Klementev 2020-01-22 02:29:54 +00:00
parent 19b92aec1b
commit d07d51c7ec
No known key found for this signature in database
GPG Key ID: BE44DA8C062D87DC
5 changed files with 36 additions and 3 deletions

View File

@ -5,6 +5,7 @@ let
./patches/0001-Remove-menu-bar.patch ./patches/0001-Remove-menu-bar.patch
./patches/0002-Do-not-grab-keyboard-mouse.patch ./patches/0002-Do-not-grab-keyboard-mouse.patch
./patches/0003-Use-name-of-appvm-applications-as-a-title.patch ./patches/0003-Use-name-of-appvm-applications-as-a-title.patch
./patches/0004-Disable-subtitle.patch
]; ];
}); });
in with pkgs; in with pkgs;

View File

@ -1,7 +1,7 @@
From c26580442a4ac18f805b1795ec250d6cf5857a49 Mon Sep 17 00:00:00 2001 From c26580442a4ac18f805b1795ec250d6cf5857a49 Mon Sep 17 00:00:00 2001
From: Mikhail Klementev <blame@dumpstack.io> From: Mikhail Klementev <blame@dumpstack.io>
Date: Wed, 22 Jan 2020 00:25:16 +0000 Date: Wed, 22 Jan 2020 00:25:16 +0000
Subject: [PATCH 1/3] Remove menu bar Subject: [PATCH 1/4] Remove menu bar
--- ---
src/resources/ui/virt-viewer.ui | 2 +- src/resources/ui/virt-viewer.ui | 2 +-

View File

@ -1,7 +1,7 @@
From eac430d01f486e15b55d6fa992e77ded77bb4b1a Mon Sep 17 00:00:00 2001 From eac430d01f486e15b55d6fa992e77ded77bb4b1a Mon Sep 17 00:00:00 2001
From: Mikhail Klementev <blame@dumpstack.io> From: Mikhail Klementev <blame@dumpstack.io>
Date: Wed, 22 Jan 2020 00:41:34 +0000 Date: Wed, 22 Jan 2020 00:41:34 +0000
Subject: [PATCH 2/3] Do not grab keyboard/mouse Subject: [PATCH 2/4] Do not grab keyboard/mouse
--- ---
src/virt-viewer-display-spice.c | 4 ++-- src/virt-viewer-display-spice.c | 4 ++--

View File

@ -1,7 +1,7 @@
From c5b51c0a540af34499f2b2a49cb64599c06ba293 Mon Sep 17 00:00:00 2001 From c5b51c0a540af34499f2b2a49cb64599c06ba293 Mon Sep 17 00:00:00 2001
From: Mikhail Klementev <blame@dumpstack.io> From: Mikhail Klementev <blame@dumpstack.io>
Date: Wed, 22 Jan 2020 01:24:57 +0000 Date: Wed, 22 Jan 2020 01:24:57 +0000
Subject: [PATCH 3/3] Use name of appvm applications as a title Subject: [PATCH 3/4] Use name of appvm applications as a title
--- ---
src/virt-viewer-window.c | 3 +++ src/virt-viewer-window.c | 3 +++

View File

@ -0,0 +1,32 @@
From 38705319f8c43212da9d2464d50255827d6fcf01 Mon Sep 17 00:00:00 2001
From: Mikhail Klementev <blame@dumpstack.io>
Date: Wed, 22 Jan 2020 02:27:26 +0000
Subject: [PATCH 4/4] Disable subtitle
---
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 343b1af..3fabfcb 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -715,6 +715,7 @@ virt_viewer_app_set_window_subtitle(VirtViewerApp *app,
VirtViewerWindow *window,
int nth)
{
+#if 0
gchar *subtitle = NULL;
const gchar *title = virt_viewer_app_get_title(app);
@@ -740,6 +741,7 @@ virt_viewer_app_set_window_subtitle(VirtViewerApp *app,
g_object_set(window, "subtitle", subtitle, NULL);
g_free(subtitle);
+#endif
}
static void
--
2.23.1