[totem] backend: Hide the mouse when the controls are hidden
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Hide the mouse when the controls are hidden
- Date: Fri, 17 Jan 2014 14:11:05 +0000 (UTC)
commit 18e7498e468bdad193e7dc59ca9df25b2a79179b
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 17 14:56:27 2014 +0100
backend: Hide the mouse when the controls are hidden
src/backend/bacon-video-widget.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index ab37144..c893aaf 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -722,10 +722,12 @@ set_controls_visibility (BaconVideoWidget *bvw,
static void
toggle_controls (BaconVideoWidget *bvw)
{
+ gboolean value = TRUE;
+
if (clutter_actor_get_opacity (bvw->priv->controls) != 0)
- set_controls_visibility (bvw, FALSE);
- else
- set_controls_visibility (bvw, TRUE);
+ value = FALSE;
+ set_controls_visibility (bvw, value);
+ bacon_video_widget_set_show_cursor (bvw, value);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]