415 Commits

Author SHA1 Message Date
Daniel P. Berrange
812ca0d650 Fix manpage to s/--fullscreen/--full-screen/ 2012-04-17 12:40:49 +01:00
Christophe Fergeau
37171c465f Fix automatic usb redir through controller
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-17 10:11:09 +02:00
Daniel P. Berrange
521116f51b Ensure windres & icotool are present on Win32 builds
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-05 12:07:09 +01:00
Daniel P. Berrange
9a5d978f46 Require F17 for spice in RPM builds 2012-04-05 10:17:01 +01:00
Daniel P. Berrange
35a6112ef5 Exclude windows-cmdline-wrapper.c from some syntax check rules 2012-04-05 09:27:46 +01:00
Daniel P. Berrange
bbbf9414db Add Yonit to authors file 2012-04-05 09:27:34 +01:00
Daniel P. Berrange
2bd7c82ded Fix some syntax violations in git.mk 2012-04-05 09:27:24 +01:00
Zeeshan Ali (Khattak)
6109d5257d Minor simplification/optimization of VirtViewerDisplay 2012-04-05 09:24:59 +01:00
Daniel P. Berrange
dc22bb1221 Fix typo in variable names for Win32 command helper 2012-04-04 10:41:32 +01:00
Daniel P. Berrange
831ebf5dab Fix close of VNC displays
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-04 10:41:32 +01:00
Christophe Fergeau
e76beedf1f Propagate USB redirection controller messages 2012-04-04 10:32:28 +02:00
Yonit Halperin
63feed3d4e Add support for the SPICE properties disable-effects & color-depth
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-04-03 18:48:34 +01:00
Christophe Fergeau
95e42b9cec build-sys: fix Windows specific LDFLAGS on non-mingw 2012-04-03 14:07:21 +02:00
Marc-André Lureau
edf1715a2e nsis: fix a few missing icons 2012-04-03 00:06:19 +02:00
Marc-André Lureau
2a72130eb0 nsis: add the remote-viewer cmdline wrapper 2012-04-02 23:56:50 +02:00
Marc-André Lureau
db1b308a63 remote-viewer: make it a GUI/windows application with hybrid console
If the application can attach to its parent console, redirect
input/output. So that will work nicely with the command line wrapper.
2012-04-02 23:56:50 +02:00
Marc-André Lureau
55477f9f20 Add a Windows command line wrapper
Add a small command line wrapper, to be able to call GUI/windows application from the console
2012-04-02 23:56:49 +02:00
Marc-André Lureau
a48856f10e Disable mnemonics via gtk-enable-mnemonics settings
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-01 20:09:16 +02:00
Marc-André Lureau
261b692657 Disable menu items that would fail when there is no display 2012-04-01 20:09:16 +02:00
Marc-André Lureau
ffb17ce387 build-sys: simplify autogen.sh
It should support NOCONFIGURE=1 ./autogen.sh && mingw32-configure
2012-04-01 20:09:16 +02:00
Marc-André Lureau
81c2c3bfec build-sys: use git.mk to generate gitignore
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-30 14:48:13 +02:00
Marc-André Lureau
902b9a71e2 win32: add a few Windows sepecific data
Add application icon and manifest
2012-03-30 14:48:13 +02:00
Marc-André Lureau
472bfe09c5 win32: clean-up the NSIS installer, allow user install 2012-03-30 14:48:13 +02:00
Marc-André Lureau
cc0696f46f Fix recent --spice-controller regression, add error message
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-30 14:25:52 +02:00
Hans de Goede
e2b41b43eb usbredir: listen for device-error signal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-03-29 17:11:23 +02:00
Marc-André Lureau
310497275d remote-viewer: press Enter to connect in dialog 2012-03-29 03:18:04 +02:00
Marc-André Lureau
0358d8ca6f Remove unused variable i 2012-03-29 02:33:08 +02:00
Marc-André Lureau
7d3dbb57b0 remote-viewer: add a simple connection dialog
If the user doesn't provide URI, let's show a simple dialog to enter it.

