From 51e1ae36121928f84940b8e8dcb317f87157933b Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 18 Jan 2009 10:28:37 +0000 Subject: Remove dest, mode and search_string from EvJobLoad since they are not 2009-01-18 Carlos Garcia Campos * shell/ev-jobs.[ch]: (ev_job_load_dispose), (ev_job_load_new): * shell/ev-window.c: (ev_window_load_job_cb), (ev_window_load_job_cb), (ev_window_open_uri), (ev_window_reload_local), (ev_window_dispose): Remove dest, mode and search_string from EvJobLoad since they are not really needed by the job, but for the window. svn path=/trunk/; revision=3347 --- (limited to 'shell/ev-jobs.c') diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index a952243..102cd90 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -803,16 +803,6 @@ ev_job_load_dispose (GObject *object) job->password = NULL; } - if (job->dest) { - g_object_unref (job->dest); - job->dest = NULL; - } - - if (job->search_string) { - g_free (job->search_string); - job->search_string = NULL; - } - (* G_OBJECT_CLASS (ev_job_load_parent_class)->dispose) (object); } @@ -871,21 +861,14 @@ ev_job_load_class_init (EvJobLoadClass *class) } EvJob * -ev_job_load_new (const gchar *uri, - EvLinkDest *dest, - EvWindowRunMode mode, - const gchar *search_string) +ev_job_load_new (const gchar *uri) { EvJobLoad *job; ev_debug_message (DEBUG_JOBS, "%s", uri); job = g_object_new (EV_TYPE_JOB_LOAD, NULL); - job->uri = g_strdup (uri); - job->dest = dest ? g_object_ref (dest) : NULL; - job->mode = mode; - job->search_string = search_string ? g_strdup (search_string) : NULL; return EV_JOB (job); } -- cgit v0.9.1