[empathy] empathy_call_window_fullscreen_set_cursor_visible: early return if video widget is NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_call_window_fullscreen_set_cursor_visible: early return if video widget is NULL
- Date: Mon, 27 Sep 2010 13:29:21 +0000 (UTC)
commit 6d4cd24b722c8fc9ca63e24447b40892b84054de
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Sep 16 13:38:05 2010 +0200
empathy_call_window_fullscreen_set_cursor_visible: early return if video widget is NULL
src/empathy-call-window-fullscreen.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-call-window-fullscreen.c
index 75542e0..7827cdb 100644
--- a/src/empathy-call-window-fullscreen.c
+++ b/src/empathy-call-window-fullscreen.c
@@ -69,7 +69,10 @@ empathy_call_window_fullscreen_set_cursor_visible (
{
EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs);
- if (priv->video_widget != NULL && !show_cursor)
+ if (priv->video_widget == NULL)
+ return;
+
+ if (!show_cursor)
{
gdk_window_set_cursor (gtk_widget_get_window (priv->video_widget),
gdk_cursor_new (GDK_BLANK_CURSOR));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]