summaryrefslogtreecommitdiff
path: root/libview/ev-view-presentation.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-view-presentation.c')
-rw-r--r--libview/ev-view-presentation.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 5d5e56ad..8f16675e 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -904,6 +904,7 @@ ev_view_presentation_set_cursor (EvViewPresentation *pview,
EvViewCursor view_cursor)
{
GtkWidget *widget;
+ GdkDisplay *display;
GdkCursor *cursor;
if (pview->cursor == view_cursor)
@@ -915,9 +916,10 @@ ev_view_presentation_set_cursor (EvViewPresentation *pview,
pview->cursor = view_cursor;
- cursor = ev_view_cursor_new (gtk_widget_get_display (widget), view_cursor);
+ display = gtk_widget_get_display (widget);
+ cursor = ev_view_cursor_new (display, view_cursor);
gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
- gdk_flush ();
+ gdk_display_flush (display);
if (cursor)
g_object_unref (cursor);
}