summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-jobs.c21
-rw-r--r--libview/ev-web-view.c6
-rw-r--r--libview/ev-web-view.h1
3 files changed, 11 insertions, 17 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 38fe6a0f..884baabc 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -896,24 +896,11 @@ ev_job_web_thumbnail_dispose (GObject *object)
ev_debug_message (DEBUG_JOBS, "%s (%p)", job->page, job);
- if(job->offscreenwindow) {
- gtk_widget_destroy(job->offscreenwindow);
- job->offscreenwindow = NULL;
- }
-
- if(job->webview) {
- job->webview = NULL;
- }
-
if(job->page) {
g_free(job->page);
job->page = NULL;
}
- if (&job->screenlock)
- {
- g_rw_lock_clear (&job->screenlock);
- }
(* G_OBJECT_CLASS (ev_job_web_thumbnail_parent_class)->dispose) (object);
}
@@ -972,9 +959,9 @@ ev_job_web_thumbnail_class_init (EvJobWebThumbnailClass *class)
}
EvJob *
-ev_job_web_thumbnail_new (EvDocument *document,
- gboolean *completed,
- gchar *webpage,
+ev_job_web_thumbnail_new (EvDocument *document,
+ gboolean *completed,
+ gchar *webpage,
cairo_surface_t **surface)
{
EvJobWebThumbnail *job;
@@ -989,7 +976,7 @@ ev_job_web_thumbnail_new (EvDocument *document,
job->surface = surface;
job->page = g_strdup(webpage);
- g_rw_lock_init (&job->screenlock);
+
return EV_JOB (job);
}
diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c
index 136e1e96..fbfbad02 100644
--- a/libview/ev-web-view.c
+++ b/libview/ev-web-view.c
@@ -358,4 +358,10 @@ gboolean
ev_web_view_get_has_selection(EvWebView *webview)
{
return webkit_web_view_has_selection(WEBKIT_WEB_VIEW(webview));
+}
+
+void
+ev_web_view_select_all(EvWebView *webview)
+{
+ webkit_web_view_select_all(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 19d6c8a1..eaa2ef3f 100644
--- a/libview/ev-web-view.h
+++ b/libview/ev-web-view.h
@@ -64,6 +64,7 @@ void ev_web_view_find_previous (EvWebView *webview);
/*Selection*/
gboolean ev_web_view_get_has_selection (EvWebView *webview);
+void ev_web_view_select_all (EvWebView *webview);
G_END_DECLS