From a277446bfd4a3a351e32b7704f5cb0dec109c17f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Sep 2010 13:47:03 +0200 Subject: empathy_call_window_fullscreen_set_cursor_visible: clean up function --- src/empathy-call-window-fullscreen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-call-window-fullscreen.c index 7827cdb76..966d49add 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 -- cgit v1.2.3