summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorrootavish <[email protected]>2014-07-20 16:08:07 +0530
committerrootavish <[email protected]>2014-07-20 16:08:07 +0530
commit4a3ac19d1365cb87a31eecea4759484673fad667 (patch)
tree3aeb0f092e04fc18445ced4757d1944352cb636a /libview
parente0535b0e61cc56ec62d32518c03a42836f5256e6 (diff)
downloadatril-4a3ac19d1365cb87a31eecea4759484673fad667.tar.bz2
atril-4a3ac19d1365cb87a31eecea4759484673fad667.tar.xz
Active properties dialog, other actions
Properties dialog for epub documents, will some basic properties. Also set toolbar and menu sensitivity for the actions available in epub, will add more(find) once I write the module. Also inverted colors needs to be done with CSS or the like.
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-jobs.c2
-rw-r--r--libview/ev-web-view.c6
-rw-r--r--libview/ev-web-view.h3
3 files changed, 10 insertions, 1 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 4596b58a..44881516 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -968,7 +968,7 @@ ev_job_web_thumbnail_new (EvDocument *document,
{
EvJobWebThumbnail *job;
- ev_debug_message (DEBUG_JOBS, "%d", page);
+ ev_debug_message (DEBUG_JOBS, "%s", webpage);
job = g_object_new (EV_TYPE_JOB_WEB_THUMBNAIL, NULL);
diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c
index b88d09ff..136e1e96 100644
--- a/libview/ev-web-view.c
+++ b/libview/ev-web-view.c
@@ -353,3 +353,9 @@ ev_web_view_find_previous(EvWebView *webview)
{
}
+
+gboolean
+ev_web_view_get_has_selection(EvWebView *webview)
+{
+ return webkit_web_view_has_selection(WEBKIT_WEB_VIEW(webview));
+} \ No newline at end of file
diff --git a/libview/ev-web-view.h b/libview/ev-web-view.h
index 55736871..19d6c8a1 100644
--- a/libview/ev-web-view.h
+++ b/libview/ev-web-view.h
@@ -62,6 +62,9 @@ void ev_web_view_handle_link (EvWebView *webview, EvLink* link);
void ev_web_view_find_next (EvWebView *webview);
void ev_web_view_find_previous (EvWebView *webview);
+/*Selection*/
+gboolean ev_web_view_get_has_selection (EvWebView *webview);
+
G_END_DECLS
#endif /* __EV_WEB_VIEW_H__ */