diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-06-26 08:37:44 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-06-26 08:37:44 +0000 |
commit | a59d6685a634b7adad43af864399f6d4f547be24 (patch) | |
tree | 7fa5ddca796620ea7bf91240a14b3fa29864d237 /libnautilus-extensions/nautilus-xml-extensions.c | |
parent | 173c750acb572249eebdd0eacd84642732de99c3 (diff) | |
download | nautilus-a59d6685a634b7adad43af864399f6d4f547be24.tar.gz |
implemented an xml-based general theme mechanism, and used it for the
implemented an xml-based general theme mechanism, and used it
for the sidebar backgrounds, which isn't quite working yet. Added
xml files to our themes.
Diffstat (limited to 'libnautilus-extensions/nautilus-xml-extensions.c')
-rw-r--r-- | libnautilus-extensions/nautilus-xml-extensions.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-xml-extensions.c b/libnautilus-extensions/nautilus-xml-extensions.c index ebc59a70e..830d00555 100644 --- a/libnautilus-extensions/nautilus-xml-extensions.c +++ b/libnautilus-extensions/nautilus-xml-extensions.c @@ -71,6 +71,26 @@ nautilus_xml_get_child_by_name_and_property (xmlNodePtr parent, return NULL; } +/* return a child of the passed-in node with a matching name */ + +xmlNodePtr +nautilus_xml_get_child_by_name (xmlNodePtr parent, + const char *child_name) +{ + xmlNodePtr child; + + if (parent == NULL) { + return NULL; + } + for (child = nautilus_xml_get_children (parent); child != NULL; child = child->next) { + if (strcmp (child->name, child_name) == 0) { + return child; + } + } + return NULL; +} + + xmlNodePtr nautilus_xml_get_root_child_by_name_and_property (xmlDocPtr document, const char *child_name, |