diff options
author | Michael Meeks <michael@helixcode.com> | 2000-11-14 21:19:04 +0800 |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 2000-11-14 21:19:04 +0800 |
commit | 795541456d41b75534bc639cc79de50ebd9fe80b (patch) | |
tree | 3e3a2853f735b8a6c8e1e87397dd30a3ea6636fb /shell/e-shell-view.c | |
parent | ff69fbf5847b5828df9a5479e89cba508843d148 (diff) | |
download | gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.tar gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.tar.gz gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.tar.bz2 gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.tar.lz gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.tar.xz gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.tar.zst gsoc2013-evolution-795541456d41b75534bc639cc79de50ebd9fe80b.zip |
add (e_shell_view_construct): hook up to system_exception on ui_container.
2000-11-14 Michael Meeks <michael@helixcode.com>
* e-shell-view.c (unmerge_on_error): add
(e_shell_view_construct): hook up to system_exception on
ui_container.
svn path=/trunk/; revision=6571
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 9480dcac60..774de785d4 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -812,6 +812,20 @@ shell_view_interface_set_title (EvolutionShellView *shell_view, gtk_window_set_title (GTK_WINDOW (view), title); } +static void +unmerge_on_error (BonoboObject *object, + CORBA_Object cobject, + CORBA_Environment *ev) +{ + BonoboWindow *win; + + win = bonobo_ui_container_get_win (BONOBO_UI_CONTAINER (object)); + + if (win) + bonobo_window_deregister_component_by_ref ( + win, cobject); +} + EShellView * e_shell_view_construct (EShellView *shell_view, @@ -845,6 +859,8 @@ e_shell_view_construct (EShellView *shell_view, container = bonobo_ui_container_new (); bonobo_ui_container_set_win (container, BONOBO_WINDOW (shell_view)); + gtk_signal_connect (GTK_OBJECT (container), "system_exception", + (GtkSignalFunc) unmerge_on_error, NULL); priv->ui_component = bonobo_ui_component_new ("evolution"); bonobo_ui_component_set_container (priv->ui_component, |