diff options
author | raveit65 <[email protected]> | 2016-05-25 21:56:44 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-05-26 01:51:03 +0200 |
commit | 05ab3f2cd3b73b3c9c089a918aad4b4e83a587ac (patch) | |
tree | cade6293f40e618673ecc48c0468f9cc39d6b187 /src | |
parent | 090b9ce9c7ca86787478700470aae87951c4976c (diff) | |
download | engrampa-05ab3f2cd3b73b3c9c089a918aad4b4e83a587ac.tar.bz2 engrampa-05ab3f2cd3b73b3c9c089a918aad4b4e83a587ac.tar.xz |
Gtk3 fr-window: do not use deprecated gdk_cursor_new
Diffstat (limited to 'src')
-rw-r--r-- | src/fr-window.c | 5 |
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; |