Mailbox selection quirk
- From: Peter Bloomfield <bloomfld eos ncsu edu>
- To: balsa-list gnome org
- Subject: Mailbox selection quirk
- Date: Wed, 4 Jul 2001 20:42:04 -0400
I just came across some quirky behavior while working on IMAP subfolder
create/delete code: Open two mailboxes, first a and then b, by clicking
on them in the mailbox index. Go back to a by clicking on the notebook
tab. Hit `Mailbox -> Delete...' and Balsa offers b for deletion! So if
you read the `Question' dialog carefully, you realize this--but if you
just hit `Remove from list', you delete b, even though a is displayed
and is hightlighted in the mailbox index.
OK, I didn't read the dialog that carefully, and was I surprised when b
and its messages were deleted!
Clicking on the notebook tab apparently fires up
notebook_switch_page_cb, which calls balsa_mblist_focus_mailbox, which
calls gtk_ctree_select (if node != bmbl->currently_selected_ctree_node,
which is true in the case I looked at).
The Mailbox -> Delete... dialog works on
mblist_get_selected_node(balsa_app.mblist), which looks at
GTK_CLIST(mbl)->focus_row.
Is it possible that focus_row isn't updated by gtk_ctree_select? If so,
how are we supposed to find out what node is really selected/focused?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]