Commit Graph

1654 Commits

Author SHA1 Message Date
Jakub Janků
a40c8f4508 windows: fix nonuniform behavior of zoom hotkeys
If a vv file is used or the hotkeys are customized using the
--hotkeys cmd option, all hotkeys that are not explicitly
requested get disabled, this includes the zomm hotkeys.

As a consequence, the labels for zoom actions in the menu
disappear. However, the user can still perform these actions
using the keys on the numpad which are handled separately.

To fix it, check that the normal zoom hotkeys are enabled
before enabling the keypad ones.

Related to: https://bugzilla.redhat.com/show_bug.cgi?id=1791261

Signed-off-by: Jakub Janků <jjanku@redhat.com>
2020-12-03 14:50:26 +01:00
Shawn M. Chapla
d5e96a30cb Don't re-enable kiosk mode in virt_viewer_window_show
There is nothing that would disable any aspect of kiosk mode that would
ever need to be enabled with a call to virt_viewer_window_show. To the
contrary, "re-enabling" kiosk mode in virt_viwer_window_show can, in
certain cases, result in accels becoming disable despite the keyboard
being released.

Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
2020-11-26 19:48:21 +00:00
Shawn M. Chapla
cfcac9fb9d Add all accel groups when enabling window mods
Previously, enabling window modifiers would only add accel groups that
had presumably been disabled to the window in question. This was fragile
and caused bad behavior in cases when the criteria for whether or not an
accel group should be enabled changed between the time the groups were
disabled and re-enabled, potentially leading to certain groups never
being re-added. There is no harm in adding accel groups that are already
added to a window, so this change simply eliminates the unnecessary
check.

Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
2020-11-26 19:48:20 +00:00
Shawn M. Chapla
6af952adb9 Disable all accels when not grabbed in kiosk mode
Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
2020-11-26 19:48:20 +00:00
Shawn M. Chapla
f08cb607a4 Add "USB device reset" accel
Adds a "USB device reset" default keyboard shortcut (ctrl+shift+r), as
well as the option to override this shortcut with the --hotkeys opt.
Updates documentation accordingly.

Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
2020-11-26 18:22:23 +00:00
Shawn M. Chapla
1608dabd9f Add "USB device reset" option to File menu
Adds a "USB device reset" option to the File menu. When selected, "USB
device reset" will disconnect and reconnect all currently connected USB
devices.

Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
2020-11-26 18:22:23 +00:00
Frediano Ziglio
1573a790da Fix warning by Coverity
Error: DEADCODE (CWE-561): [#def1]
virt-viewer-9.0/src/virt-viewer-display-vte.c:164: assignment: Assigning: "scroll" = "NULL".
virt-viewer-9.0/src/virt-viewer-display-vte.c:188: null: At condition "scroll", the value of "scroll" must be "NULL".
virt-viewer-9.0/src/virt-viewer-display-vte.c:188: dead_error_condition: The condition "scroll" cannot be true.
virt-viewer-9.0/src/virt-viewer-display-vte.c:189: dead_error_begin: Execution cannot reach this statement: "gtk_container_add((GtkConta...".
virt-viewer-9.0/src/virt-viewer-display-vte.c:189: effectively_constant: Local variable "scroll" is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make "scroll" not remain constant.

Reported in https://gitlab.com/virt-viewer/virt-viewer/-/issues/7.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-11-26 10:26:02 +00:00
Daniel P. Berrangé
db827dedc9 Add a --shared / -s flag for shared session access
By default when connecting with VNC, an existing viewer will be kicked
off. This adds a --shared / -s flag which tells the server we are
willing the share the session with other clients.

This is wired up for VNC only.

https://bugzilla.redhat.com/show_bug.cgi?id=1060425

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-11-26 09:55:58 +00:00
Jean-Baptiste Holcroft
9ccc0bf614 Translated using Weblate (French)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/fr/

Signed-off-by: Jean-Baptiste Holcroft <jean-baptiste@holcroft.fr>
2020-11-26 10:13:12 +01:00
Yuri Chornoivan
c967876952 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-11-26 10:13:12 +01:00
Oğuz Ersen
38e32b01a8 Translated using Weblate (Turkish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/tr/

Signed-off-by: Oğuz Ersen <oguzersen@protonmail.com>
2020-11-26 10:13:12 +01:00
Göran Uddeborg
6b32a1aab6 Translated using Weblate (Swedish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/sv/

Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
2020-11-26 10:13:12 +01:00
Pino Toscano
f4bb26480d Translated using Weblate (Italian)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-11-26 10:13:12 +01:00
Pavel Borecki
9fa5e31669 Translated using Weblate (Czech)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/cs/

Signed-off-by: Pavel Borecki <pavel.borecki@gmail.com>
2020-11-26 10:13:12 +01:00
Piotr Drąg
b2b23a8f2a Translated using Weblate (Polish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-11-26 10:13:12 +01:00
Weblate
9ab1f0c554 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-11-26 10:13:12 +01:00
Uri Lublin
de5cd71013 vnc: show an error dialog upon vnc-error
For example when connecting by accident to a spice server

Signed-off-by: Uri Lublin <uril@redhat.com>
2020-10-27 19:53:40 +02:00
Pino Toscano
b7a2f05266 po: update pot file
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-09-11 11:35:00 +02:00
Uri Lublin
d880ce4a40 about ui: year 2020 in Copyright
rhbz#1848267

Signed-off-by: Uri Lublin <uril@redhat.com>
2020-09-08 15:36:38 +03:00
Whired Planck
ae4a8fc48a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/zh_CN/

Signed-off-by: Whired Planck <fungdaat31@outlook.com>
2020-08-31 05:29:25 +02:00
Julien Humbert
6960919074 Translated using Weblate (French)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/fr/

Signed-off-by: Julien Humbert <julroy67@gmail.com>
2020-08-28 14:35:11 +02:00
Frediano Ziglio
28a330758f win32: Enable some additional security flags for Windows executables
Enable ASLR and NX options.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-08-27 15:02:49 +01:00
Weblate
0ddf959abb Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-08-19 22:42:09 +02:00
Göran Uddeborg
3e5b8cc69b Translated using Weblate (Swedish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/sv/

Signed-off-by: Göran Uddeborg <goeran@uddeborg.se>
2020-08-19 22:42:09 +02:00
Oğuz Ersen
cbcf5dd60c Translated using Weblate (Turkish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/tr/

Signed-off-by: Oğuz Ersen <oguzersen@protonmail.com>
2020-08-19 22:42:09 +02:00
Haochen Tong
03f8a8ff5a virt-viewer-display: fix guest display size on HiDPI host
Signed-off-by: Haochen Tong <i@hexchain.org>
2020-08-19 20:11:13 +00:00
Daniel P. Berrangé
d8c329b024 gitlab: adapt CI rules for libvirt use of meson
Libvirt changed from using autotools to meson, so we need to adapt the
GitLab CI recipe.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-08-19 18:32:24 +01:00
Yuri Chornoivan
e4a065c7ee Translated using Weblate (Ukrainian)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-07-29 15:29:24 +02:00
Pino Toscano
b07d16b8eb Translated using Weblate (Italian)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-07-29 15:29:21 +02:00
Pavel Borecki
117482a611 Translated using Weblate (Czech)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/cs/

Signed-off-by: Pavel Borecki <pavel.borecki@gmail.com>
2020-07-29 15:29:19 +02:00
Piotr Drąg
d36be19994 Translated using Weblate (Polish)
Currently translated at 100.0% (179 of 179 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-07-29 15:29:16 +02:00
Weblate
740d84ea2b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-27 11:32:49 +02:00
Pino Toscano
dcbac960f4 po: update pot file
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-25 06:56:24 +02:00
Pino Toscano
9957a6d6d8 po: use custom ITS rules when extracting messages
This way the custom rules for translating MIME types are used, and thus
the MIME type XML files are properly extracted.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-25 06:54:28 +02:00
Pino Toscano
e4e6462818 mime: rename <_comment> to <comment>
Since gettext is used to extract this file, there is no more need to
prefix the translatable tags with underscore as intltool required.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-25 06:51:10 +02:00
Weblate
b970c7f466 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-24 15:16:52 +02:00
Yuri Chornoivan
41059e0907 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (178 of 178 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-07-24 15:16:52 +02:00
Pino Toscano
38fb4f7f49 Translated using Weblate (Italian)
Currently translated at 99.4% (177 of 178 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-07-24 15:16:52 +02:00
Piotr Drąg
298bfa29e7 Translated using Weblate (Polish)
Currently translated at 100.0% (178 of 178 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-07-24 15:16:52 +02:00
Weblate
4d6aa3203d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-24 15:16:52 +02:00
Pino Toscano
130dc172af Translated using Weblate (Italian)
Currently translated at 98.4% (193 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/it/

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
2020-07-24 15:16:52 +02:00
Balázs Meskó
7d5e1f8040 Translated using Weblate (Hungarian)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/hu/

Signed-off-by: Balázs Meskó <meskobalazs@mailbox.org>
2020-07-24 15:16:52 +02:00
Geert Warrink
0acbe04bc4 Translated using Weblate (Dutch)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/nl/

Signed-off-by: Geert Warrink <geert.warrink@onsnet.nu>
2020-07-24 15:16:52 +02:00
Weblate
6a2393c717 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/

Signed-off-by: Fedora Weblate Translation <i18n@lists.fedoraproject.org>
2020-07-24 15:16:52 +02:00
Yuri Chornoivan
a7cf9c665c Translated using Weblate (Ukrainian)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/uk/

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2020-07-24 15:16:52 +02:00
Piotr Drąg
8d1d0984aa Translated using Weblate (Polish)
Currently translated at 100.0% (196 of 196 strings)

Translation: virt-viewer/virt-viewer
Translate-URL: https://translate.fedoraproject.org/projects/virt-viewer/virt-viewer/pl/

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
2020-07-24 15:16:52 +02:00
Pino Toscano
7f3317e578 VM selection: sort items
Even if the view has search capabilities built-in, show the VM names
sorted so it is easier to visually search for them.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
4b7f2ac0ec Use VM descriptions if available
When listing the running VMs in a libvirt connection, use the
descriptions as tooltips if available.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
e2abe953ed VM selection: expand models for tooltip column
Add a new column in the list models for the VM selection dialog, and use
this new column to hold the tooltip of the items in the list.

At the moment nothing is set in the new column, so there is no behavior
change.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00
Pino Toscano
2e46ffc08d Use VM titles if available
When listing the running VMs in a libvirt connection, use the titles if
available.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
2020-07-24 13:01:57 +00:00