diff options
author | Christian Persch <chpe@src.gnome.org> | 2009-01-30 18:40:17 (GMT) |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2009-01-30 18:40:17 (GMT) |
commit | 2d8aad40e1916911b773f1cfdd93c961feabf807 (patch) | |
tree | f87dabab6d4ba15446fd5cbe2625e0f18357cf3d /thumbnailer/evince-thumbnailer.c | |
parent | 1f9a1db557a629d68bba06d7b4b4379127c34f4d (diff) |
A libdocument/ev-init.[ch]: Add single init/shutdown method. Bug #569117.
* evince-document.h:
* libdocument/Makefile.am:
A libdocument/ev-init.[ch]: Add single init/shutdown method. Bug
#569117.
* libdocument/ev-backends-manager.c: (_ev_backends_manager_init):
* libdocument/ev-backends-manager.h:
* libdocument/ev-debug.c: (_ev_debug_init), (_ev_debug_shutdown):
* libdocument/ev-debug.h:
* libdocument/ev-file-helpers.c: (_ev_file_helpers_init),
(_ev_file_helpers_shutdown):
* libdocument/ev-file-helpers.h: Make these init/shutdown methods
private.
* properties/ev-properties-main.c: (nautilus_module_initialize),
(nautilus_module_shutdown):
* shell/main.c: (main):
* thumbnailer/evince-thumbnailer.c: (main): Use the new single
init/shutdown method.
svn path=/trunk/; revision=3391
Diffstat (limited to 'thumbnailer/evince-thumbnailer.c')
-rw-r--r-- | thumbnailer/evince-thumbnailer.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c index ec72f16..217210b 100644 --- a/thumbnailer/evince-thumbnailer.c +++ b/thumbnailer/evince-thumbnailer.c @@ -163,7 +163,8 @@ main (int argc, char *argv[]) if (!g_thread_supported ()) g_thread_init (NULL); - ev_backends_manager_init (); + if (!ev_init ()) + return -1; file = g_file_new_for_commandline_arg (input); uri = g_file_get_uri (file); @@ -173,13 +174,13 @@ main (int argc, char *argv[]) g_free (uri); if (!document) { - ev_backends_manager_shutdown (); + ev_shutdown (); return -2; } if (!EV_IS_DOCUMENT_THUMBNAILS (document)) { g_object_unref (document); - ev_backends_manager_shutdown (); + ev_shutdown (); return -2; } @@ -198,19 +199,19 @@ main (int argc, char *argv[]) gtk_main (); g_object_unref (document); - ev_backends_manager_shutdown (); + ev_shutdown (); return data.success ? 0 : -2; } if (!evince_thumbnail_pngenc_get (document, output, size)) { g_object_unref (document); - ev_backends_manager_shutdown (); + ev_shutdown (); return -2; } g_object_unref (document); - ev_backends_manager_shutdown (); + ev_shutdown (); return 0; } |