Commit Graph

79 Commits

Author SHA1 Message Date
Daniel P. Berrange
af46dc1408 Annotate unused variables 2011-07-12 11:48:23 +01:00
Daniel P. Berrange
2fd926243d Fix leak of graphics type attribute from XML 2011-07-12 11:27:51 +01:00
Daniel P. Berrange
cf28bcf512 Fix leak of command line arguments 2011-07-12 11:27:38 +01:00
Daniel P. Berrange
1def55556f Split pull part of VirtViewerDisplay out into VirtViewerSession
To facilitate introduction of multi-head support, pull some of
the VirtViewerDisplay class out into a new VirtViewerSession
class.
2011-07-11 20:03:32 +01:00
Daniel P. Berrange
9501b9885a Avoid (null) in titlebar 2011-07-11 17:07:36 +01:00
Daniel P. Berrange
4614cb9024 Fix colour of status label to show up on black background 2011-07-11 16:30:43 +01:00
Daniel P. Berrange
f1e7704abf Fix reconnecting of SPICE display 2011-07-11 16:26:51 +01:00
Marc-André Lureau
7cd8b352ba Fill space on the display alignment with black 2011-07-11 15:51:36 +01:00
Marc-André Lureau
7da268c164 Add support for --fullscreen option 2011-07-11 15:50:13 +01:00
Marc-André Lureau
98499277db Skip non-primary monitors in SPICE 2011-07-11 15:48:20 +01:00
Daniel P. Berrange
4ba39d0224 Remove circular dependancy between VirtViewerDisplay and VirtViewer
Add many signals to VirtViewerDisplay which are emitted when various
events occur. This lets us remove all the code in the VirtViewerDisplay
subclasses which call back into VirtViewer methods. Instead VirtViewer
can simply connect signals to the display
2011-07-11 15:35:47 +01:00
Daniel P. Berrange
7a7112a9fa Turn VirtViewerDisplay into a proper Gtk widget
Turn VirtViewerDisplay into a Gtk widget instead of just a GObject,
by merging the functionality from VirtViewerAlign
2011-07-11 14:10:07 +01:00
Daniel P. Berrange
7f91cdf4ab Update to optionally build with GTK3 2011-07-11 12:07:21 +01:00
Daniel P. Berrange
cff795065a Replace use of GtkAlignment with a custom align widget
To use the GtkAlignment we have to play evil tricks overriding
its size request, to make it reallocate the child to the preferred
size we desire based on the virtual desktop size + zoom level.

By replacing the GtkAlignment with a custom widget we can
directly implement the layout/sizing semantics we want without
playing stupid games
2011-07-01 18:07:25 +01:00
Daniel P. Berrange
f3fa999769 Introduce standard naming convention to files & methods
All source files must be named

  virt-viewer-XXXX

All methods named

  virt_viewer_XXX
2011-07-01 16:12:20 +01:00
Daniel P. Berrange
cfdc8055be Fix some compile warnings 2011-07-01 13:42:08 +01:00
Daniel P. Berrange
4c210b712c Convert from Glade to GtkBuilder 2011-07-01 13:41:54 +01:00
Daniel P. Berrange
27d7500e03 Enable use of scaling from spice >= 0.6
Make the SPICE widget operate in the same way as the VNC widget
with display scaling, and auto-resize, but preserving guest
aspect ratio
2011-07-01 12:56:57 +01:00
Daniel P. Berrange
e37190e754 Hide menu bar on fullscreen & add a hiding toolbar
* src/Makefile.am, src/view/autoDrawer.c, src/view/autoDrawer.c
  src/view/drawer.c, src/view/drawer.h, src/view/ovBox.c,
  src/view/ovBox.c: Import auto-drawer from vinagre
* src/viewer-priv.h, src/viewer.c, src/viewer.glade,
  src/display-vnc.c: Insert an auto-drawer above the
  notebook and display an auto-hiding toolbar when fullscreen
2011-07-01 12:56:02 +01:00
Daniel P. Berrange
72d54bf0fc Add message about whether it is VNC or SPICE display 2011-06-30 17:51:50 +01:00
Daniel P. Berrange
da9cd26085 Add some useful data for the --verbose flag 2011-06-30 17:41:26 +01:00
Daniel P. Berrange
6234a2e1f4 Fix re-connect after authentication failure
viewer->display will be non-NULL if we have already attempted a
connection. So, remove the check for it being NULL, and instead
skip the widget setup step.
2011-05-23 12:41:12 +01:00
Jiri Denemark
6c477650ca Add support for listen attribute
Virt-viewer now parses listen attribute from graphics element to be able
to connect to domains configured with explicit listen address:

    <graphics type='vnc' port='-1' autoport='yes' listen='123.45.67.89'/>
2011-05-23 12:15:05 +01:00
Daniel P. Berrange
8bf23ec76e Fix waiting for VM based on UUID 2011-02-03 17:00:36 +00:00
Daniel P. Berrange
c015cf6076 Support connections over UNIX sockets 2011-02-03 16:59:49 +00:00
Daniel P. Berrange
26746f3b6f Avoid fetching XML document multiple times when extracting graphics 2011-02-03 16:48:58 +00:00
Marc-André Lureau
a12a00758b build: make spice-gtk dependency optional 2010-12-10 12:22:48 +01:00
Marc-André Lureau
be22c7dcf0 viewer: add support for spice resize-guest
And also turn on clipboard sharing.
2010-11-30 15:57:23 +01:00
Marc-André Lureau
155a03f9c8 viewer: Add support for Spice 2010-11-30 13:59:01 +01:00
Marc-André Lureau
882ac10d52 viewer: generalize extract_port() into viewer_extract_xpath_string() 2010-11-19 18:09:42 +01:00
Marc-André Lureau
07f2682884 viewer: silence a few warnings of unused variables 2010-11-19 18:07:48 +01:00
Marc-André Lureau
e60c5e56de viewer: split vnc display creation out of viewer_activate() 2010-11-19 18:07:12 +01:00
Daniel P. Berrange
a0ca3e3da0 Improve auth dialog message when no address is available 2010-12-14 15:54:47 +00:00
Ronnie Sahlberg
abee3c912b Add support for zoom levels
Add a menu for zooming in/out of the virtual desktop.

Add a --zoom command line to set the initial zoom level.

Defaults to 100% zoom at startup
2010-07-05 17:45:18 +01:00
Daniel P. Berrange
fbdb72bb13 Add message dialog displays for important error scenarios 2010-01-12 16:50:18 +00:00
Daniel P. Berrange
a16f4d5767 Fix warning with default widget focus in auth dialog 2010-01-12 15:14:12 +00:00
Daniel P. Berrange
8b849632fd Add dialog to alert user to unsuccessful authentication & retry
Alert user if VNC server has no compatible auth methods
Support VNC bell & cut text events
2010-01-12 14:55:10 +00:00
Daniel P. Berrange
d5cee6df0c Various cleanups for Glib/GTK and BZ 474213 2010-01-12 12:05:30 +00:00
Daniel P. Berrange
c3d4d61340 Add 'pl' to LINGUAS. Remove accidentally committed .pot file and
add it to .hgignore. Add RPM specfile magic for translations.
Fix typo in about.glade URL
2010-01-11 17:00:37 +00:00
Daniel P. Berrange
50f48b4d91 Add support for i18n of the UI
Add all the boilerplate code required for doing i18n of the UI.
No translations available yet though
2010-01-11 16:01:20 +00:00
Yann E. MORIN"
acf61455a3 viewer: fix build on 'old' GTK2
Debian lenny has gtk2 2.12.12, which is missing gtk_widget_get_window.
Provide our own function if GTK2 <= 2.12 .

Highly inspired from: http://osdir.com/ml/svn-commits-list/2009-08/msg00725.html
2009-08-15 11:19:24 +02:00
Daniel P. Berrange
0f20335a4f Ensure VNC display is centered if being scaled 2009-07-29 12:43:30 +01:00
Daniel P. Berrange
831411aacb Ensure password is not echoed 2009-07-29 12:39:16 +01:00
Daniel P. Berrange
bc55a8d757 Add support for libvirt graphical auth 2009-07-29 12:35:27 +01:00
Daniel P. Berrange
852825ae5e Pull auth code out into separate file 2009-07-29 11:21:11 +01:00
Daniel P. Berrange
3680317d91 Make plugin work again 2009-07-28 21:51:20 +01:00
Daniel P. Berrange
e135b1c2f7 Add compatability logic for drivers without domain event support 2009-07-28 21:16:40 +01:00
Daniel P. Berrange
d35abc160a Fix mouse / key grab vs modifier disabling mixup 2009-07-28 21:00:56 +01:00
Daniel P. Berrange
296f91c549 Pull glib event loop integration into tree until libvirt-glib is more mature 2009-07-28 20:48:43 +01:00
Daniel P. Berrange
6acb3856b6 Re-write the way scaling/resizing works
* Default to auto-resize mode where we try to fit the VNC widget 1:1 in the main window
* If local desktop is not large enough for VNC widget, scale down, maintaining aspect ratio
* Allow the user to turn off auto-resize and have total manual control over window size
* Always scale the display in fullscreen mode
2009-07-28 20:26:34 +01:00