diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-01-18 10:28:37 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2009-01-18 10:28:37 (GMT) |
commit | 51e1ae36121928f84940b8e8dcb317f87157933b (patch) | |
tree | e12ff92c6a9a4fcd11af390bfbc9cd58504ea52b /shell/ev-jobs.c | |
parent | eb91327d993b9a0faa6e15c8ab93183cfed169eb (diff) |
Remove dest, mode and search_string from EvJobLoad since they are not
2009-01-18 Carlos Garcia Campos <carlosgc@gnome.org>
* 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
Diffstat (limited to 'shell/ev-jobs.c')
-rw-r--r-- | shell/ev-jobs.c | 19 |
1 files changed, 1 insertions, 18 deletions
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); } |