[yelp/wip/amigadave/webkit2-port: 20/53] yelp-uri: Use 'index' as default page for help: uris when resolving a xref
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/wip/amigadave/webkit2-port: 20/53] yelp-uri: Use 'index' as default page for help: uris when resolving a xref
- Date: Mon, 22 Jun 2015 13:58:58 +0000 (UTC)
commit 1302228acbc69996837ab4046a84371e26885379
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Thu Aug 30 13:18:14 2012 +0200
yelp-uri: Use 'index' as default page for help: uris when resolving a xref
If a xref: uri for a help: document has no page, use index as the
default one like resolve_help_uri does.
libyelp/yelp-uri.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 662da24..c36bd6f 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -1192,7 +1192,10 @@ resolve_xref_uri (YelpUri *uri)
}
if (priv->page_id && priv->page_id[0] == '\0') {
g_free (priv->page_id);
- priv->page_id = NULL;
+ if (g_str_has_prefix (priv->docuri, "help:"))
+ priv->page_id = g_strdup ("index");
+ else
+ priv->page_id = NULL;
}
if (priv->page_id &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]