[empathy] empathy_call_window_fullscreen_set_cursor_visible: clean up function



commit a277446bfd4a3a351e32b7704f5cb0dec109c17f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Sep 16 13:47:03 2010 +0200

    empathy_call_window_fullscreen_set_cursor_visible: clean up function

 src/empathy-call-window-fullscreen.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-call-window-fullscreen.c
index 7827cdb..966d49a 100644
--- a/src/empathy-call-window-fullscreen.c
+++ b/src/empathy-call-window-fullscreen.c
@@ -68,17 +68,17 @@ empathy_call_window_fullscreen_set_cursor_visible (
     gboolean show_cursor)
 {
   EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs);
+  GdkWindow *window;
 
   if (priv->video_widget == NULL)
     return;
 
+  window = gtk_widget_get_window (priv->video_widget);
+
   if (!show_cursor)
-    {
-      gdk_window_set_cursor (gtk_widget_get_window (priv->video_widget),
-          gdk_cursor_new (GDK_BLANK_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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]