[PATCH virt-viewer 1/4] app: add get_fullscreen_auto_conf()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux