305 Commits

Author SHA1 Message Date
Marc-André Lureau
f87cdc9e24 Resize Spice guest display to the container size
The SpiceDisplay doesn't receive the full allocation, because
VirtViewerDisplay maintains current aspect ratio. However, the guest
display can be resize up to its container size.

This fixes going full-screen and not getting native resolution for
instance.
2012-02-08 17:15:20 +00:00
Daniel P. Berrange
e9ff27efe2 Ensure About dialog has transient hints setup 2012-02-08 17:15:16 +00:00
Daniel P. Berrange
c2d114b613 Import a pretty icon for virt-viewer application 2012-02-08 16:41:37 +00:00
Daniel P. Berrange
3349a1d42e Re-added GtkBuilder XML files to POTFILES.in
Adapt syntax-check  rule to allow XML files in POTFILES.in and
re-add the GtkBuilder XML files
2012-02-08 13:32:42 +00:00
Daniel P. Berrange
50632ea038 Implement SPICE desktop resizing that takes account of zoom level
The standard SPICE widget guest resize implementation does not
take into account the zoom level settings in virt-viewer, because
it has no knowledge of this functionality. The guest resize can,
however, be done by calling spice_main_set_display() directly.
This allows virt-viewer to resize the guest taking into account
zoom levels.

 ie, if virt-viewer is run with --zoom 50 and the window
     is resized to 400x300, then the guest agent should
     be told to set its resolution to 800x600
2012-02-08 13:23:48 +00:00
Daniel P. Berrange
3a8cdd901f Revert support for resizing guest desktop
The SpiceDisplay widget has built-in support for resizing the
guest desktop, but this does not know that virt-viewer has a
zoom level setting. This makes the virt-viewer zoom completely
inoperable. Revert use of the 'resize-guest' property.
2012-02-07 17:08:37 +00:00
Marc-André Lureau
0e40961d49 Add spice-xpi-client-remote-viewer alternative 2012-02-06 14:22:42 +00:00
Marc-André Lureau
0cb4fe4972 man: add remote-viewer man page 2012-02-06 14:21:30 +00:00
Daniel P. Berrange
d9825f3c74 Import GNULIB rules for syntax checking code 2012-02-06 12:42:23 +00:00
Daniel P. Berrange
5a19f8aae3 Add config.h to every source file 2012-02-06 12:42:22 +00:00
Daniel P. Berrange
0949dedef7 Use exit() constants 2012-02-06 12:42:22 +00:00
Daniel P. Berrange
f4d8b45181 copyright fix 2012-02-06 12:42:22 +00:00
Daniel P. Berrange
bf00dc893c End of file whitespace cleanup 2012-02-06 12:42:22 +00:00
Daniel P. Berrange
4f45576704 Update POTFILES.in 2012-02-06 12:42:18 +00:00
Daniel P. Berrange
d7c58a3f2e Replace @FOO@ with $(FOO) in all Makefile.am 2012-02-06 12:42:18 +00:00
Daniel P. Berrange
a893d5ef61 Update copyright headers 2012-02-06 12:42:18 +00:00
Daniel P. Berrange
48c50437fa Remove useless if() before free() 2012-02-06 12:42:18 +00:00
Daniel P. Berrange
df1ae9f686 Update AUTHORS file 2012-02-06 12:42:14 +00:00
Daniel P. Berrange
9cc4c188ff Simplify no-op debug macro & fix plugin header 2012-02-06 12:40:10 +00:00
Daniel P. Berrange
3b9a6d9cba Fix makefile.am subsitutions for plugin 2012-02-06 12:40:10 +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
Daniel P. Berrange
d679451659 Ignore more generated files 2012-01-31 14:39:06 +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
e2799ecfa6 Add virt-viewer.nsis
Use ${DESTDIR} variable and @prefix@ to look for files.
Can't easily be generated, it has too much customization.
2012-01-31 13:20:26 +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
67284efecf build: use AM_GLIB_GNU_GETTEXT
Using intltool macro only causes build issues on exotic platforms,
such as MinGW.

As long as this bug isn't fixed, we should use AM_GLIB_GNU_GETTEXT
https://bugs.launchpad.net/intltool/+bug/398571

NB this partially reverts

  3473c4bb49adc0caca58dc1a8b6ce81c6870558a

The difference is the ordering of the rules. With AM_GLIB_GNU_GETTEXT
appearing after IT_PROG_INTLTOOL, the --disable-nls arg to configure
is broken. Thus AM_GLIB_GNU_GETTEXT is called first in this change.
2012-01-30 17:32:40 +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
Daniel P. Berrange
a42efc728c Add support for --system arg to autogen.sh 2012-01-30 16:54:00 +00:00
Daniel P. Berrange
111d80a8cb Prep for 0.4.2 release v0.4.2 2011-11-09 15:13:11 +00:00