summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-app.c
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-03-18 17:49:38 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-03-23 19:32:02 +0100
commit1bcd8d0fe6df553f087d11b539a59e128a2a350b (patch)
tree6198cf3b2846ce059fd6a0e5a6434894e8d7a544 /src/virt-viewer-app.c
parentaec2248cf86cacfc8950f48ccf0fc8fcaa261908 (diff)
downloadvirt-viewer-1bcd8d0fe6df553f087d11b539a59e128a2a350b.tar.gz
virt-viewer-1bcd8d0fe6df553f087d11b539a59e128a2a350b.tar.xz
virt-viewer-1bcd8d0fe6df553f087d11b539a59e128a2a350b.zip
Exit normally when canceling dialog
This applies for: libvirt authentication dialog (e.g. virt-viewer --attach guest) 'recent connection' dialog (e.g. remote-viewer) 'vm choose' dialog when connecting without specifying the vm name This is done by using a new GError VIRT_VIEWER_ERROR_CANCELLED.
Diffstat (limited to 'src/virt-viewer-app.c')
-rw-r--r--src/virt-viewer-app.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 86c0248..dd0361f 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1700,13 +1700,13 @@ virt_viewer_app_dispose (GObject *object)
}
static gboolean
-virt_viewer_app_default_start(VirtViewerApp *self)
+virt_viewer_app_default_start(VirtViewerApp *self, GError **error G_GNUC_UNUSED)
{
virt_viewer_window_show(self->priv->main_window);
return TRUE;
}
-gboolean virt_viewer_app_start(VirtViewerApp *self)
+gboolean virt_viewer_app_start(VirtViewerApp *self, GError **error)
{
VirtViewerAppClass *klass;
@@ -1715,7 +1715,7 @@ gboolean virt_viewer_app_start(VirtViewerApp *self)
g_return_val_if_fail(!self->priv->started, TRUE);
- self->priv->started = klass->start(self);
+ self->priv->started = klass->start(self, error);
return self->priv->started;
}