[yelp] [libyelp] Load the top page without a page ID for info documents
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [libyelp] Load the top page without a page ID for info documents
- Date: Tue, 27 Apr 2010 16:05:15 +0000 (UTC)
commit 9562d018fe61aa5805fc25d1a318fb228bc004ad
Author: Shaun McCance <shaunm gnome org>
Date: Tue Apr 27 09:56:12 2010 -0500
[libyelp] Load the top page without a page ID for info documents
libyelp/yelp-document.c | 2 +-
libyelp/yelp-info-document.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index af93cc6..aec4e7f 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -339,7 +339,7 @@ yelp_document_set_page_id (YelpDocument *document,
hash_replace (document->priv->page_ids, id, g_strdup (page_id));
- if (id != NULL && !g_str_equal (id, page_id)) {
+ if (id == NULL || !g_str_equal (id, page_id)) {
GSList *reqs, *cur;
reqs = hash_lookup (document->priv->reqs_by_page_id, id);
for (cur = reqs; cur != NULL; cur = cur->next) {
diff --git a/libyelp/yelp-info-document.c b/libyelp/yelp-info-document.c
index 13358a3..5fb609d 100644
--- a/libyelp/yelp-info-document.c
+++ b/libyelp/yelp-info-document.c
@@ -270,6 +270,10 @@ transform_chunk_ready (YelpTransform *transform,
yelp_document_signal (YELP_DOCUMENT (info),
chunk_id,
+ YELP_DOCUMENT_SIGNAL_INFO,
+ NULL);
+ yelp_document_signal (YELP_DOCUMENT (info),
+ chunk_id,
YELP_DOCUMENT_SIGNAL_CONTENTS,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]