diff options
Diffstat (limited to 'gsearchtool/src')
-rw-r--r-- | gsearchtool/src/gsearchtool-callbacks.c | 7 |
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; |