diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-16 19:38:05 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-27 21:28:48 +0800 |
commit | 6d4cd24b722c8fc9ca63e24447b40892b84054de (patch) | |
tree | cd4a8d00599fe8c127bdb5af3cd12fbd78c57ef3 | |
parent | 8b10e78f1885104417d39041c506a3a5bfe985eb (diff) | |
download | gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.tar gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.tar.gz gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.tar.bz2 gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.tar.lz gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.tar.xz gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.tar.zst gsoc2013-empathy-6d4cd24b722c8fc9ca63e24447b40892b84054de.zip |
empathy_call_window_fullscreen_set_cursor_visible: early return if video widget is NULL
-rw-r--r-- | 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 75542e021..7827cdb76 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)); |