[maemo-developers] Going crazy with HildonPickerButton with multiple selection

From: Alberto Mardegan mardy at users.sourceforge.net
Date: Fri Feb 19 09:31:47 EET 2010
Alberto Garcia wrote:
> On Thu, Feb 18, 2010 at 10:33:46PM +0200, Alberto Mardegan wrote:
> 
>> HildonPickerButton with multiple selection seems to be perfect for
>> my need, but unfortunately HildonPickerDialog doesn't allow closing
>> the dialog if no item is selected (why???).
> 
> I know it's controversial, but that was a design decision for Maemo 5.
> The solution is to have an option labelled "None".
> 
> For an example, open the clock app, try adding a new alarm and see the
> "Repeat" button (which allows multiple selection). The first option is
> "Never"

I see. I could actually implement it in the same way as the clock app is doing.
BTW, I find the APIs for handling selections rather cumbersome, I have to write 
about 20 lines of code just to know the selection state of an item (if multiple 
selection is enabled).

If I write a patch that adds

gboolean hildon_touch_selector_is_selected(HildonTouchSelector *selector,
                                            gint column,
                                            gint index);
void hildon_touch_selector_set_selected(HildonTouchSelector *selector,
                                         gint column,
                                         gint index,
                                         gboolean selected);

would that have any chance of making its way in a future release?


Ciao,
   Alberto

-- 
http://www.mardy.it <-- geek in un lingua international!
More information about the maemo-developers mailing list