Daniel P. Berrange
48c50437fa
Remove useless if() before free()
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
Hans de Goede
c67a8cfdbe
Only make the USB device selection sensitive when the vm is USB capable
2012-02-06 12:30:27 +00:00
Hans de Goede
b272e08541
Add a menu entry for USB device selection
2012-02-06 12:30:08 +00:00
Marc-André Lureau
0e6f0847d8
Grab the focus when showing the display
...
Override the grab_focus() method in the display class. Since both VNC
and Spice displays are the direct child, let's just grab the child.
It can be that this behaviour need to be overriden if Spice or VNC
display become more complex (using sub-childs or different objects)
2012-02-06 12:28:05 +00:00
Guannan Ren
c3a4bdc039
Disconnect virt-viewer when receiving signal session-cancelled
2012-01-31 14:37:17 +00:00
Guannan Ren
8a6cb8c012
Register a new signal session-cancelled
2012-01-31 14:35:17 +00:00
Guannan Ren
c61981540d
Tune the first argument in calls to g_type_class_add_private()
2012-01-31 14:34:47 +00:00
Daniel P. Berrange
5bc4c0b342
Support for virDomainOpenGraphics API
...
Add a new flag --attach, which instructs virt-viewer to attach
to the target display using virDomainOpenGraphics, instead of
initiating a VNC/SPICE connection directly.
2012-01-31 14:27:17 +00:00
Daniel P. Berrange
a94100eaeb
Make VNC support opening connections based on URI
2012-01-31 14:10:29 +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
dfb26d59b0
Enable spice auto-usbredir
2012-01-31 13:20:26 +00:00
Marc-André Lureau
2dcd3fa617
Remove usage of deprecated property
2012-01-31 13:20:26 +00:00
Marc-André Lureau
0084b1cfaa
Add error dialog for USB redirection failure
2012-01-31 13:20:26 +00:00
Marc-André Lureau
c285624bb0
Resize guest desktop with SPICE
...
This is the method we prefer, even though we can't keep aspect ratio.
We could eventually support aspect ration in spice-gtk.
2012-01-31 13:19:29 +00:00
Marc-André Lureau
944ad9ebd0
build: make libvirt optionnal
2012-01-31 12:36:14 +00:00
Marc-André Lureau
091bff3cc2
Use a first letter capital in help
...
The GLib/GNOME convention seems to have first letter as capital for
option description strings.
2012-01-31 12:36:14 +00:00
Marc-André Lureau
15b9f669a7
Add spice_get_option_group()
2012-01-31 12:36:14 +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
Marc-André Lureau
80a3192603
Add a few property getters, used by controller
...
- virt_viewer_app_get_windows()
- virt_viewer_window_get_builder()
- "VirtViewerSessionSpice:spice-session" property
2012-01-30 17:42:11 +00:00
Marc-André Lureau
83897072b2
Make virt_viewer_activate() a vfunc
...
since other equivalent methods are already overridable.
2012-01-30 17:10:36 +00:00
Marc-André Lureau
3cee81ac3a
Add window-added & window-removed signals
2012-01-30 17:10:26 +00:00
Marc-André Lureau
8edbbcf18e
Use graphical URI for connection
...
If specified, use URI for connection details
2012-01-30 17:10:21 +00:00
Marc-André Lureau
629ddc1b5d
Add virt_viewer_session_open_uri
2012-01-30 17:10:18 +00:00
Marc-André Lureau
b1d2f16790
build: replace deprecated functions
2012-01-30 17:10:12 +00:00
Marc-André Lureau
15cc78d91c
build: make gtk-vnc optional
2011-11-07 12:22:15 +00:00
Daniel P. Berrange
9c5f7bfcf2
Require GTK-VNC 0.4.3 and remove redundant realize() call
...
Remove call to gtk_widget_realize for the GTK-VNC widget. Requires
GTK-VNC >= 0.4.3
2011-11-07 12:14:22 +00:00
Marc-André Lureau
1175841df9
Emit display-desktop-resize from set_desktop_size()
2011-11-07 12:12:53 +00:00
Daniel P. Berrange
ea5c75645b
Revert 1a56de3aca
...
The GLIB2 check previously removed was misleading because it in
fact checked for gmodule-export-2.0 which is needed to export
the signal handlers. Revert the previous commit, but rename the
var to GMODULE2 to make it clearer
2011-11-07 11:25:55 +00:00
Daniel P. Berrange
9319081827
Always use canonical URI from libvirt connection
...
The URI we feed into libvirt may be an alias, so always query the
actual URI used internally
2011-11-07 11:17:41 +00:00
Daniel P. Berrange
1a56de3aca
Remove pkgconfig check for GLIB2 since it is implied by GTK2/3
2011-11-04 11:43:38 +00:00
Daniel P. Berrange
59170953d5
Fix broken keycombos for F9->F12 menu
...
The table for sending C-A-Fn to guests had messed up mappings
for F9->F12
2011-10-11 10:38:00 +01:00
Daniel P. Berrange
09ee7d3220
Wire up SpiceDisplay grab signals
...
To ensure that we can put the key release sequence message in the
title bar, wire up VirtViewerDisplaySpice to the grab signals
in SpiceDisplay
2011-10-11 10:12:05 +01:00
Daniel P. Berrange
168af497b9
Fix setting of window title with --wait
...
When waiting for a VM to appear or start, set the initial window
title to the command line arg. When the VM actually appears then
update it to the real VM name
2011-10-11 10:01:10 +01:00
Daniel P. Berrange
986c040fd7
Fix crash from previous commit when using UNIX sockets
...
Code in the previous commit would use 'ghost' even when it was
NULL, as with UNIX domain socket based connections.
2011-09-28 16:39:02 +01:00
Daniel P. Berrange
41703dd458
Fix hostname when XML gives a wildcard address
...
When the guest XML contains a wildcard address like 0.0.0.0 or ::,
we can't directly use connect() on it. Instead we have to use the
hostname/IP from the libvirt URI.
2011-09-19 16:37:57 +01:00
Daniel P. Berrange
fe8551efba
Propagate primary window zoom level to secondary windows
...
Ensure that all windows get a default zoom level of 100. Propagate
the primary window's zoom level to all secondary windows when
initially creating them
2011-09-16 11:07:26 +01:00
Daniel P. Berrange
46cf6410c1
Fix setting of window title with domain name
2011-09-16 10:57:53 +01:00
Daniel P. Berrange
8bd178c8a8
Fix setting of initial zoom level on display
2011-08-16 09:08:51 -07:00
Guido Günther
f3714e3662
ff callbacks must be invoked from a clean stack
...
If 'ff' callbacks are invoked directly from the remove
callback they will likely deadlock in libvirt. They must
be invoked from a clean stack, so switch to using a
glib idle callback.
2011-08-16 08:36:18 -07:00
Guido Günther
e155f7f656
Don't print (null) as user
2011-08-14 12:35:52 -07:00
Guido Günther
60145f31a6
Don't print incorrect port numbers
...
The port isn't 22 when we connect to an alternate port given in
.ssh/config.
2011-08-14 12:35:52 -07:00
Guido Günther
1c00bc2b95
Don't hardcode ssh port to 0
...
Many thanks to Luca Capello <luca@pca.it> for debugging this.
2011-08-14 12:35:52 -07:00
Daniel P. Berrange
754011f2bc
Fix inverted sshport test that broke SSH tunnelling
2011-08-12 15:37:51 +01:00
Marc-André Lureau
f08c5308ca
Return if xmlParseURI() failed, instead of crashing
2011-08-04 13:32:25 +01:00
Marc-André Lureau
1002a220a4
Lookup UI file correctly, to fix Windows support
2011-08-04 13:32:17 +01:00
Marc-André Lureau
76bcf50dc4
Mark exported function for gtkbuild to lookup on Windows
2011-08-04 13:32:10 +01:00
Marc-André Lureau
78cac55443
Make title more translatable and using application name
2011-08-04 13:32:04 +01:00
Marc-André Lureau
4f9e54764c
Use g_printerr for errors instead of fprintf(stderr,..)
2011-08-04 13:31:59 +01:00