summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-26 00:45:48 +0200
committerraveit65 <[email protected]>2016-05-26 01:51:49 +0200
commit90de1c2897d66c4161ab13abd9ee4be428e11366 (patch)
treedb491dc3e90364c012605fa3d0848683a778ce01 /src
parent761903e8782a005a51961b4e3b1d6cc51b9889a6 (diff)
downloadengrampa-90de1c2897d66c4161ab13abd9ee4be428e11366.tar.bz2
engrampa-90de1c2897d66c4161ab13abd9ee4be428e11366.tar.xz
Gtk3 dlg-package-installer: do not use deprecated gdk_cursor_new
Diffstat (limited to 'src')
-rw-r--r--src/dlg-package-installer.c4
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);