aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-threads.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-08-14 06:41:02 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-08-14 06:41:02 +0800
commitd5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b (patch)
treee2c174f31e9e83aa9220b3fd2d91e9a453f94335 /mail/mail-threads.c
parent13fa05375c32edc73df82eb2ff9c44bf4d28bdac (diff)
downloadgsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.tar
gsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.tar.gz
gsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.tar.bz2
gsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.tar.lz
gsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.tar.xz
gsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.tar.zst
gsoc2013-evolution-d5e7aef9f23d87f1fa3e6ff51a8d567f7539ef0b.zip
Fix the ugly hack to get rid of a CORBA race condition. Yes, it's
even uglier now. svn path=/trunk/; revision=4814
Diffstat (limited to 'mail/mail-threads.c')
-rw-r--r--mail/mail-threads.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/mail-threads.c b/mail/mail-threads.c
index 7047cb013d..8df6d3f5e0 100644
--- a/mail/mail-threads.c
+++ b/mail/mail-threads.c
@@ -988,6 +988,9 @@ retrieve_shell_view_interface_from_control (BonoboControl *control)
control_frame = bonobo_control_get_control_frame (control);
+ if (control_frame == NULL)
+ return CORBA_OBJECT_NIL;
+
CORBA_exception_init (&ev);
shell_view_interface = Bonobo_Unknown_query_interface (control_frame,
"IDL:Evolution/ShellView:1.0",
@@ -1007,11 +1010,11 @@ retrieve_shell_view_interface_from_control (BonoboControl *control)
static void
update_active_views (void)
{
- GList *active_controls;
+ GList *controls;
GList *p;
- active_controls = folder_browser_factory_get_active_control_list ();
- for (p = active_controls; p != NULL; p = p->next) {
+ controls = folder_browser_factory_get_control_list ();
+ for (p = controls; p != NULL; p = p->next) {
BonoboControl *control;
Evolution_ShellView shell_view_interface;
CORBA_Environment ev;