From 92a8546a868b616dcd3eeb0812c4a9ce5eb85f2c Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Mon, 9 Apr 2012 18:19:31 +0100 Subject: Replace deprecated gdk_cursor_unref (bzr r11196) --- src/knot.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/knot.cpp') diff --git a/src/knot.cpp b/src/knot.cpp index fe99eb4e1..4da9f01ee 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -245,7 +245,11 @@ static void sp_knot_dispose(GObject *object) for (gint i = 0; i < SP_KNOT_VISIBLE_STATES; i++) { if (knot->cursor[i]) { +#if GTK_CHECK_VERSION(3,0,0) + g_object_unref(knot->cursor[i]); +#else gdk_cursor_unref(knot->cursor[i]); +#endif knot->cursor[i] = NULL; } } -- cgit v1.2.3