Re: [RFC] The `Manage Identities' dialog



Hi,

I had the need to detect a single click on a GtkCList in one of my other 
applications. I found that it is rather easy to do. I simply installed a 
handler for button press events and used the coordinates to find the row 
and column clicked. That way I was able to implement something that looked 
and acted like a real checkbox-in-a-list.
The same approach should work for almost every gtk widget and would do away 
with the counter-intuitive need to double-click.
AFAIK it doesn't adversely affect any functionality of the widget as long 
as displaying the update is not attempted from within the handler.

Melanie

On 2002.05.11 14:26 Peter Bloomfield wrote:
> The list of identities in the `Manage Identities' dialog 
> (Settings->Identities...) is currently implemented as a GtkCList, which 
> is deprecated in gtk+-2.0. The replacement widget is GtkTreeView--porting 
> is under way.
> 
> GtkTreeView has the capability of rendering a column of checkboxes (or 
> radio buttons) to indicate status. Balsa currently uses an arrow icon to 
> indicate the current default identity; this looks like a candidate for 
> replacement by a checkbox.
> 
> Rendering the list that way will obviously invite the user to click on 
> the box to change the default. However, the checkbox isn't a real 
> checkbox widget, and there's no simple way to detect a (single) click on 
> it. The API does provide a "row-activated" signal, emitted when the user 
> *double-clicks* the row, and the column the user double-clicked can be 
> detected. We could use that to request a change of default.
> 
> Could we then do away with the `Set Default' button? Or should we stay 
> with an appropiate icon? Any other thoughts?
> 
> Thanks for all comments!
> 
> Peter
> _______________________________________________
> balsa-list mailing list
> balsa-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/balsa-list



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