summaryrefslogtreecommitdiff
path: root/libyelp/yelp-man-document.c
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-02-08 22:15:28 -0500
committerShaun McCance <shaunm@gnome.org>2011-02-08 22:15:28 -0500
commit70bc039b40482243830363e54f87b6a49647ee30 (patch)
treeee4cf97648278c2504e61a2de29e56a3cc1d4014 /libyelp/yelp-man-document.c
parent08d483195898b7fc54bcfe985bc2799df619d293 (diff)
downloadyelp-70bc039b40482243830363e54f87b6a49647ee30.tar.gz
libyelp: All the hooks in place for search stuff
Diffstat (limited to 'libyelp/yelp-man-document.c')
-rw-r--r--libyelp/yelp-man-document.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libyelp/yelp-man-document.c b/libyelp/yelp-man-document.c
index f3c42a66..a49dfba0 100644
--- a/libyelp/yelp-man-document.c
+++ b/libyelp/yelp-man-document.c
@@ -209,10 +209,15 @@ yelp_man_document_new (YelpUri *uri)
{
YelpManDocument *man;
YelpManDocumentPrivate *priv;
+ gchar *doc_uri;
g_return_val_if_fail (uri != NULL, NULL);
- man = (YelpManDocument *) g_object_new (YELP_TYPE_MAN_DOCUMENT, NULL);
+ doc_uri = yelp_uri_get_document_uri (uri);
+ man = (YelpManDocument *) g_object_new (YELP_TYPE_MAN_DOCUMENT,
+ "document-uri", doc_uri,
+ NULL);
+ g_free (doc_uri);
priv = GET_PRIV (man);
priv->uri = g_object_ref (uri);