Commit f5489137 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑 Committed by Paolo Bacchilega

window: use gdk_cursor_new_for_display()

gdk_cursor_new() has been deprecated since GDK 3.16 and
gdk_cursor_new_for_display() is now the recommended function. This
commit replaces the deprecated call.
parent 5697a988
......@@ -3887,12 +3887,16 @@ file_motion_notify_callback (GtkWidget *widget,
if (window->priv->list_hover_path != NULL)
cursor = gdk_cursor_new (GDK_HAND2);
cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (window)),
cursor = NULL;
gdk_window_set_cursor (event->window, cursor);
if (cursor != NULL)
g_object_unref (cursor);
/* only redraw if the hover row has changed */
if (!(last_hover_path == NULL && window->priv->list_hover_path == NULL) &&
(!(last_hover_path != NULL && window->priv->list_hover_path != NULL) ||
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment