Re: [PATCH] mailbox tree



The patch is buggy. Each time the in-menu mblist is displayed, the width is
saved with the correct value + the witdh of the scrollbar (if present).

A better solution could be to avoid saving the width of the tree widget
when created for the right click menu. 

Another solution could be to not saved the parent width which is the
problem source. I think this is a design mistake to save from a children
the width of its parent window.

I will try to do a better patch for this bug.

Christophe

Le sam, 07 jui 2001 16:00:47, christophe barbe a écrit :
> Hi,
> 
> I attach to this mail a little patch which solves the following problem :
> 
> The problem is visible only when you don't display mails count in your
> mailbox tree.
> You adjust the width of your mb list to fit your mailbox names.
> If you right click on a message and select the transfer entry, the mblist
> is displayed as a sub-menu, but with  a default width (because the gtk
> tree
> widget don't suggest the size of his column when there's only one, that's
> why the bug is not visible when you display mails count). And worst, the
> default width is then saved (by allocate_cb) as the user choice. Then if
> you restart balsa, the mblist on the main window use this default width. 
> 
> The solution, the simplest and IMHO the correct one, is to set the width
> of the in-menu mblist with the user choice. 
> 
> Christophe
> 




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