Get the shell to unregister the components on exit again.

svn path=/trunk/; revision=10475
This commit is contained in:
Ettore Perazzoli
2001-06-25 08:29:35 +00:00
parent 57a9a15d42
commit d2f749b6ab
4 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,20 @@
2001-06-25 Ettore Perazzoli <ettore@ximian.com>
* main.c (no_views_left_cb): Call `e_shell_unregister_all()'.
* e-shell.c (e_shell_unregister_all): New.
2001-06-25 Ettore Perazzoli <ettore@ximian.com>
* evolution-test-component.c (timeout_callback_1): Make the
activity cancellable, so we can test the pop-up menu.
* e-activity-handler.c (show_cancellation_popup): New function to
show the "Cancel" pop-up for task widgets.
(task_widget_cancel_callback): Callback for the pop-up menu.
(task_widget_button_press_event_callback): Show the pop-up menu
when button 2 is pressed, if the activity is cancellable.
2001-06-25 Ettore Perazzoli <ettore@ximian.com>
* e-storage-set-view.c (convert_gdk_drag_action_to_corba): Remove

View File

@ -1357,9 +1357,12 @@ e_shell_unregister_all (EShell *shell)
g_return_if_fail (E_IS_SHELL (shell));
/* FIXME: This really really sucks. */
priv = shell->priv;
#error "Implement me"
gtk_object_unref (GTK_OBJECT (priv->component_registry));
priv->component_registry = NULL;
}

View File

@ -99,6 +99,8 @@ gboolean e_shell_restore_from_settings (EShell *shell);
void e_shell_destroy_all_views (EShell *shell);
void e_shell_unregister_all (EShell *shell);
void e_shell_component_maybe_crashed (EShell *shell,
const char *uri,
const char *type_name,

View File

@ -60,6 +60,8 @@ no_views_left_cb (EShell *shell, gpointer data)
destroyed. But refcounting is broken at present, so this is a
reasonable workaround for now. */
e_shell_unregister_all (shell);
bonobo_object_unref (BONOBO_OBJECT (shell));
gtk_main_quit ();