[gtk+] box: Fix includes so hbox/vbox compile warning-free



commit 4f9fc252dafd014bb87ee4251fc0f4e009bbda4f
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 5 18:48:29 2011 -0700

    box: Fix includes so hbox/vbox compile warning-free
    
    And make sure most of the code is included before undeffing deprecated
    code.

 gtk/gtkboxprivate.h |    2 ++
 gtk/gtkhbox.c       |    4 ++--
 gtk/gtkvbox.c       |    1 +
 3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h
index 9a4d463..9628d3c 100644
--- a/gtk/gtkboxprivate.h
+++ b/gtk/gtkboxprivate.h
@@ -19,6 +19,8 @@
 #ifndef __GTK_BOX_PRIVATE_H__
 #define __GTK_BOX_PRIVATE_H__
 
+#include "gtkbox.h"
+
 G_BEGIN_DECLS
 
 
diff --git a/gtk/gtkhbox.c b/gtk/gtkhbox.c
index 021fb22..cdfada5 100644
--- a/gtk/gtkhbox.c
+++ b/gtk/gtkhbox.c
@@ -26,10 +26,10 @@
 
 #include "config.h"
 
+#include "gtkboxprivate.h"
+#include "gtkorientable.h"
 #undef GTK_DISABLE_DEPRECATED
 #include "gtkhbox.h"
-#include "gtkorientable.h"
-#include "gtkboxprivate.h"
 
 
 /**
diff --git a/gtk/gtkvbox.c b/gtk/gtkvbox.c
index 9251291..e3515eb 100644
--- a/gtk/gtkvbox.c
+++ b/gtk/gtkvbox.c
@@ -26,6 +26,7 @@
 
 #include "config.h"
 
+#include "gtkboxprivate.h"
 #include "gtkorientable.h"
 #undef GTK_DISABLE_DEPRECATED
 #include "gtkvbox.h"



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