[virt-tools-list] [PATCH virt-viewer 1/4] app: add get_fullscreen_auto_conf()
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Mar 25 21:26:53 UTC 2013
---
src/virt-viewer-app.c | 10 +++++++++-
src/virt-viewer-app.h | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 90cbf92..7461b3c 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1254,7 +1254,7 @@ virt_viewer_app_get_property (GObject *object, guint property_id,
break;
case PROP_FULLSCREEN_AUTO_CONF:
- g_value_set_boolean(value, priv->fullscreen_auto_conf);
+ g_value_set_boolean(value, virt_viewer_app_get_fullscreen_auto_conf(self));
break;
default:
@@ -1716,6 +1716,14 @@ virt_viewer_app_get_fullscreen(VirtViewerApp *self)
return self->priv->fullscreen;
}
+gboolean
+virt_viewer_app_get_fullscreen_auto_conf(VirtViewerApp *self)
+{
+ g_return_val_if_fail(VIRT_VIEWER_IS_APP(self), FALSE);
+
+ return self->priv->fullscreen_auto_conf;
+}
+
static void
virt_viewer_app_set_fullscreen(VirtViewerApp *self, gboolean fullscreen)
{
diff --git a/src/virt-viewer-app.h b/src/virt-viewer-app.h
index 6fc523b..b2ef7e1 100644
--- a/src/virt-viewer-app.h
+++ b/src/virt-viewer-app.h
@@ -97,6 +97,7 @@ GHashTable* virt_viewer_app_get_windows(VirtViewerApp *self);
gboolean virt_viewer_app_get_enable_accel(VirtViewerApp *self);
VirtViewerSession* virt_viewer_app_get_session(VirtViewerApp *self);
gboolean virt_viewer_app_get_fullscreen(VirtViewerApp *app);
+gboolean virt_viewer_app_get_fullscreen_auto_conf(VirtViewerApp *app);
G_END_DECLS
--
1.8.1.1.439.g50a6b54
More information about the virt-tools-list
mailing list