[pan2: 23/23] Only define gdk_cursor_unref if Gtk3 && GTK_DISABLE_DEPRICATED
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2: 23/23] Only define gdk_cursor_unref if Gtk3 && GTK_DISABLE_DEPRICATED
- Date: Sun, 29 May 2011 13:05:29 +0000 (UTC)
commit a916f1f445866840a503b9e5df21b0991191b060
Author: K. Haley <haleykd users sf net>
Date: Sat May 28 23:17:44 2011 -0600
Only define gdk_cursor_unref if Gtk3 && GTK_DISABLE_DEPRICATED
pan/gui/gtk_compat.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pan/gui/gtk_compat.h b/pan/gui/gtk_compat.h
index 1628cae..c4c5b29 100644
--- a/pan/gui/gtk_compat.h
+++ b/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
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]