[yelp] [yelp-uri] Recognize Mallard docs by index.page.stub in editor mode
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [yelp-uri] Recognize Mallard docs by index.page.stub in editor mode
- Date: Wed, 2 Jun 2010 05:51:35 +0000 (UTC)
commit 4c8152d1bd1dabeefda9b4e1f8454e7868b59172
Author: Shaun McCance <shaunm gnome org>
Date: Wed Jun 2 00:51:11 2010 -0500
[yelp-uri] Recognize Mallard docs by index.page.stub in editor mode
libyelp/yelp-uri.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 8e0c414..ee39fbb 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -1074,6 +1074,19 @@ resolve_gfile (YelpUri *uri, const gchar *hash)
priv->frag_id = g_strdup (splithash[1]);
}
}
+ else if (yelp_settings_get_editor_mode (yelp_settings_get_default ())) {
+ g_object_unref (child);
+ child = g_file_get_child (priv->gfile, "index.page.stub");
+ if (g_file_query_exists (child, NULL)) {
+ priv->tmptype = YELP_URI_DOCUMENT_TYPE_MALLARD;
+ if (splithash) {
+ if (priv->page_id == NULL)
+ priv->page_id = g_strdup (splithash[0]);
+ if (priv->frag_id == NULL && splithash[0])
+ priv->frag_id = g_strdup (splithash[1]);
+ }
+ }
+ }
g_object_unref (child);
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]