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, see <http://www.gnu.org/licenses/>.
19 #ifndef __GTK_BUILDER_PRIVATE_H__
20 #define __GTK_BUILDER_PRIVATE_H__
22 #include "gtkbuilder.h"
51 GSList *packing_properties;
55 gchar *internal_child;
64 gboolean translatable;
74 gchar *connect_object_name;
85 GMarkupParser *parser;
94 const gchar *last_element;
99 GMarkupParseContext *ctx;
100 const gchar *filename;
102 GSList *custom_finalizers;
104 GSList *requested_objects; /* NULL if all the objects are requested */
105 gboolean inside_requested_object;
106 gint requested_object_level;
107 gint cur_object_level;
109 GHashTable *object_ids;
112 typedef GType (*GTypeGetFunc) (void);
114 /* Things only GtkBuilder should use */
115 void _gtk_builder_parser_parse_buffer (GtkBuilder *builder,
116 const gchar *filename,
119 gchar **requested_objs,
121 GObject * _gtk_builder_construct (GtkBuilder *builder,
124 void _gtk_builder_add_object (GtkBuilder *builder,
127 void _gtk_builder_add (GtkBuilder *builder,
128 ChildInfo *child_info);
129 void _gtk_builder_add_signals (GtkBuilder *builder,
131 void _gtk_builder_finish (GtkBuilder *builder);
132 void _free_signal_info (SignalInfo *info,
135 /* Internal API which might be made public at some point */
136 gboolean _gtk_builder_boolean_from_string (const gchar *string,
139 gboolean _gtk_builder_enum_from_string (GType type,
143 gboolean _gtk_builder_flags_from_string (GType type,
147 gchar * _gtk_builder_parser_translate (const gchar *domain,
148 const gchar *context,
150 gchar * _gtk_builder_get_resource_path (GtkBuilder *builder,
151 const gchar *string);
152 gchar * _gtk_builder_get_absolute_filename (GtkBuilder *builder,
153 const gchar *string);
155 void _gtk_builder_menu_start (ParserData *parser_data,
156 const gchar *element_name,
157 const gchar **attribute_names,
158 const gchar **attribute_values,
160 void _gtk_builder_menu_end (ParserData *parser_data);
163 #endif /* __GTK_BUILDER_PRIVATE_H__ */