summaryrefslogtreecommitdiff
path: root/src/fr-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-25 21:56:44 +0200
committerraveit65 <[email protected]>2016-05-26 01:51:03 +0200
commit05ab3f2cd3b73b3c9c089a918aad4b4e83a587ac (patch)
treecade6293f40e618673ecc48c0468f9cc39d6b187 /src/fr-window.c
parent090b9ce9c7ca86787478700470aae87951c4976c (diff)
downloadengrampa-05ab3f2cd3b73b3c9c089a918aad4b4e83a587ac.tar.bz2
engrampa-05ab3f2cd3b73b3c9c089a918aad4b4e83a587ac.tar.xz
Gtk3 fr-window: do not use deprecated gdk_cursor_new
Diffstat (limited to 'src/fr-window.c')
-rw-r--r--src/fr-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 1adf401..bd07206 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -3874,6 +3874,7 @@ file_motion_notify_callback (GtkWidget *widget,
FrWindow *window = user_data;
GdkCursor *cursor;
GtkTreePath *last_hover_path;
+ GdkDisplay *display;
GtkTreeIter iter;
if (! window->priv->single_click)
@@ -3889,8 +3890,10 @@ file_motion_notify_callback (GtkWidget *widget,
&window->priv->list_hover_path,
NULL, NULL, NULL);
+ display = gtk_widget_get_display (GTK_WIDGET (widget));
+
if (window->priv->list_hover_path != NULL)
- cursor = gdk_cursor_new (GDK_HAND2);
+ cursor = gdk_cursor_new_for_display (display, GDK_HAND2);
else
cursor = NULL;