Permalink
Browse files

Only define gdk_cursor_unref if Gtk3 && GTK_DISABLE_DEPRICATED

  • Loading branch information...
1 parent 95ed836 commit a916f1f445866840a503b9e5df21b0991191b060 @lostcoder committed May 29, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 pan/gui/gtk_compat.h
View
2 pan/gui/gtk_compat.h
@@ -105,11 +105,13 @@ namespace
#if GTK_CHECK_VERSION(3,0,0)
#define GTK_OBJECT(w) w
typedef GtkWidget GtkObject;
+#ifdef GTK_DISABLE_DEPRECATED
void gdk_cursor_unref(GdkCursor *p)
{
g_object_unref(p);
}
#endif
+#endif
#ifdef __cplusplus
}

0 comments on commit a916f1f

Please sign in to comment.