summaryrefslogtreecommitdiff
path: root/src/dlg-package-installer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlg-package-installer.c')
-rw-r--r--src/dlg-package-installer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index fbe692a..34ea680 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -169,7 +169,11 @@ install_packages (InstallerData *idata)
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (window, cursor);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
proxy = g_dbus_proxy_new_sync (connection,