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/select-context.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/select-context.cpp') diff --git a/src/select-context.cpp b/src/select-context.cpp index 70955c969..37d0e79ec 100644 --- a/src/select-context.cpp +++ b/src/select-context.cpp @@ -229,11 +229,19 @@ sp_select_context_dispose(GObject *object) sc->_describer = NULL; if (CursorSelectDragging) { +#if GTK_CHECK_VERSION(3,0,0) + g_object_unref(CursorSelectDragging); +#else gdk_cursor_unref (CursorSelectDragging); +#endif CursorSelectDragging = NULL; } if (CursorSelectMouseover) { +#if GTK_CHECK_VERSION(3,0,0) + g_object_unref(CursorSelectMouseover); +#else gdk_cursor_unref (CursorSelectMouseover); +#endif CursorSelectMouseover = NULL; } -- cgit v1.2.3