summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow app_initial_connect() to raise an errorMarc-André Lureau2013-03-081-18/+25
|
* Don't SIGSEGV if no transport is used.Michal Privoznik2012-11-141-1/+1
| | | | | | | | One of previous commits (74b1b62510d939) allowed us to connect to localhost directly if ssh transport was used. However, if there's not transport, we SIGSEGV'ed as g_str_equal doesn't like NULL as one of arguments. Change this to g_strcmp0 which does the same service but is more friendly to NULL arguments.
* Reconnect to libvirtd after connection breaksMichal Privoznik2012-11-131-8/+53
| | | | | | | | Currently, if user wants to reconnect to a domain he can use '-r' cmd line argument. This makes virt-viewer listen to domain events. However, if connection to libvirtd breaks somehow, we will receive no longer any event. Hence we must reconnect to the libvirt.
* Connect to localhost for display when transport is sshDave Allan2012-11-081-3/+11
| | | | | | | | | | | When connecting to a VM that does not have a 'listen' tag in its graphcs element, we have to guess where to try to connect to the VM's display. The current default is the host specified in the connection URI which is correct for most transports, however, the SSH transport makes the display connection from the remote end, so in that case, attempt to connect to localhost. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix check for IPv6 any addressDaniel P. Berrange2012-10-101-3/+22
| | | | | | | | | | The string '::' is just one of many possible ways to express the IPv6 "any" address. Others include '::0', '0:0:0:0:0:0:0:0', '0::0' and more. Instead of trying to do strcmp, actually try parsing the address with GInetAddress and then simply use an accessor to check what type it is Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Append \n to message in virt_viewer_app_traceChristophe Fergeau2012-09-181-4/+4
| | | | | | | Callers manually add a trailing \n when they call virt_viewer_app_trace, but it's sometimes forgotten, leading to rhbz#822794. This commit removes the \n from all callers (it was missing in a few of them) and adds it in virt_viewer_app_trace.
* Don't hardcode 'localhost' in no @listen parameter is givenDaniel P. Berrange2012-02-141-5/+3
| | | | | | If no @listen parameter is given, we must not hardcode 'localhost' since we can't assume we are running on the same host. Instead use the hostname from the connection URI
* Extract tlsPort for SPICE and use it to enable secure connectionsDaniel P. Berrange2012-02-141-1/+9
|
* Ensure auth popup windows have correct transient parentDaniel P. Berrange2012-02-081-1/+63
|
* Update copyright headersDaniel P. Berrange2012-02-061-2/+2
|
* Remove useless if() before free()Daniel P. Berrange2012-02-061-8/+4
|
* Convert TABS to spaces & reindent everywhereDaniel P. Berrange2012-02-061-452/+451
|
* Support for virDomainOpenGraphics APIDaniel P. Berrange2012-01-311-1/+60
| | | | | | 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.
* Use graphical URI for connectionMarc-André Lureau2012-01-301-1/+1
| | | | If specified, use URI for connection details
* Always use canonical URI from libvirt connectionDaniel P. Berrange2011-11-071-1/+4
| | | | | The URI we feed into libvirt may be an alias, so always query the actual URI used internally
* Fix setting of window title with --waitDaniel P. Berrange2011-10-111-2/+6
| | | | | | 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
* Fix crash from previous commit when using UNIX socketsDaniel P. Berrange2011-09-281-4/+6
| | | | | Code in the previous commit would use 'ghost' even when it was NULL, as with UNIX domain socket based connections.
* Fix hostname when XML gives a wildcard addressDaniel P. Berrange2011-09-191-0/+13
| | | | | | 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.
* Fix setting of window title with domain nameDaniel P. Berrange2011-09-161-3/+1
|
* Show status on all open windowsMarc-André Lureau2011-07-261-8/+7
| | | | | | The split virt_viewer_notebook_show_status() to virt_viewer_notebook_show_status_va() is unnecessary in the end, but it's more future-proof.
* Use app fullscreen property instead of app.start() argumentMarc-André Lureau2011-07-261-3/+3
|
* Status messages can be translatedMarc-André Lureau2011-07-261-6/+6
|
* Split VirtViewerApp window into VirtViewerWindowMarc-André Lureau2011-07-261-1/+1
|
* Inherit from VirtViewerApp for VirtViewerMarc-André Lureau2011-07-221-1469/+151
| | | | | | Make it a real GObject. The parts specific to virt should go in virt-viewer.c
* Turn VirtViewer into a VirtViewerApp objectMarc-André Lureau2011-07-221-532/+645
|
* Split virt_viewer_start() and virt_viewer_new()Marc-André Lureau2011-07-221-41/+54
|
* Split virt_viewer_activate() and virt_viewer_set_domain()Marc-André Lureau2011-07-221-11/+21
|
* Split virt_viewer_create_session() out of virt_viewer_extract_connect_info()Marc-André Lureau2011-07-221-16/+27
| | | | For future reusability
* Reorder _VirtViewer to make it easier to split with RemoteViewerMarc-André Lureau2011-07-221-24/+17
|
* Extract scheme in virt_viewer_extract_host()Marc-André Lureau2011-07-221-2/+11
| | | | Needed for remote-viewer.
* Annotate unused variablesDaniel P. Berrange2011-07-121-2/+2
|
* Fix leak of graphics type attribute from XMLDaniel P. Berrange2011-07-121-2/+3
|
* Split pull part of VirtViewerDisplay out into VirtViewerSessionDaniel P. Berrange2011-07-111-58/+91
| | | | | | To facilitate introduction of multi-head support, pull some of the VirtViewerDisplay class out into a new VirtViewerSession class.
* Avoid (null) in titlebarDaniel P. Berrange2011-07-111-7/+9
|
* Fix colour of status label to show up on black backgroundDaniel P. Berrange2011-07-111-0/+2
|
* Fill space on the display alignment with blackMarc-André Lureau2011-07-111-1/+3
|
* Add support for --fullscreen optionMarc-André Lureau2011-07-111-0/+21
|
* Remove circular dependancy between VirtViewerDisplay and VirtViewerDaniel P. Berrange2011-07-111-28/+248
| | | | | | | 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
* Turn VirtViewerDisplay into a proper Gtk widgetDaniel P. Berrange2011-07-111-54/+46
| | | | | Turn VirtViewerDisplay into a Gtk widget instead of just a GObject, by merging the functionality from VirtViewerAlign
* Update to optionally build with GTK3Daniel P. Berrange2011-07-111-1/+30
|
* Replace use of GtkAlignment with a custom align widgetDaniel P. Berrange2011-07-011-87/+12
| | | | | | | | | | 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
* Introduce standard naming convention to files & methodsDaniel P. Berrange2011-07-011-0/+1496
All source files must be named virt-viewer-XXXX All methods named virt_viewer_XXX