[yelp/yelp-3-0] [yelp-mallard-document] Add page IDs of pages that exist
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [yelp/yelp-3-0] [yelp-mallard-document] Add page IDs of pages that exist
- Date: Mon, 19 Oct 2009 16:58:08 +0000 (UTC)
commit 90650182b496e2a8b57c24b5950d59491250c11e
Author: Shaun McCance <shaunm gnome org>
Date: Sun Oct 18 16:42:24 2009 -0500
[yelp-mallard-document] Add page IDs of pages that exist
libyelp/yelp-mallard-document.c | 3 +++
libyelp/yelp-view.c | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index 75d7f78..fb69c5e 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -204,6 +204,7 @@ mallard_request_page (YelpDocument *document,
gboolean handled;
debug_print (DB_FUNCTION, "entering\n");
+ debug_print (DB_ARG, " page_id=\"%s\"\n", page_id);
if (page_id == NULL)
page_id = "index";
@@ -307,6 +308,8 @@ mallard_think (YelpMallardDocument *mallard)
mallard_page_data_free (page_data);
} else {
g_mutex_lock (priv->mutex);
+ yelp_document_set_page_id ((YelpDocument *) mallard,
+ page_data->page_id, page_data->page_id);
g_hash_table_insert (priv->pages_hash, page_data->page_id, page_data);
g_mutex_unlock (priv->mutex);
}
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 9e9f220..e56b0d6 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -406,6 +406,7 @@ document_callback (YelpDocument *document,
gchar *real_uri, *mime_type, *page_id;
real_uri = yelp_uri_get_canonical_uri (priv->uri);
page_id = yelp_uri_get_page_id (priv->uri);
+ debug_print (DB_ARG, " document.uri.page_id=\"%s\"\n", page_id);
mime_type = yelp_document_get_mime_type (document, page_id);
contents = yelp_document_read_contents (document, page_id);
webkit_web_view_load_string (WEBKIT_WEB_VIEW (view),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]