diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-10-27 14:45:29 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-10-30 16:29:14 +0200 |
commit | 56dd8bb3d5594d9caffda23400f7bd64c94e5a4c (patch) | |
tree | e0d57d0f92c95323681367f7a5773efdfb829baf /src/nautilus-main.c | |
parent | 2d702e1eeb7f9a8ad1286db39f5088bf39f1229c (diff) | |
download | nautilus-56dd8bb3d5594d9caffda23400f7bd64c94e5a4c.tar.gz |
application: move other init/cleanup functions in the app class
Instead of mixing them between nautilus-main and nautilus-application
Diffstat (limited to 'src/nautilus-main.c')
-rw-r--r-- | src/nautilus-main.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/nautilus-main.c b/src/nautilus-main.c index 1f8c58a10..6d4e88315 100644 --- a/src/nautilus-main.c +++ b/src/nautilus-main.c @@ -293,18 +293,6 @@ main (int argc, char *argv[]) /* Initialize the services that we use. */ LIBXML_TEST_VERSION - /* Initialize preferences. This is needed to create the - * global GSettings objects. - */ - nautilus_global_preferences_init (); - -#if 0 - /* exit_with_last_window being FALSE, nautilus can run without window. */ - exit_with_last_window = - g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_EXIT_WITH_LAST_WINDOW); -#endif - application = NULL; - /* Do either the self-check or the real work. */ if (perform_self_check) { #ifndef NAUTILUS_OMIT_SELF_CHECK @@ -326,13 +314,11 @@ main (int argc, char *argv[]) retval = g_application_run (G_APPLICATION (application), argc, argv); + + g_object_unref (application); } - nautilus_icon_info_clear_caches (); - g_object_unref (application); eel_debug_shut_down (); - nautilus_application_save_accel_map (NULL); - return EXIT_SUCCESS; } |