]> git.0d.be Git - empathy.git/blobdiff - src/empathy-call-window-fullscreen.c
Move should_create_salut_account to local-xmpp-assistant-widget
[empathy.git] / src / empathy-call-window-fullscreen.c
index 75542e021ffcdd914d7a19e7521d2b5b02501d31..1b993458bb93b6e79484c5fd1be36e02cd7e1379 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * empathy-call-window-fullscreen.c - Source for EmpathyCallWindowFullscreen
- * Copyright (C) 2009 Collabora Ltd.
+ * Copyright (C) 2009-2011 Collabora Ltd.
  *
  * Some code is based on the Totem Movie Player, especially
  * totem-fullscreen.c which has the following copyright:
@@ -68,14 +68,17 @@ empathy_call_window_fullscreen_set_cursor_visible (
     gboolean show_cursor)
 {
   EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs);
+  GdkWindow *window;
 
-  if (priv->video_widget != NULL && !show_cursor)
-    {
-      gdk_window_set_cursor (gtk_widget_get_window (priv->video_widget),
-          gdk_cursor_new (GDK_BLANK_CURSOR));
-    }
+  if (priv->video_widget == NULL)
+    return;
+
+  window = gtk_widget_get_window (priv->video_widget);
+
+  if (!show_cursor)
+    gdk_window_set_cursor (window, gdk_cursor_new (GDK_BLANK_CURSOR));
   else
-    gdk_window_set_cursor (gtk_widget_get_window (priv->video_widget), NULL);
+    gdk_window_set_cursor (window, NULL);
 }
 
 static void