summaryrefslogtreecommitdiff
path: root/gsearchtool/src/gsearchtool-callbacks.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-07 11:10:10 +0200
committerraveit65 <[email protected]>2016-09-01 08:21:46 +0200
commit7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6 (patch)
tree4a025beb91143d2a41863861b79083cde1a20a63 /gsearchtool/src/gsearchtool-callbacks.c
parent8819ce43d5dcdfd102fd63f7a5ae7713a9e25b04 (diff)
downloadmate-utils-7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6.tar.bz2
mate-utils-7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6.tar.xz
avoid deprecated gdk_cursor_new ()
Diffstat (limited to 'gsearchtool/src/gsearchtool-callbacks.c')
-rw-r--r--gsearchtool/src/gsearchtool-callbacks.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gsearchtool/src/gsearchtool-callbacks.c b/gsearchtool/src/gsearchtool-callbacks.c
index 9b13e471..49dd5b7a 100644
--- a/gsearchtool/src/gsearchtool-callbacks.c
+++ b/gsearchtool/src/gsearchtool-callbacks.c
@@ -1421,11 +1421,14 @@ file_motion_notify_cb (GtkWidget *widget,
GdkEventMotion *event,
gpointer user_data)
{
- GSearchWindow * gsearch = user_data;
+ GSearchWindow * gsearch = user_data;
+ GdkDisplay *display;
GdkCursor * cursor;
GtkTreePath * last_hover_path;
GtkTreeIter iter;
+ display = gtk_widget_get_display (GTK_WIDGET (user_data));
+
if (gsearch->is_search_results_single_click_to_activate == FALSE) {
return FALSE;
}
@@ -1442,7 +1445,7 @@ file_motion_notify_cb (GtkWidget *widget,
NULL, NULL, NULL);
if (gsearch->search_results_hover_path != NULL) {
- cursor = gdk_cursor_new (GDK_HAND2);
+ cursor = gdk_cursor_new_for_display (display, GDK_HAND2);
}
else {
cursor = NULL;