2 * Copyright (C) 2006-2007 Async Open Source,
3 * Johan Dahlin <jdahlin@async.com.br>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GTK_BUILDER_PRIVATE_H__
22 #define __GTK_BUILDER_PRIVATE_H__
24 #include "gtkbuilder.h"
47 GSList *packing_properties;
51 gchar *internal_child;
60 gboolean translatable;
70 gchar *connect_object_name;
81 GMarkupParser *parser;
90 const gchar *last_element;
95 GMarkupParseContext *ctx;
96 const gchar *filename;
98 GSList *custom_finalizers;
100 GSList *requested_objects; /* NULL if all the objects are requested */
101 gboolean inside_requested_object;
102 gint requested_object_level;
103 gint cur_object_level;
105 GHashTable *object_ids;
108 typedef GType (*GTypeGetFunc) (void);
110 /* Things only GtkBuilder should use */
111 void _gtk_builder_parser_parse_buffer (GtkBuilder *builder,
112 const gchar *filename,
115 gchar **requested_objs,
117 GObject * _gtk_builder_construct (GtkBuilder *builder,
120 void _gtk_builder_add (GtkBuilder *builder,
121 ChildInfo *child_info);
122 void _gtk_builder_add_signals (GtkBuilder *builder,
124 void _gtk_builder_finish (GtkBuilder *builder);
125 void _free_signal_info (SignalInfo *info,
128 /* Internal API which might be made public at some point */
129 gboolean _gtk_builder_boolean_from_string (const gchar *string,
132 gboolean _gtk_builder_enum_from_string (GType type,
136 gboolean _gtk_builder_flags_from_string (GType type,
140 gchar * _gtk_builder_parser_translate (const gchar *domain,
141 const gchar *context,
143 gchar * _gtk_builder_get_absolute_filename (GtkBuilder *builder,
144 const gchar *string);
146 #endif /* __GTK_BUILDER_PRIVATE_H__ */