[gtk+] gtkbox: Move private functions to private header
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkbox: Move private functions to private header
- Date: Sun, 2 Oct 2011 20:30:55 +0000 (UTC)
commit 8985ce3b7245df120659f3537214a16b144392fb
Author: Javier JardÃn <jjardon gnome org>
Date: Sun Oct 2 21:21:49 2011 +0100
gtkbox: Move private functions to private header
gtk/Makefile.am | 1 +
gtk/gtkbbox.c | 1 +
gtk/gtkbox.c | 1 +
gtk/gtkbox.h | 7 -------
gtk/gtkboxprivate.h | 34 ++++++++++++++++++++++++++++++++++
gtk/gtkdialog.c | 1 +
gtk/gtkstatusbar.c | 4 +++-
7 files changed, 41 insertions(+), 8 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 8a11903..c82cb56 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 57d87af..bdecd58 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 b3b4db9..f9792a8 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 906aa2e..55a08e9 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 0000000..9a4d463
--- /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 ad32047..076261c 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 3a7df17..8548ec2 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]