[gitg] Fix GSEAL compat with gtk 2.20.1
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix GSEAL compat with gtk 2.20.1
- Date: Sat, 12 Jun 2010 10:17:58 +0000 (UTC)
commit fabe70134fe5126c7ec8a1526934ac3b7ea3b1be
Author: Guilhem Bonnefille <guilhem bonnefille gmail com>
Date: Sat Jun 12 12:17:20 2010 +0200
Fix GSEAL compat with gtk 2.20.1
GTK_WIDGET_MAPPED and GTK_WIDGET_REALIZED declared obsolete in gtk 2.20.
gdk_drag_context_list_targets introduced in gtk 2.22.
gitg/gseal-gtk-compat.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gitg/gseal-gtk-compat.h b/gitg/gseal-gtk-compat.h
index 8d34e62..27b6e4a 100644
--- a/gitg/gseal-gtk-compat.h
+++ b/gitg/gseal-gtk-compat.h
@@ -23,11 +23,13 @@
G_BEGIN_DECLS
-#if !GTK_CHECK_VERSION (2, 21, 0)
+#if !GTK_CHECK_VERSION (2, 22, 0)
#define gdk_drag_context_list_targets(context) ((context)->targets)
+#endif /* GTK < 2.22.0 */
+#if !GTK_CHECK_VERSION (2, 20, 0)
#define gtk_widget_get_mapped(widget) (GTK_WIDGET_MAPPED ((widget)))
#define gtk_widget_get_realized(widget) (GTK_WIDGET_REALIZED ((widget)))
-#endif /* GTK < 2.22.0 */
+#endif /* GTK < 2.20.0 */
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]