summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-04spec: Don't restrict SPICE support to x86/x86_64HEADmasterChristophe Fergeau1-5/+0
virt-viewer.spec currently disables SPICE support on arch which are not x86/x86_64. This used to be needed because spice-gtk had an ExclusiveArch to be only built on these arch. However, this restriction is now gone, so we can enable SPICE support on all newer distros
2012-05-17spice: use weak references to display channelMarc-André Lureau3-16/+15
Fix switch-host migration with Spice. spice-gtk doesn't like channels staying around when they should be destroyed/finalized, ie removed from session. spice-gtk should probably learned to handle better the case of non cooperating clients, and be able to dissociate a channel from a session without waiting for it to be disposed, but for now, the relation is quite tight.
2012-05-15Avoid use of deprecated GTK3 pointer APIsDaniel P. Berrange1-1/+12
The gtk_widget_get_pointer() API is deprecated in GTK3 since it is not aware of multiple pointers. Replace its usage in autoDrawer.c with GdkDeviceManager and friends Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-05-15Adapt to avoid use of deprecated GTK3 style & size APIsDaniel P. Berrange1-2/+18
The GtkStyle API has been deprecated in favour of GtkStyleContext. Update ovBox.c to use the latter if building with GtK3. Also replace use of the gtk_widget_size_request API with gtk_widget_get_preferred_size. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-05-15Release v0.5.3Marc-André Lureau2-1/+17
2012-05-15nsis: fix .nsis file pathsMarc-André Lureau1-5/+5
- look up for icons under the DESTDIR directory - don't ship gstaudiofx, unneeded - add missing libtasn
2012-05-14dist: ship .ico in tarballMarc-André Lureau3-7/+5
Some distros (a 4-letters) don't have icotool. Let's ship the .ico in the tarball. The build will fail if icoutil is not installed when building from git or when the .ico is absent. The error should be explicit.
2012-05-14nsis: IE policy to launch silentely remote-viewerMarc-André Lureau1-0/+6
Add IE ElevationPolicy for the remote-viewer client. http://msdn.microsoft.com/en-us/library/bb250462%28v=vs.85%29.aspx
2012-05-14nsis: fix removal of start menu directoryMarc-André Lureau1-1/+1
2012-05-08Avoid race condition when disposing of appDaniel P. Berrange1-1/+7
When disposing of the VirtViewerApp, we free the hash table containing the windows. This causes each window to be freed, which in turn causes the visibility callback to be invoked. This can then get NULL pointers from the self->priv->windows usage. Blank out priv->windows before unrefing the hashs and add a check to ensure priv->windows is non-NULL.
2012-05-04Ensure windows are destroyed when display closesDaniel P. Berrange4-1/+18
When running virt-viewer with the --reconnect argument, when the session closes, the VirtViewerWindow instances were being freed, but not the GtkWindow itself. So the orphaned window stayed around doing nothing. The GtkBuilder instance was also leaked. Fix these two leaks & also add some debugging to help future troubleshooting
2012-05-02Change 'OK' button to 'Close' button in USB device selectionDaniel P. Berrange1-1/+1
The USB device selection applies immediately, so the dialog should be using 'Close' instead of 'OK' for its primary button
2012-04-27g_getenv returns a const stringChristophe Fergeau1-1/+1
When switching from getenv to g_getenv, 'doms' declaration wasn't changed from char * to const char *, which causes a gcc warning.
2012-04-26Replace getenv/setenv with g_getenv/g_setenv for Win32 portabilityDaniel P. Berrange1-3/+3
2012-04-25Add debugging when performing fullscreen auto-configurationDaniel P. Berrange1-1/+8
2012-04-25Refresh translations from transifexDaniel P. Berrange40-1699/+7778
2012-04-25Really fix debug output on glib >= 2.31Daniel P. Berrange1-0/+12
2012-04-25Fix debug output on glib >= 2.31Daniel P. Berrange1-0/+2
2012-04-23Set the remote-viewer binary application nameDaniel P. Berrange1-0/+2
Currently the window titles for remote-view have 'remote-viewer' appended them. This is based off the argv[0] name. We should be setting the GLib application name though, so we can get a localized 'Remote Viewer' string in the titlebar
2012-04-23Add support for raw IPv6 addresses in VNC & libvirt URIsDaniel P. Berrange2-4/+27
Support vnc://[x:y:z:]:5901/ for raw IPv6 addresses in URIs, and qemu+ssh://root@[x:y:x:]:22/ for raw IPv6 addresses in libvirt URIs
2012-04-19Fix scaling of window to avoid integer truncationDaniel P. Berrange2-2/+5
Use round() instead of integer truncation when scaling the window, to avoid floating point precision problems on i386
2012-04-18Add a desktop file for launching remote-viewerDaniel P. Berrange3-0/+16
Enable automagic handling of spice:// URLs in firefox by registering a desktop handler for remote-viewer with the SPICE URI scheme
2012-04-17Give remote-viewer priority over spicec for spice-xpi-clientDaniel P. Berrange1-1/+1
2012-04-17Add manpage docs for the --attach optionDaniel P. Berrange1-0/+7
2012-04-17Fix manpage to s/--fullscreen/--full-screen/Daniel P. Berrange2-2/+2
2012-04-17Fix automatic usb redir through controllerChristophe Fergeau1-5/+5
remote-viewer is currently trying to use SpiceUsbDeviceManager::auto-connect to control whether USB devices should be automatically connected or not. However, this property is more or less an internal spice-gtk property which is toggled by SpiceGtkSession when the SPICE widget gets/loses focus. SpiceGtkSession has an "auto-usbredir" property which can be used by applications to enable/disable automatic usb redirection through SPICE. Since this property is helpfully bound to VirtViewerSession::auto-usbredir, use this when the controller is told to enable/disable USB redirection. Without this change, automatic USB redirection will always get reenabled as soon as there's a focus change since SpiceGtkSession::auto-usbredir defaults to be enabled in spice-gtk.
2012-04-05Ensure windres & icotool are present on Win32 buildsDaniel P. Berrange1-0/+7
Builds are failing with an obscure error message make[3]: Entering directory `/var/lib/builder/source-root/virt-viewer/build/icons' GEN virt-viewer.ico /bin/sh: -c: command not found make[3]: *** [virt-viewer.ico] Error 127 This is because configure.ac does not enforce that icotool is present on Win32. * configure.ac: Mandate windres & icotool on Win32
2012-04-05Require F17 for spice in RPM buildsDaniel P. Berrange1-1/+1
2012-04-05Exclude windows-cmdline-wrapper.c from some syntax check rulesDaniel P. Berrange1-2/+5
2012-04-05Add Yonit to authors fileDaniel P. Berrange1-0/+1
2012-04-05Fix some syntax violations in git.mkDaniel P. Berrange1-5/+5
2012-04-05Minor simplification/optimization of VirtViewerDisplayZeeshan Ali (Khattak)2-9/+6
2012-04-04Fix typo in variable names for Win32 command helperDaniel P. Berrange1-2/+2
2012-04-04Fix close of VNC displaysDaniel P. Berrange7-3/+49
When clicking the close button on a virt-viewer window with a VNC session open, while the VNC session terminates, the window does not go away. The problem is that the virt_viewer_session_vnc_disconnected method never gets invoked. The close button triggers a call to virt_viewer_session_clear_displays which unrefs the VirtViewerDisplayVnc instance. This in turn triggers a call to gtk_container_destroy, which destroys all widgets it contains, ie the VncDisplay * object. With the VncDisplay object in its dispose phase, no signals will ever be emitted, thus the 'vnc-disconnected' signal never gets seen. The design issue is that VirtViewerDisplayVnc is assuming it owns the VncDisplay, whereas in fact the real owner is the VirtViewerSessionVnc object. The solution is to introduce a new virt_viewer_display_close method which can be used to de-parent the widget before VirtViewerDisplay is unref'd. The VirtViewerSessionVnc object also needs to hold a full ref on the VncDisplay object, not merely a floating reference * virt-viewer-display-spice.c, virt-viewer-display.c, virt-viewer-display.h: Add virt_viewer_display_close * virt-viewer-display-vnc.c: Deparent VNC widget in virt_viewer_display_close impl * virt-viewer-session-vnc.c: Improve logging * virt-viewer-session.c: Call virt_viewer_display_close before unrefing display * virt-viewer-window.c: Improve logging Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-04-04Propagate USB redirection controller messagesChristophe Fergeau1-1/+16
2012-04-03Add support for the SPICE properties disable-effects & color-depthYonit Halperin1-1/+3
Signed-off-by: Yonit Halperin <yhalperi@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-04-03build-sys: fix Windows specific LDFLAGS on non-mingwChristophe Fergeau1-1/+3
2012-04-03nsis: fix a few missing iconsMarc-André Lureau1-1/+19
2012-04-02nsis: add the remote-viewer cmdline wrapperMarc-André Lureau1-0/+2
2012-04-02remote-viewer: make it a GUI/windows application with hybrid consoleMarc-André Lureau2-0/+16
If the application can attach to its parent console, redirect input/output. So that will work nicely with the command line wrapper.
2012-04-02Add a Windows command line wrapperMarc-André Lureau2-0/+95
Add a small command line wrapper, to be able to call GUI/windows application from the console
2012-04-01Disable mnemonics via gtk-enable-mnemonics settingsMarc-André Lureau1-33/+10
This has 2 advantages, and I can't figure any drawback: - it fixes the issue of mnemonic hints being draw when pressing Alt key (character underlined), even when they were disabled. - it simplifies the code :)
2012-04-01Disable menu items that would fail when there is no displayMarc-André Lureau1-0/+18
2012-04-01build-sys: simplify autogen.shMarc-André Lureau1-37/+11
It should support NOCONFIGURE=1 ./autogen.sh && mingw32-configure
2012-03-30build-sys: use git.mk to generate gitignoreMarc-André Lureau16-45/+254
This makefile is just fantastic, it forces you into good practices, support various build targets (my windows builddir ignore the right files etc..) The more I use it, the more I like it.
2012-03-30win32: add a few Windows sepecific dataMarc-André Lureau6-1/+85
Add application icon and manifest
2012-03-30win32: clean-up the NSIS installer, allow user installMarc-André Lureau1-23/+38
2012-03-30Fix recent --spice-controller regression, add error messageMarc-André Lureau1-3/+10
The current code will attempt to dereference args if --spice-controller, even if args is NULL. Let's not accept any extra argument/uri on the command line if using the controller. Beside, the conditionnal block looks better outside of the if condition.
2012-03-29usbredir: listen for device-error signalHans de Goede1-1/+4
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-03-29remote-viewer: press Enter to connect in dialogMarc-André Lureau1-0/+1