diff options
author | Anders Carlsson <andersca@gnu.org> | 2002-01-08 09:41:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2002-01-08 09:41:19 +0000 |
commit | ab5fb6c7ba93a2f3d07dd6b0257b94fb77e1d77b (patch) | |
tree | 0552f577b4f591a38e7b961cbf7345f5fc82f6f4 /src/nautilus-main.c | |
parent | 81054a094cc71762420e7d3d913441f3969ed62e (diff) | |
download | nautilus-ab5fb6c7ba93a2f3d07dd6b0257b94fb77e1d77b.tar.gz |
Remove preferences calback in ::finalize.
2002-01-08 Anders Carlsson <andersca@gnu.org>
* src/nautilus-zoom-control.c (nautilus_zoom_control_finalize): Remove
preferences calback in ::finalize.
(nautilus_zoom_control_unload_images): Set image pointers to NULL after
unloading images.
* src/nautilus-window-menus.c: Remove some userlevel #defines.
* src/nautilus-switchable-search-bar.c
(nautilus_switchable_search_bar_finalize): Remove the preferences callback
in ::finalize instead of ::destroy.
* src/nautilus-switchable-navigation-bar.c: Create the search bar lazily.
Creating the search bar came up high on the profile when creating new windows,
and doing it lazily helps, especially when we don't have medusa support yet.
(nautilus_switchable_navigation_bar_finalize): Free details in ::finalize.
* src/nautilus-simple-search-bar.c (nautilus_simple_search_bar_finalize):
Free details in ::finalize.
(nautilus_simple_search_bar_destroy): Disable the undo stuff. Perhaps we could
call connect to "destroy" in nautilus_undo_set_up_nautilus_entry_for_undo
and call nautilus_undo_tear_down_nautilus_entry_for_undo there instead.
* src/nautilus-sidebar.c (nautilus_sidebar_init): Ref and sink the title tab.
(nautilus_sidebar_finalize): Move things from ::finalize to ::destroy.
* src/nautilus-preferences-dialog.c
(preferences_dialog_populate_themes_group): The image chooser isn't
broken anymore so we can enable it now.
* src/nautilus-main.c (main): Call gtk_main instead of bonobo_main
since bonobo_main is for non-gui apps and won't be affected by
gtk_main_quit.
* src/nautilus-location-bar.c: Destroy things in ::finalize
instead of in ::destroy.
* src/nautilus-profiler.c: Port to GtkTextView.
* src/nautilus-application.c (nautilus_application_new):
Call bonobo_generic_factory_construct_noreg so that we set
the IID.
(nautilus_application_destroy): Unref the undo manager
in ::destroy instead.
* libnautilus-private/nautilus-icon-container.c:
Use g_list_sort_with_data when sorting icons so we can get rid
of the hack_icon_container hack.
* libnautilus-private/nautilus-entry.c: Free details struct
in ::finalize instead of in ::destroy
* libnautilus-private/nautilus-icon-dnd.c
(confirm_switch_to_manual_layout): Compare with GTK_RESPONSE_YES.
* libnautilus-private/nautilus-file-operations.c
(confirm_empty_trash): Compare with GTK_RESPONSE_YES.
So now you know what I've been doing during christmas...
Diffstat (limited to 'src/nautilus-main.c')
-rw-r--r-- | src/nautilus-main.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nautilus-main.c b/src/nautilus-main.c index af537ddc1..085271df3 100644 --- a/src/nautilus-main.c +++ b/src/nautilus-main.c @@ -37,6 +37,7 @@ #include <X11/Xlib.h> #include <bonobo-activation/bonobo-activation.h> #include <bonobo/bonobo-main.h> +#include <bonobo/bonobo-ui-main.h> #include <dlfcn.h> #include <eel/eel-debug.h> #include <eel/eel-glib-extensions.h> @@ -196,11 +197,6 @@ main (int argc, char *argv[]) popt_context = g_value_get_pointer (&context_as_value); -#if GNOME2_CONVERSION_COMPLETE - gnomelib_register_popt_table (bonobo_activation_popt_options, - bonobo_activation_get_popt_table_name ()); -#endif - eel_setenv ("DISPLAY", DisplayString (GDK_DISPLAY ()), TRUE); /* Check for argument consistency. */ @@ -274,7 +270,7 @@ main (int argc, char *argv[]) geometry, args); if (is_event_loop_needed ()) { - bonobo_main (); + gtk_main (); } bonobo_object_unref (BONOBO_OBJECT (application)); } @@ -302,5 +298,5 @@ main (int argc, char *argv[]) execvp (argv[0], argv_copy); } - return bonobo_debug_shutdown (); + return bonobo_ui_debug_shutdown (); } |