gtkbox: Move private functions to private header

This commit is contained in:
Javier Jardón
2011-10-02 21:21:49 +01:00
parent c5c392ddf9
commit 8985ce3b72
7 changed files with 41 additions and 8 deletions

View File

@@ -390,6 +390,7 @@ gtk_private_h_sources = \
gtkappchooseronline.h \
gtkbindingsprivate.h \
gtkborderimageprivate.h \
gtkboxprivate.h \
gtkbuilderprivate.h \
gtkbuttonprivate.h \
gtkcellareaboxcontextprivate.h \

View File

@@ -53,6 +53,7 @@
#include "gtkbbox.h"
#include "gtkboxprivate.h"
#include "gtkorientable.h"
#include "gtktypebuiltins.h"
#include "gtkprivate.h"

View File

@@ -80,6 +80,7 @@
#include "config.h"
#include "gtkbox.h"
#include "gtkboxprivate.h"
#include "gtkorientable.h"
#include "gtksizerequest.h"
#include "gtktypebuiltins.h"

View File

@@ -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__ */

34
gtk/gtkboxprivate.h Normal file
View File

@@ -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__ */

View File

@@ -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"

View File

@@ -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"