Commit Graph

20 Commits

Author SHA1 Message Date
Marc-André Lureau
4bf7aabbf3 Move spice_hotkey_to_gtk_accelerator() to util
To be compatible with RHEVM, VirtViewerFile hotkey format will use the
Spice Controller format.
2012-11-27 20:07:10 +01:00
Daniel P. Berrange
fe485f22de Allow user to set a window title for remote-viewer
Currently the remote viewer windows get the URI as their
title. Provide a --title STRING arg to remote-viewer to
let the user override the title with something more
meaningful to them.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-10-09 17:25:19 +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
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
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
e06c822023 Do not crash so easily when given invalid uri
'remote-viewer foobar' shouldn't crash
2012-03-16 17:16:57 +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
Christophe Fergeau
1d782164a4 Fix path to spice-controller.h 2012-03-05 20:03:41 +01:00
Marc-Andre Lureau
2c9cdb6fb9 remote-viewer: support spice foreign menu 2012-03-01 15:17:25 +01:00
Marc-André Lureau
e2082caa0a remote-viewer: add smartcard controller message 2012-02-22 16:45:11 +01:00
Marc-André Lureau
c0ec28ce8a spice: teach customizable key bindings with controller
Tested with RHEVM 3.0 instance with custom bindings for fullscreen &
ungrab.
2012-02-22 16:45:08 +01:00
Daniel P. Berrange
0949dedef7 Use exit() constants 2012-02-06 12:42:22 +00:00
Daniel P. Berrange
a893d5ef61 Update copyright headers 2012-02-06 12:42:18 +00:00
Daniel P. Berrange
e1283a9a60 Convert TABS to spaces & reindent everywhere 2012-02-06 12:40:09 +00:00
Daniel P. Berrange
6c6ec5f9ea Adapt remote-viewer so that it builds without SPICE 2012-01-31 14:06:00 +00:00
Marc-André Lureau
392b69b6db Add spice controller support in remote-viewer
Usage is simply "remote-viewer --spice-controller"
2012-01-31 12:36:14 +00:00
Marc-André Lureau
2a8ed0522e Add remote-viewer program
This program is meant for direct URI connections.
ex: remote-viewer vnc://uri
2012-01-31 12:36:04 +00:00