[yelp] [yelp-mallard-document] Cache revision tags in editor mode
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [yelp-mallard-document] Cache revision tags in editor mode
- Date: Thu, 1 Apr 2010 22:15:56 +0000 (UTC)
commit 167f5d68b12c7ab3b31029d49ea39d6bdbaedbe1
Author: Shaun McCance <shaunm gnome org>
Date: Thu Apr 1 14:20:13 2010 -0500
[yelp-mallard-document] Cache revision tags in editor mode
Revision tags are necessary for linkdiv badges, so we put them into
the internal cache structure in editor mode.
libyelp/yelp-mallard-document.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index da1b22f..8925674 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -573,6 +573,7 @@ mallard_page_data_info (MallardPageData *page_data,
xmlNodePtr cache_node)
{
xmlNodePtr child;
+ gboolean editor_mode = yelp_settings_get_editor_mode (yelp_settings_get_default ());
for (child = info_node->children; child; child = child->next) {
if (xmlStrEqual (child->name, BAD_CAST "info")) {
@@ -614,6 +615,9 @@ mallard_page_data_info (MallardPageData *page_data,
else if (xmlStrEqual (child->name, BAD_CAST "link")) {
xmlAddChild (cache_node, xmlCopyNode (child, 1));
}
+ else if (xmlStrEqual (child->name, BAD_CAST "revision")) {
+ xmlAddChild (cache_node, xmlCopyNode (child, 1));
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]