summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-10-02 21:21:49 +0100
committerJavier Jardón <jjardon@gnome.org>2011-10-02 21:30:42 +0100
commit8985ce3b7245df120659f3537214a16b144392fb (patch)
tree9f75269bcaf86d97a3b73e34349223d4875621fc
parentc5c392ddf9a96e09d2a539d094785156afa77e8e (diff)
downloadgtk+-8985ce3b7245df120659f3537214a16b144392fb.tar.gz
gtkbox: Move private functions to private header
-rw-r--r--gtk/Makefile.am1
-rw-r--r--gtk/gtkbbox.c1
-rw-r--r--gtk/gtkbox.c1
-rw-r--r--gtk/gtkbox.h7
-rw-r--r--gtk/gtkboxprivate.h34
-rw-r--r--gtk/gtkdialog.c1
-rw-r--r--gtk/gtkstatusbar.c4
7 files changed, 41 insertions, 8 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 8a11903b2d..c82cb56f16 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -390,6 +390,7 @@ gtk_private_h_sources = \
gtkappchooseronline.h \
gtkbindingsprivate.h \
gtkborderimageprivate.h \
+ gtkboxprivate.h \
gtkbuilderprivate.h \
gtkbuttonprivate.h \
gtkcellareaboxcontextprivate.h \
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 57d87afabe..bdecd58b65 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -53,6 +53,7 @@
#include "gtkbbox.h"
+#include "gtkboxprivate.h"
#include "gtkorientable.h"
#include "gtktypebuiltins.h"
#include "gtkprivate.h"
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index b3b4db9518..f9792a8e1b 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -80,6 +80,7 @@
#include "config.h"
#include "gtkbox.h"
+#include "gtkboxprivate.h"
#include "gtkorientable.h"
#include "gtksizerequest.h"
#include "gtktypebuiltins.h"
diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h
index 906aa2e9d7..55a08e9934 100644
--- a/gtk/gtkbox.h
+++ b/gtk/gtkbox.h
@@ -109,13 +109,6 @@ void gtk_box_set_child_packing (GtkBox *box,
guint padding,
GtkPackType pack_type);
-/* internal API */
-void _gtk_box_set_old_defaults (GtkBox *box);
-gboolean _gtk_box_get_spacing_set (GtkBox *box);
-void _gtk_box_set_spacing_set (GtkBox *box,
- gboolean spacing_set);
-GList *_gtk_box_get_children (GtkBox *box);
-
G_END_DECLS
#endif /* __GTK_BOX_H__ */
diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h
new file mode 100644
index 0000000000..9a4d463a4c
--- /dev/null
+++ b/gtk/gtkboxprivate.h
@@ -0,0 +1,34 @@
+/* GTK - The GIMP Toolkit
+ *
+ * Copyright (C) 2011 Javier Jardón
+ *
+ * This library 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 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that 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 library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_BOX_PRIVATE_H__
+#define __GTK_BOX_PRIVATE_H__
+
+G_BEGIN_DECLS
+
+
+void _gtk_box_set_old_defaults (GtkBox *box);
+gboolean _gtk_box_get_spacing_set (GtkBox *box);
+void _gtk_box_set_spacing_set (GtkBox *box,
+ gboolean spacing_set);
+GList *_gtk_box_get_children (GtkBox *box);
+
+
+G_END_DECLS
+
+#endif /* __GTK_BOX_PRIVATE_H__ */
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index ad32047a71..076261c900 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -35,6 +35,7 @@
#include "gtklabel.h"
#include "gtkmarshalers.h"
#include "gtkbox.h"
+#include "gtkboxprivate.h"
#include "gtkmain.h"
#include "gtkintl.h"
#include "gtkbindings.h"
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index 3a7df1736e..8548ec2f14 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -27,10 +27,12 @@
#include "config.h"
+#include "gtkstatusbar.h"
+
+#include "gtkboxprivate.h"
#include "gtkframe.h"
#include "gtklabel.h"
#include "gtkmarshalers.h"
-#include "gtkstatusbar.h"
#include "gtkwindow.h"
#include "gtkprivate.h"
#include "gtkintl.h"