Re: Mailbox selection quirk



On 2001.07.04 20:42 Peter Bloomfield wrote:
> 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?
> 
Sorry if this is a repost...

To answer my own question, use balsa_app.mblist->currently_selected_ctree_node!

--- src/balsa-mblist.c.orig	Wed Jul  4 16:29:08 2001
+++ src/balsa-mblist.c	Wed Jul  4 16:32:53 2001
@@ -228,7 +228,7 @@
 
     g_assert(mbl != NULL);
 
-    node = gtk_ctree_node_nth(GTK_CTREE(mbl), GTK_CLIST(mbl)->focus_row);
+    node = mbl->currently_selected_ctree_node;
     return gtk_ctree_node_get_row_data(GTK_CTREE(mbl), node);
 }




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]