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

Hans de Goede hdegoede at redhat.com
Mon Mar 25 22:34:42 UTC 2013


Hi,

Ack for patches 1-3

Will reply to patch 4 separately

Regards,

Hans


On 03/25/2013 10:26 PM, Marc-André Lureau wrote:
> ---
>   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
>
>




More information about the virt-tools-list mailing list