Also save & list recently used URLs in that dialog.
2012-03-29 02:28:51 +02:00
Marc-André Lureau
97b983d525 Fix g_thread_init deprecation warning
Although the doc says it is only deprecated since >2.32, it's actually
>2.31 according to glib git log.
2012-03-29 02:28:34 +02:00
Marc-Andre Lureau
336e71534b Do not warn if the display is shown and not ready
Lower warning message to debug level. There are various racy ways it
ends up calling show_display although the display is not yet
ready. This is not such a big problem, although it would be nice to
handle this case better
2012-03-22 00:24:47 +01:00
Marc-Andre Lureau
df1fbf1e8d Notify focus state when the foreign menu title is set
The current code only inform of focus state when the listener is ready.
spice-gtk controller code lacks signal when a client connects, but a
client will set the title when connected and send a notify signal.
Use this event to notify of application focus state.
2012-03-22 00:24:47 +01:00
Marc-Andre Lureau
c4bfc57e72 Do not try to unref NULL menu 2012-03-22 00:24:47 +01:00
Marc-Andre Lureau
591cb0a97e Don't leak foreign menu
The RemoveViewer object will have its own ref.
2012-03-22 00:24:46 +01:00
Marc-André Lureau
9d22757722 spice: handle switch-host event
Do not disconnect session when switching host (non-seamless migration
method).

Also, handle a bit better main channel events and do not disconnect on
unknown events, however raise unhandled event message to warning
level.
2012-03-21 16:21:32 +01:00
Marc-André Lureau
6cfb7116b9 spice: remove usage of deprecated audio api 2012-03-21 16:21:32 +01:00
Marc-André Lureau
7ffd3d4f7e Display correct key bindings to release cursor
If the accels are enabled (with Spice controller custom bindings),
show the configured keybinding in the title bar.
2012-03-21 16:21:32 +01:00
Marc-André Lureau
cf8e5b029c spice: implement --fullscreen=auto-conf
- auto-conf is an optionnal argument to --fullscreen:
it will set the guest display configuration to match the client
display configuration, by sending the client monitors size and
position to capable guests.
2012-03-21 16:20:37 +01:00
Marc-André Lureau
395a44bd47 Fix indentation 2012-03-18 15:19:04 +01:00
Marc-André Lureau
e06c822023 Do not crash so easily when given invalid uri
'remote-viewer foobar' shouldn't crash
2012-03-16 17:16:57 +01:00
Daniel P. Berrange
cf5082577a Updated translations 2012-03-13 09:20:45 +00:00
Marc-André Lureau
b6a7a921a3 Make sure we call g_thread_init()
GThread is needed by spice-gtk
2012-03-09 19:01:35 +01:00
Marc-André Lureau
7f72c2515e Notify of focus state when a client connects
The current code notifies the controller when the remote-viewer
application starts, but not when the client is connected. We should do
the later instead
2012-03-09 19:01:35 +01:00
Daniel P. Berrange
2017b3e0ae Update NEWS for 0.5.2 release v0.5.2 2012-03-09 13:41:35 +00:00
Daniel P. Berrange
88ff553603 Import newer translations from transifex 2012-03-09 13:38:51 +00:00
Daniel P. Berrange
df404090ff Fix libvirt/SPICE min versions
We require libvirt >= 0.9.7 to get virDomainOpenGraphics

We require spice-gtk >= 0.11 to get the fix for dealing with
authentication over an SSH tunnel

We requires spice-protocol >= 0.10.1 to get a constant
required by USB redirection
2012-03-09 13:36:22 +00:00
Marc-André Lureau
4f142b1f16 Add a send-key menu in fullscreen 2012-03-08 14:19:46 +01:00
Marc-André Lureau
810d18c956 build: fix autogen message
When running ./autogen.sh on a pristine git checkout, I got:

libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
You should add the contents of '/usr/share/aclocal/intltool.m4' to 'aclocal.m4'.
2012-03-07 20:42:43 +01:00
Hans de Goede
3123a1107c virt-viewer-window: Don't try to resize non visible windows
Trying to resize not visible windows leads to the following being printed
to the console:
Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)'

This gets triggered by the gdk_screen_get_monitor_geometry() call in
virt_viewer_window_resize()

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-03-07 20:33:12 +01:00
Hans de Goede
5b7985b927 virt-viewer-window: Add show / hide utility functions
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-03-07 20:33:12 +01:00
Hans de Goede
81cdc24470 virt-viewer-window: Move checks before resize to virt_viewer_window_resize
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-03-07 20:33:12 +01:00