summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorrootavish <[email protected]>2014-07-19 10:47:43 +0530
committerrootavish <[email protected]>2014-07-19 10:47:43 +0530
commit46fce038996fa84784df775d0b2e941228388b66 (patch)
treecf8360de1cc5a97cf5fbb5b56e0451b44cb4898c /libdocument
parent812a3c3d777a74b6e72fc402c17a5b861a712040 (diff)
downloadatril-46fce038996fa84784df775d0b2e941228388b66.tar.bz2
atril-46fce038996fa84784df775d0b2e941228388b66.tar.xz
Thumbnails for all documents
Now other problems with webkit. After much fidgeting I was able to resolve the previous problems of threads. However, now there is a different webkit error.
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-document-thumbnails.c10
-rw-r--r--libdocument/ev-document-thumbnails.h7
2 files changed, 15 insertions, 2 deletions
diff --git a/libdocument/ev-document-thumbnails.c b/libdocument/ev-document-thumbnails.c
index 9482e09e..61eb2fe8 100644
--- a/libdocument/ev-document-thumbnails.c
+++ b/libdocument/ev-document-thumbnails.c
@@ -61,3 +61,13 @@ ev_document_thumbnails_get_dimensions (EvDocumentThumbnails *document,
iface->get_dimensions (document, rc, width, height);
}
+GtkWidget*
+ev_document_thumbnails_get_webview_with_rendered_document(EvDocumentThumbnails *document,
+ gchar *webpageuri)
+{
+ EvDocumentThumbnailsInterface *iface;
+ g_return_val_if_fail (EV_IS_DOCUMENT_THUMBNAILS (document),NULL);
+
+ iface = EV_DOCUMENT_THUMBNAILS_GET_IFACE(document);
+ return iface->render_in_webview(webpageuri);
+} \ No newline at end of file
diff --git a/libdocument/ev-document-thumbnails.h b/libdocument/ev-document-thumbnails.h
index 1a7cb9fd..a94a810d 100644
--- a/libdocument/ev-document-thumbnails.h
+++ b/libdocument/ev-document-thumbnails.h
@@ -26,7 +26,7 @@
#define EV_DOCUMENT_THUMBNAILS_H
#include <gdk-pixbuf/gdk-pixbuf.h>
-
+#include <gtk/gtk.h>
#include "ev-render-context.h"
G_BEGIN_DECLS
@@ -52,6 +52,8 @@ struct _EvDocumentThumbnailsInterface {
EvRenderContext *rc,
gint *width,
gint *height);
+
+ GtkWidget *(*render_in_webview) (gchar* webpage);
};
GType ev_document_thumbnails_get_type (void) G_GNUC_CONST;
@@ -63,7 +65,8 @@ void ev_document_thumbnails_get_dimensions (EvDocumentThumbnails *document
EvRenderContext *rc,
gint *width,
gint *height);
-
+GtkWidget* ev_document_thumbnails_get_webview_with_rendered_document (EvDocumentThumbnails *document,
+ gchar* webpageuri);
G_END_DECLS
#endif /* EV_DOCUMENT_THUMBNAILS_H */