aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/folder-browser-ui.c10
2 files changed, 14 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4fa2534fd5..639122624a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-22 Peter Williams <peterw@ximian.com>
+
+ * folder-browser-ui.c (fbui_sensitize_timeout): Check for NULL uic
+ here as well.
+ (fbui_sensitize_items): Up the timeout interval to 110 ms.
+
2001-08-21 Peter Williams <peterw@ximian.com>
* mail-account-editor.c (apply_changes): Honor the return value of
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c
index ba6fb8ef28..8a2189e1f9 100644
--- a/mail/folder-browser-ui.c
+++ b/mail/folder-browser-ui.c
@@ -433,7 +433,13 @@ fbui_sensitize_timeout (gpointer data)
for (iter = fb->sensitize_changes; iter; iter = iter->next) {
sd = (struct sensitize_data *) iter->data;
- fbui_real_sensitize_items (uic, sd->items, sd->enable);
+ /* if UIC == NULL, we could just return TRUE, but we don't
+ * know when UIC is going to come back... when it does,
+ * the UI stuff will be reset, so no problem.
+ */
+
+ if (uic)
+ fbui_real_sensitize_items (uic, sd->items, sd->enable);
g_free (sd);
}
@@ -472,7 +478,7 @@ fbui_sensitize_items (FolderBrowser *fb, const char **items, gboolean enable)
}
if (fb->sensitize_timeout_id == 0)
- fb->sensitize_timeout_id = g_timeout_add (90, fbui_sensitize_timeout, fb);
+ fb->sensitize_timeout_id = g_timeout_add (110, fbui_sensitize_timeout, fb);
}
static const char *message_pane_enables[] = {