[libgepub: 10/10] Fixes in gepub-widget to work with the last merge



commit f4291e8af4cefe760dec2af1c98b7441280b36b4
Author: Daniel Garcia Moreno <danigm wadobo com>
Date:   Mon Jun 13 09:38:21 2016 +0200

    Fixes in gepub-widget to work with the last merge

 libgepub/gepub-doc.c    |    2 +-
 libgepub/gepub-widget.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgepub/gepub-doc.c b/libgepub/gepub-doc.c
index 0b535c2..cf5c8c3 100644
--- a/libgepub/gepub-doc.c
+++ b/libgepub/gepub-doc.c
@@ -413,7 +413,7 @@ gepub_doc_get_resource_mime (GepubDoc *doc, gchar *path)
 
     while (keys) {
         gres = ((GepubResource*)g_hash_table_lookup (doc->resources, keys->data));
-        if (!strcmp (gres->uri, v))
+        if (!strcmp (gres->uri, path))
             break;
         keys = keys->next;
     }
diff --git a/libgepub/gepub-widget.c b/libgepub/gepub-widget.c
index ae91c38..25cd15c 100644
--- a/libgepub/gepub-widget.c
+++ b/libgepub/gepub-widget.c
@@ -50,7 +50,7 @@ resource_callback (WebKitURISchemeRequest *request, gpointer user_data)
     uri = g_strdup (webkit_uri_scheme_request_get_uri (request));
     // removing "epub://"
     path = uri + 7;
-    contents = gepub_doc_get_resource_v (widget->doc, path, &stream_length);
+    contents = gepub_doc_get_resource (widget->doc, path, &stream_length);
     mime = gepub_doc_get_resource_mime (widget->doc, path);
 
     if (!mime) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]