[maemo-developers] Why is always one textview item selected in HILDON_UI_MODE_EDIT?

From: Till Harbaum lists at harbaum.org
Date: Fri Dec 18 13:45:47 EET 2009
Hi,

i have a simple treeview inside a pannable area. What i want to achieve is basically simple:
I want the user to be able to select one item and that item should stay selected until
the user selects a different item. Initially nothing should be selected.

Exactly this is the standard behaviour in gtk. In hildon, however i need to enable edit 
mode to make something stay selected after the user clicked on it. There's a problem
with this: Initially the first item is automatically selected by some magic in this mode.
I even immediately get a "changed" event from the selection once the widget is being 
created.

How do i prevent this? Even explicitely unselecting everything using
gtk_tree_selection_unselect_all() doesn't help. The first item stays selected. This is
bad since i was something to happen once the user selects an item. The user might
thus not be aware that he also needs to click onto the already selected first item if
he wants that first item to act.

Anybody else facing this problem? How can i deselect everything in a treeview in
state HILDON_UI_MODE_EDIT?

Regards,
  Till


More information about the maemo-developers mailing list