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-docbook-document.c | |
parent | 08d483195898b7fc54bcfe985bc2799df619d293 (diff) | |
download | yelp-70bc039b40482243830363e54f87b6a49647ee30.tar.gz |
libyelp: All the hooks in place for search stuff
Diffstat (limited to 'libyelp/yelp-docbook-document.c')
-rw-r--r-- | libyelp/yelp-docbook-document.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libyelp/yelp-docbook-document.c b/libyelp/yelp-docbook-document.c index d4b4cec9..29155d9e 100644 --- a/libyelp/yelp-docbook-document.c +++ b/libyelp/yelp-docbook-document.c @@ -204,10 +204,15 @@ yelp_docbook_document_new (YelpUri *uri) { YelpDocbookDocument *docbook; YelpDocbookDocumentPrivate *priv; + gchar *doc_uri; g_return_val_if_fail (uri != NULL, NULL); - docbook = (YelpDocbookDocument *) g_object_new (YELP_TYPE_DOCBOOK_DOCUMENT, NULL); + doc_uri = yelp_uri_get_document_uri (uri); + docbook = (YelpDocbookDocument *) g_object_new (YELP_TYPE_DOCBOOK_DOCUMENT, + "document-uri", doc_uri, + NULL); + g_free (doc_uri); priv = GET_PRIV (docbook); priv->uri = g_object_ref (uri); |