aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-call-window-fullscreen.c10
1 files changed, 5 insertions, 5 deletions
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