summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-07-16virt-viewer-window: Allow to resize window to any sizefixzoomPavel Grunt1-76/+3
The function virt_viewer_window_resize restricts window to be bigger than a client's screen. It avoids extending the window to more client's screens, it causes changes of the zoom level if the guest does not fit into a screen. Lets remove virt_viewer_window_resize (its behaviour was introduced by the commit 6acb3856b6d8007752388f22f97aa8aaffdb7a5e). It will let the window managers to handle resizing of the window. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1221501 https://bugzilla.redhat.com/show_bug.cgi?id=1205804
2015-07-14Remove unnecessary parameter from virt_viewer_window_resize()Pavel Grunt1-6/+5
Since c3cbdef888cc823e92140027d38378f40ccd4174 virt_viewer_window_resize is always called with keep_win_size = FALSE.
2015-07-14virt-viewer-window: Change zoom with respect to real zoomPavel Grunt1-3/+17
The zoom can be changed by resizing the window (VNC / Spice without the agent). It is necessary to recalculate the zoom level before changing it, otherwise zoom operations will not work correctly. Resolves: https://bugs.freedesktop.org/show_bug.cgi?id=90582
2015-07-09virt-viewer: set keepAlive on libvirt connectionPavel Hrdina1-0/+4
Setting the keepAlive on libvirt connection is needed in order to receive the CloseCallback event. Resolves: rhbz#1164052
2015-06-30Build an intermediate convenience libraryJonathon Jongsma1-38/+47
Instead of building every single source file twice (once for virt-viewer, and once for remote-viewer), just build them into a temporary library and link the final executables against that. The one possible drawback to this approach is that we now use the same log domain for both executables: 'virt-viewer'. Previously, the remote-viewer executable used 'remote-viewer' for its log domain.
2015-06-30Build: put one file on a lineJonathon Jongsma1-17/+35
For easier maintenance, put a single source file per-line in the makefile
2015-06-30Remove spice-controller flags from virt-viewer buildJonathon Jongsma1-1/+0
Virt-viewer does not use spice-controller, only remote-viewer does. So there's no need to ad SPICE_CONTROLLER_CFLAGS to the virt-viewer build.
2015-06-24mingw,spec: Fix mingw-gstreamer1-plugins-bad-free nameFabiano Fidêncio1-2/+2
The package was created with a wrong name (mingw-gstreamer1-plugins-bad) and then fixed (mingw-gstreamer1-plugins-bad-free) for f22 and newer.
2015-06-23msi: drop gtk2 supportFabiano Fidêncio2-31/+12
As virt-viewer builds for Windows are using GTK3 nowadays, we can easily drop GTK2 support and avoid maintenance effort in something that is not used/tested anymore.
2015-06-23nsis: drop gtk2 supportFabiano Fidêncio2-284/+212
As virt-viewer builds for Windows are using GTK3 nowadays, we can easily drop GTK2 support and avoid maintenance effort in something that is not used/tested anymore.
2015-06-23mingw-spec: Update msitools dependencyFabiano Fidêncio1-1/+1
The new msitools release includes the necessaries changes for fixing mingw-virt-viewer build (on fedora22). These fixes are: - an updated libvirt.wxi, removing storageencryption.rng file - a new included libeproxy.wxi, a new dep for gtk3 since its 3.15.3 version.
2015-06-23nsis: add libepoxy-0.dll (a new gtk3 dependency)Fabiano Fidêncio1-0/+2
The new dependecy was introduced in gtk+ 3.15.3.
2015-06-19Don't wait for reconnect when user cancels authJonathon Jongsma3-1/+7
When starting virt-viewer with the --reconnect switch to a guest that has a password, if the user cancels the authentication dialog (e.g. pressing 'Esc'), the window will display "Waiting for guest domain to restart". Obviously, the domain will never restart because it's already running. After this fix, the application will simply exit when the user cancels authentication, even if the --reconnect switch is used.
2015-06-19Automatically retry auth failures for VNCJonathon Jongsma1-25/+4
There's no reason that we need to ask if the user wants to retry auth failures for VNC sessions but not ask for spice sessions. If the user doesn't want to retry, she can simply click 'cancel' when the auth dialog pops up, just as they do with spice.
2015-06-19VNC session: emit session-cancelled signalJonathon Jongsma1-0/+1
When the user cancells an authentication dialog (e.g. by pressing 'Esc', emit the session-cancelled signal to be consistent with the spice session implementation.
2015-06-19Rename session-auth-failed to session-auth-unsupportedJonathon Jongsma4-9/+9
Now that VNC and Spice both return the same signal on normal authentication failures ('session-auth-refused'), the 'session-auth-failed' signal is too confusingly similar. Rename it to -unsupported to make it obvious that it's a different type of (unrecoverable) error.
2015-06-19Fix inconsistencies in session auth failuresJonathon Jongsma2-3/+11
The spice session implementation can retry authentication on its own, whereas the vnc session needs to tear down the session and re-connect in order to retry a failed authentication. This results in the following inconsistent behavior: VNC session: - emits a 'session-auth-failed' signal when the client does not support a particular authentication type (i.e.: a non-recoverable error) Spice session: - emits a 'session-auth-failed' signal when user enters an incorrect password, and immediately retries auth internally VNC session: - emits a 'session-auth-refused' error when user enters an invalid password (i.e.: a recoverable error) Spice Session: - never emits a 'session-auth-refused' signal Because of these differences, the VirtViewerApp code to handle authentication failures is a bit confusing and difficult to maintain. To fix this issue, make both the spice and VNC sessions emit the same signal when similar errors occur. We use the new session API added in the last commit to determine whether the session supports automatic retries so we know how to handle the signal.
2015-06-19Session: add vfunc to check auth retry capabilityJonathon Jongsma3-0/+20
The spice session implementation can retry authentication on its own, whereas the vnc session needs to tear down the session and re-connect in order to retry a failed authentication. Add API to determine this so that we can clean up some code related to authentication failures.
2015-06-19Move SpiceSession setup to create_spice_session()Jonathon Jongsma1-58/+60
Most of the setup (connecting to signals, etc) for the SpiceSession was done in create_spice_session(), but some was done afterwards in virt_viewer_session_spice_new(). Consolidate all session configuration in one place. In addition to making it easier to maintain, create_spice_session() is also called in virt_viewer_session_spice_close(). which results in a spice session that is configured slightly differently than the first session created in _new(). Consolidating everything in create_spice_session() avoids that inconsistency.
2015-06-19Add config.h include to remote-viewer-connect.c fileDaniel P. Berrange1-0/+2
2015-06-16remote-viewer-connect: Address entry is now requiredLukas Venhoda1-6/+21
Connect button is now non-sensitive when address entry is empty. Pressing enter will now also NOT connect, when address entry is empty.
2015-06-16remote-viewer-connect: Fixed reselecting in recent chooserLukas Venhoda1-0/+10
Recent chooser didn't unselect on loosing focus. Selecting recent connection, then modifying address in entry and doubleclicking on the same recent connection caused remote-viewer to connect to address in the entry, Recent chooser now unselects on loosing focus, forcing to re-select when doubleclicking the recent connection, which will now properly set the address to connect to.
2015-06-16remote-viewer-connect: Changed hardcoded UI into XMLLukas Venhoda4-71/+171
Hardcoded UI removed in favor of XML. Added the new XML file for translation.
2015-06-16remote-viewer-connect: Changed dialog into a windowLukas Venhoda3-28/+113
Changed connect dialog from GtkDialog to a GtkWindow. Added the necessary signals and buttons, to keep the behaviour of a dialog. (ESC to close, ENTER to submit)
2015-06-16remote-viewer-connect: Check if uri is NULLLukas Venhoda1-1/+3
URI should be NULL before passing it to remote_viewer_connect_dialog.
2015-06-16remote-viewer-connect: Changed response to gbooleanLukas Venhoda3-6/+17
remote_viewer_connect_dialog now returns TRUE and FALSE, instead of 0 and -1. Added a doxygen style comment to document this in code also.
2015-06-16remote-viewer: Connect dialog moved to its own fileLukas Venhoda4-158/+229
Connect dialog from remote-viewer is now in its own file. Most other dialog also have their own files. This will make changing the dialog into a window easier. Renamed connect_dialog to remote_viewer_connect_dialog.
2015-06-16configure: Require spice-protocol 0.12.7Pavel Grunt1-1/+1
We are already using SPICE_CHANNEL_WEBDAV from spice/enums.h
2015-06-15Enable hotkeys after setting them in virt_viewer_app_set_hotkeysChristophe Fergeau1-1/+1
Enabling hotkeys will trigger a rebuild of the 'send keys' menu containing the new hotkeys. virt_viewer_app_set_hotkeys() was clearing and then enabling the hotkeys before parsing the string containing the new hotkeys. This was causing these hotkeys to be missing from the 'Send keys' menu when they are set through the spice controller because the 'send keys' menu was rebuilt before the new hotkeys are set. Resolves: rhbz#1055600
2015-06-11nsis: Ship libwinpthread even without libvirt supportFabiano Fidêncio1-1/+1
Without libwinpthread, remote-viewer complains about missing this dll, when built using --without-libvirt
2015-06-10Add InstallScope="perMachine" to virt-viewer.wxs.inSandy Stutsman1-1/+1
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1146016 Without this parameter the installer will place the start menu icon in the Admin users path rather than the 'AllUsers'. Unprivileged users are unable to use the menu to start the remote-viewer. N.B. Because previous installations mixed Users and PerMachine (AllUsers) paths, this installation will *NOT* properly upgrade them. They must be manually uninstalled first.
2015-06-10Add missing config.h header fileDaniel P. Berrange1-0/+2
2015-06-09vv-file: Show 'newer-version-url' when version check failsChristophe Fergeau1-5/+17
We currently display a generic error message when the current binary is older than the minimum version specified in the vv file. The previous commit added a 'newer-version-url' field to these .vv file. This commit adds that URL to the error message if it's set.
2015-06-09vv-file: Add 'newer-version-url' key to .vv filesChristophe Fergeau3-0/+34
If set, this URL will be displayed when one of the version checks ('version' of 'versions' key fail). This URL should contain explanations about how to get an updated remote-viewer version.
2015-06-09test: Add test case for virt_viewer_compare_buildidChristophe Fergeau2-0/+79
2015-06-09util: Replace virt_viewer_compare_version with _compare_buildidChristophe Fergeau4-20/+61
This allows us to do a more accurate version check if the .vv file producer wants to allow builds newer than x.y-z because they contain an important bug fix.
2015-06-09vv-file: Use "versions" in min version checkChristophe Fergeau1-2/+21
This tries to use the list of versions added to .vv files by the previous commit. If remote-viewer was built with an os-id specified, and if it's found in the 'versions' .vv file key, then the version associated with it is used for version checks, otherwise the 'version' field is used if present.
2015-06-09Show osid in remote-viewer --versionChristophe Fergeau1-1/+5
2015-06-09build-sys: Add --with-osidChristophe Fergeau1-0/+6
This new configure flag allows to specify a string ID (eg fedora22, ubuntu10.04, ..) identifying the OS this remote-viewer build will be for. This will be used in combination with the new 'versions' field in .vv files in order to make it possible for the creator of the .vv file to specify which version it expects for the various OSes which may connect.
2015-06-09vv-file: Add VirtViewerFile::versionsChristophe Fergeau3-1/+82
Specifying a single minimal version in the .vv file is not enough as the client version will be highly dependent on the OS it's running in. Windows versioning is not the same as linux versioning, Fedora 21 and Fedora 22 may have different release numbers for the same version, and we may want to force a specific minimal release in case of a critical bug fix. This commit adds supports for a 'versions' field in .vv files where a list of os-id:version couples can be stored.
2015-06-09vv-file: Refactor virt_viewer_file_check_min_versionChristophe Fergeau1-12/+15
Reorganize the code a bit so that it's easier to extend it.
2015-06-09vv-file: Move version checking code in its own functionChristophe Fergeau1-5/+15
This moves the version checking code in a virt_viewer_file_check_min_version helper so that it can be reused/extended more easily.
2015-06-09build-sys: Always prepend '-' to BUILDIDChristophe Fergeau1-2/+2
This was removed by commit 28a6bd6 as WINDOWS_PRODUCTVERSION needs a buildid without a dash. Apart from this variable, all other uses of buildid/BUILDID in virt-viewer source tree need a dash between the version number and the buildid to avoid getting output like "3.01" instead of "3.0-1" Rather than patching every location where BUILDID is used, this commit appends the "-" before substituting/defining BUILDID in configure.ac. This does not modifies the buildid configure.ac variable, this way WINDOWS_PRODUCTVERSION won't get an unwanted '-'.
2015-06-09build-sys: Don't substitute buildid when it was not setChristophe Fergeau1-2/+7
Since it defaults to being 0, we'll get a spurious 0 on remote-viewer --version if we AC_DEFINE/AC_SUBST it when the user did not specify it.
2015-06-04monitor-mapping: Do not allow to skip a displayPavel Grunt3-0/+17
Skipping a display does not have an effect because displays will be reconfigured and shifted on the guest side anyway. these monitor mappings are not valid: 'monitor-mapping=1:2;3:1' - display #2 is not specified 'monitor-mapping=4:2;2:1' - displays #1, #3 are not specified 'monitor-mapping=3:3' - displays #1, #2 are not specified
2015-06-02session-spice: Only update displays geometry if the agent is connectedFabiano Fidêncio1-3/+8
2015-05-21virt-viewer: Fix choose VM dialog alt-tab in gnome2Lukas Venhoda1-2/+0
Choose VM dialog was not visible in taskbar and alt-tab when running on system with gnome2. rhbz#1223285
2015-05-21Revert "display-vnc: fix zoom-level set by command line"Fabiano Fidêncio1-1/+0
This reverts commit 68148e1bd1a47ff370c78e2569a57ae0f3d8a400. The commit in question was causing a regression about a tiny window being displayed when opening a vnc guest. The issue only happens with the gtk2 version of virt-viewer. rhbz#1170071 that was solved by the reverted commit is avoided by the commit c45a30e909656434aa842d48d828ef038ec7364a. Resolves: rhbz#1201679
2015-05-21session-vnc: Set window for display to avoid gtk-vnc v0.3.8 crashPavel Grunt1-0/+5
The VNC display widget of gtk-vnc v0.3.8 needs a window at the moment it is initialized otherwise it would crash. Resolves: rhbz#1196517
2015-05-21virt-viewer-display-vnc: Set uuid when using VNCLukas Venhoda2-1/+8
Notify user, that VNC does not provide uuid. Set uuid to string "VNC does not provide guid". This is more informative then just plain "Unknown". User will now know WHY the GUID is unknown, when using remote-viewer.