summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-properties-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r--src/file-manager/fm-properties-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index 13b40b27..4f5d3bf0 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -4063,9 +4063,11 @@ start_long_operation (FMPropertiesWindow *window)
{
if (window->details->long_operation_underway == 0) {
/* start long operation */
+ GdkDisplay *display;
GdkCursor * cursor;
- cursor = gdk_cursor_new (GDK_WATCH);
+ display = gtk_widget_get_display (GTK_WIDGET (window));
+ cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), cursor);
#if GTK_CHECK_VERSION(3,0,0)
g_object_unref (cursor);