[gitg] Fix building with 2.20



commit 1c4b66dcf2b05017088ee59b3f3b43764c3ca3fb
Author: Garrett Regier <alias301 gmail com>
Date:   Sun May 30 12:04:41 2010 -0700

    Fix building with 2.20

 gitg/Makefile.am        |    3 ++-
 gitg/gitg-dnd.c         |    1 +
 gitg/gseal-gtk-compat.h |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index 73e79b9..7b7dc19 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -44,7 +44,8 @@ NOINST_H_FILES = 			\
 	gitg-settings.h			\
 	gitg-types.h			\
 	gitg-utils.h			\
-	gitg-window.h
+	gitg-window.h			\
+	gseal-gtk-compat.h
 
 gitg_SOURCES = 				\
 	$(BUILT_SOURCES)		\
diff --git a/gitg/gitg-dnd.c b/gitg/gitg-dnd.c
index d1fa827..947c764 100644
--- a/gitg/gitg-dnd.c
+++ b/gitg/gitg-dnd.c
@@ -29,6 +29,7 @@
 #include <string.h>
 #include "gitg-window.h"
 #include "gitg-branch-actions.h"
+#include "gseal-gtk-compat.h"
 
 enum
 {
diff --git a/gitg/gseal-gtk-compat.h b/gitg/gseal-gtk-compat.h
new file mode 100644
index 0000000..789174b
--- /dev/null
+++ b/gitg/gseal-gtk-compat.h
@@ -0,0 +1,34 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+/*
+ *  Copyright (C) 2009 Thomas H.P. Andersen <phomes gmail com>,
+ *                2009 Javier Jardón <jjardon gnome org>
+ *
+ *  This runtime is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Lesser General Public License as published by
+ *  the Free Software Foundation; either version 2.1, or (at your option)
+ *  any later version.
+ *
+ *  This runtime is distributed in the hope runtime it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public License
+ *  along with this runtime; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef GSEAL_GTK_COMPAT_H
+#define GSEAL_GTK_COMPAT_H
+
+G_BEGIN_DECLS
+
+#if !GTK_CHECK_VERSION (2, 21, 0)
+#define gdk_drag_context_list_targets(context)		((context)->targets)
+#endif /* GTK < 2.22.0 */
+
+G_END_DECLS
+
+#endif /* GSEAL_GTK_COMPAT_H */
+
+/* ex:ts=8:noet: */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]