From 5438b275894ae095116ef0312cc687da09de248d Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Thu, 5 Jul 2001 14:37:54 +0000 Subject: Clear the shell view label if mailer loses focus. 2001-07-05 Peter Williams * mail-folder-cache.c (mail_folder_cache_set_folder_browser): Clear the shell view label if mailer loses focus. * mail-ops.c (do_update_subfolders_rec): Check for NULL url before calling folder cache functions. svn path=/trunk/; revision=10804 --- mail/mail-folder-cache.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mail/mail-folder-cache.c') diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index d6fb475813..d3e64c73d3 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -805,6 +805,17 @@ mail_folder_cache_set_folder_browser (FolderBrowser *fb) if (fb) { dm ("Reffing new browser %p", fb); gtk_object_ref (GTK_OBJECT (fb)); + } else if (shell_view != CORBA_OBJECT_NIL) { + CORBA_Environment ev; + + CORBA_exception_init (&ev); + GNOME_Evolution_ShellView_setFolderBarLabel (shell_view, + "", + &ev); + if (BONOBO_EX (&ev)) + g_warning ("Exception in folder bar label clear: %s", + bonobo_exception_get_text (&ev)); + CORBA_exception_free (&ev); } LOCK_FOLDERS (); -- cgit v1.2.3