diff options
author | raveit65 <[email protected]> | 2016-05-26 00:45:48 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-05-26 01:51:49 +0200 |
commit | 90de1c2897d66c4161ab13abd9ee4be428e11366 (patch) | |
tree | db491dc3e90364c012605fa3d0848683a778ce01 | |
parent | 761903e8782a005a51961b4e3b1d6cc51b9889a6 (diff) | |
download | engrampa-90de1c2897d66c4161ab13abd9ee4be428e11366.tar.bz2 engrampa-90de1c2897d66c4161ab13abd9ee4be428e11366.tar.xz |
Gtk3 dlg-package-installer: do not use deprecated gdk_cursor_new
-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); |