summaryrefslogtreecommitdiff
path: root/libyelp/yelp-simple-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-simple-document.c
parent08d483195898b7fc54bcfe985bc2799df619d293 (diff)
downloadyelp-70bc039b40482243830363e54f87b6a49647ee30.tar.gz
libyelp: All the hooks in place for search stuff
Diffstat (limited to 'libyelp/yelp-simple-document.c')
-rw-r--r--libyelp/yelp-simple-document.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libyelp/yelp-simple-document.c b/libyelp/yelp-simple-document.c
index de62a9ba..8f2dadc9 100644
--- a/libyelp/yelp-simple-document.c
+++ b/libyelp/yelp-simple-document.c
@@ -166,8 +166,13 @@ YelpDocument *
yelp_simple_document_new (YelpUri *uri)
{
YelpSimpleDocument *document;
+ gchar *doc_uri;
- document = (YelpSimpleDocument *) g_object_new (YELP_TYPE_SIMPLE_DOCUMENT, NULL);
+ doc_uri = yelp_uri_get_document_uri (uri);
+ document = (YelpSimpleDocument *) g_object_new (YELP_TYPE_SIMPLE_DOCUMENT,
+ "document-uri", doc_uri,
+ NULL);
+ g_free (doc_uri);
document->priv->file = yelp_uri_get_file (uri);