Top |
You may need these tools if you are implementing GladeReadWidgetFunc and/or GladeWriteWidgetFunc on your GladeWidgetAdaptor to read and write widgets in custom ways
gboolean glade_xml_load_sym_from_node (GladeXmlNode *node_in
,GModule *module
,gchar *tagname
,gpointer *sym_location
);
gchar *
glade_xml_dump_from_context (GladeXmlContext *context
);
Dump the XML string from the context.
GList * glade_xml_get_property_targetable_versions (GladeXmlNode *node_in
,const gchar *name
);
Get the list of targetable versions for a property
gboolean glade_xml_get_property_version (GladeXmlNode *node_in
,const gchar *name
,guint16 *major
,guint16 *minor
);
GladeXmlNode * glade_xml_search_child (GladeXmlNode *node
,const gchar *name
);
GladeXmlNode * glade_xml_search_child_required (GladeXmlNode *tree
,const gchar *name
);
just a small wrapper around glade_xml_search_child that displays an error if the child was not found
gchar *
glade_xml_get_content (GladeXmlNode *node_in
);
Gets a string containing the content of node_in
.
void glade_xml_set_content (GladeXmlNode *node_in
,const gchar *content
);
Sets the content of node
to content
.
gboolean glade_xml_get_value_int (GladeXmlNode *node_in
,const gchar *name
,int *val
);
Gets an integer value for a node either carried as an attribute or as the content of a child.
gboolean glade_xml_get_value_int_required (GladeXmlNode *node
,const gchar *name
,int *val
);
This is a wrapper around glade_xml_get_value_int()
, only it emits
a g_warning()
if node
did not contain the requested tag
gchar * glade_xml_get_value_string (GladeXmlNode *node
,const gchar *name
);
gchar * glade_xml_get_value_string_required (GladeXmlNode *node
,const gchar *name
,const gchar *xtra_info
);
gboolean glade_xml_get_boolean (GladeXmlNode *node
,const gchar *name
,gboolean _default
);
void glade_xml_set_value (GladeXmlNode *node_in
,const gchar *name
,const gchar *val
);
Sets the property name
in node_in
to val
gchar * glade_xml_get_property_string_required (GladeXmlNode *node_in
,const gchar *name
,const gchar *xtra
);
gchar * glade_xml_get_property_string (GladeXmlNode *node_in
,const gchar *name
);
gboolean glade_xml_get_property_boolean (GladeXmlNode *node_in
,const gchar *name
,gboolean _default
);
gdouble glade_xml_get_property_double (GladeXmlNode *node_in
,const gchar *name
,gdouble _default
);
gint glade_xml_get_property_int (GladeXmlNode *node_in
,const gchar *name
,gint _default
);
void glade_xml_node_set_property_string (GladeXmlNode *node_in
,const gchar *name
,const gchar *string
);
Set a property as a string in the node_in
. Note that NULL
string
value
Are simply ignored and not written in the XML.
void glade_xml_node_set_property_boolean (GladeXmlNode *node_in
,const gchar *name
,gboolean value
);
GladeXmlNode * glade_xml_node_new (GladeXmlContext *context
,const gchar *name
);
GladeXmlNode * glade_xml_node_new_comment (GladeXmlContext *context
,const gchar *comment
);
gboolean glade_xml_node_verify (GladeXmlNode *node_in
,const gchar *name
);
This is a wrapper around glade_xml_node_verify_silent()
, only it emits
a g_warning()
if node_in
has a name different than name
.
gboolean glade_xml_node_verify_silent (GladeXmlNode *node_in
,const gchar *name
);
void glade_xml_node_append_child (GladeXmlNode *node
,GladeXmlNode *child
);
GladeXmlNode *
glade_xml_node_next_with_comments (GladeXmlNode *node_in
);
GladeXmlNode *
glade_xml_node_get_children_with_comments
(GladeXmlNode *node
);
GladeXmlNode * glade_xml_node_add_next_sibling (GladeXmlNode *node
,GladeXmlNode *new_node
);
GladeXmlNode * glade_xml_node_add_prev_sibling (GladeXmlNode *node
,GladeXmlNode *new_node
);
GladeXmlNode *
glade_xml_node_prev_with_comments (GladeXmlNode *node_in
);
GladeXmlNode * glade_xml_doc_new_comment (GladeXmlDoc *doc
,const gchar *comment
);
GladeXmlDoc *
glade_xml_doc_ref (GladeXmlDoc *doc
);
Increases the reference of the GladeXmlDoc.
void
glade_xml_doc_unref (GladeXmlDoc *doc
);
Decreases the reference of the GladeXmlDoc.
GladeXmlContext * glade_xml_context_new (GladeXmlDoc *doc
,const gchar *name_space
);
void
glade_xml_context_free (GladeXmlContext *context
);
Frees the memory allocated by GladeXmlContext.
GladeXmlContext * glade_xml_context_new_from_path (const gchar *full_path
,const gchar *nspace
,const gchar *root_name
);
Creates a new GladeXmlContext from the given path.
GladeXmlDoc *
glade_xml_context_get_doc (GladeXmlContext *context
);
Get the GladeXmlDoc this context
refers to.