diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-02-08 22:15:28 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-02-08 22:15:28 -0500 |
commit | 70bc039b40482243830363e54f87b6a49647ee30 (patch) | |
tree | ee4cf97648278c2504e61a2de29e56a3cc1d4014 /libyelp/yelp-man-document.c | |
parent | 08d483195898b7fc54bcfe985bc2799df619d293 (diff) | |
download | yelp-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.c | 7 |
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); |