diff options
-rw-r--r-- | src/dlg-package-installer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c index 240924a..1ab467e 100644 --- a/src/dlg-package-installer.c +++ b/src/dlg-package-installer.c @@ -166,8 +166,10 @@ install_packages (InstallerData *idata) window = gtk_widget_get_window (GTK_WIDGET (idata->window)); if (window != NULL) { GdkCursor *cursor; + GdkDisplay *display; - cursor = gdk_cursor_new (GDK_WATCH); + display = gtk_widget_get_display (GTK_WIDGET (idata)); + cursor = gdk_cursor_new_for_display (display, GDK_WATCH); gdk_window_set_cursor (window, cursor); #if GTK_CHECK_VERSION (3, 0, 0) g_object_unref (cursor); |