summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-04 09:03:25 +0200
committerraveit65 <[email protected]>2018-05-10 22:45:31 +0200
commit3168191efb8b4407012ef26ecd338b0d88bec9b1 (patch)
tree6fbdf2e0d8276184d9842b92ba251dc3ea829406 /libview/ev-view.c
parent135e208287fdb864f7e536ff3a1a161a939e6102 (diff)
downloadatril-3168191efb8b4407012ef26ecd338b0d88bec9b1.tar.bz2
atril-3168191efb8b4407012ef26ecd338b0d88bec9b1.tar.xz
libview: replace deprecated gdk_flush
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index a7748b70..61505728 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -8047,6 +8047,7 @@ ev_view_copy_link_address (EvView *view,
static void
ev_view_set_cursor (EvView *view, EvViewCursor new_cursor)
{
+ GdkDisplay *display;
GdkCursor *cursor = NULL;
GtkWidget *widget;
GdkWindow *bin_window;
@@ -8059,9 +8060,10 @@ ev_view_set_cursor (EvView *view, EvViewCursor new_cursor)
bin_window = gtk_widget_get_window (GTK_WIDGET (view));
widget = gtk_widget_get_toplevel (GTK_WIDGET (view));
- cursor = ev_view_cursor_new (gtk_widget_get_display (widget), new_cursor);
+ display = gtk_widget_get_display (widget);
+ cursor = ev_view_cursor_new (display, new_cursor);
gdk_window_set_cursor (bin_window, cursor);
- gdk_flush ();
+ gdk_display_flush (display);
if (cursor)
g_object_unref (cursor);
}