summaryrefslogtreecommitdiff
path: root/libview/ev-jobs.c
diff options
context:
space:
mode:
authorrootavish <[email protected]>2014-07-23 00:18:47 +0530
committerrootavish <[email protected]>2014-07-23 00:18:47 +0530
commitb219a4a96ed7f38bf3de46bff790b139955bd927 (patch)
tree2b343eca1700182dd1696c617e074be237b0e3bb /libview/ev-jobs.c
parent529473758fee66ac2fb0f2c89e4298789d183d5b (diff)
downloadatril-b219a4a96ed7f38bf3de46bff790b139955bd927.tar.bz2
atril-b219a4a96ed7f38bf3de46bff790b139955bd927.tar.xz
Cleaned some code, added select-all functionality
Select all functionality to select all content from the webview. Cleaned ev-jobs.c, it had a lot of unused code.
Diffstat (limited to 'libview/ev-jobs.c')
-rw-r--r--libview/ev-jobs.c21
1 files changed, 4 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);
}