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-simple-document.c | |
parent | 08d483195898b7fc54bcfe985bc2799df619d293 (diff) | |
download | yelp-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.c | 7 |
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); |