From 4a3ac19d1365cb87a31eecea4759484673fad667 Mon Sep 17 00:00:00 2001 From: rootavish Date: Sun, 20 Jul 2014 16:08:07 +0530 Subject: 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. --- libview/ev-jobs.c | 2 +- libview/ev-web-view.c | 6 ++++++ libview/ev-web-view.h | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'libview') 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__ */ -- cgit v1.2.1