[gtk+] gdk: Ignore headers for declared functions



commit dd3c56d783644d2ea597f761fa95047514d10cb8
Author: Benjamin Otte <otte redhat com>
Date:   Fri Oct 5 16:46:36 2012 +0200

    gdk: Ignore headers for declared functions

 gdk/Makefile.am     |    3 ++-
 gdk/gdkdeprecated.c |    2 ++
 gdk/gdkkeyuni.c     |    1 +
 gdk/gdkscreen.c     |    1 +
 4 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index b6b74ce..8c811b5 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -341,7 +341,8 @@ gdkmarshalers.h: @REBUILD@ gdkmarshalers.list
 	&& mv gdkmarshalers-h.tmp gdkmarshalers.h \
 	|| ( rm -f gdkmarshalers-h.tmp && exit 1)
 gdkmarshalers.c: @REBUILD@ gdkmarshalers.list
-	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_gdk_marshal $(srcdir)/gdkmarshalers.list --body > gdkmarshalers-c.tmp	\
+	$(AM_V_GEN) (echo "#include \"gdkmarshalers.h\""; \
+	 $(GLIB_GENMARSHAL) --prefix=_gdk_marshal $(srcdir)/gdkmarshalers.list --body) > gdkmarshalers-c.tmp	\
 	&& mv gdkmarshalers-c.tmp gdkmarshalers.c \
 	|| ( rm -f gdkmarshalers-c.tmp && exit 1 )
 
diff --git a/gdk/gdkdeprecated.c b/gdk/gdkdeprecated.c
index ddb3c86..c735143 100644
--- a/gdk/gdkdeprecated.c
+++ b/gdk/gdkdeprecated.c
@@ -24,6 +24,8 @@
 #include "config.h"
 
 #include "gdkdisplay.h"
+#include "gdkmain.h"
+#include "gdkwindow.h"
 
 /**
  * gdk_pointer_ungrab:
diff --git a/gdk/gdkkeyuni.c b/gdk/gdkkeyuni.c
index c951ad8..a8c1c34 100644
--- a/gdk/gdkkeyuni.c
+++ b/gdk/gdkkeyuni.c
@@ -24,6 +24,7 @@
 
 #include "config.h"
 
+#include "gdkkeys.h"
 #include "gdktypes.h"
 
 
diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c
index 94cd89b..93fef6d 100644
--- a/gdk/gdkscreen.c
+++ b/gdk/gdkscreen.c
@@ -21,6 +21,7 @@
 
 #include "config.h"
 
+#include "gdkinternals.h"
 #include "gdkscreenprivate.h"
 #include "gdkrectangle.h"
 #include "gdkwindow.h"



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