Re: Rows selection in TouchSelector
On Sun, Mar 07, 2010 at 08:30:16PM +0200, Max Usachev wrote: I use TouchSelector with hildon.TOUCH_SELECTOR_SELECTION_MODE_MULTIPLE mode to select multiple items, but I can't find way to select necessary items (for example, the first and the fourth) at startup (when TouchSelector shows). Use hildon_touch_selector_select_iter() Thanks! Can you show a little example how to use this method? Here's an example (in C). Berto void select_items (HildonTouchSelector *selector) { GtkTreeModel *model; GtkTreeIter iter; model = hildon_touch_selector_get_model (selector, 0); gtk_tree_model_get_iter_first (model, iter); hildon_touch_selector_unselect_all (selector, 0); gtk_tree_model_iter_nth_child (model, iter, NULL, 1); hildon_touch_selector_select_iter (selector, 0, iter, FALSE); gtk_tree_model_iter_nth_child (model, iter, NULL, 3); hildon_touch_selector_select_iter (selector, 0, iter, FALSE); gtk_tree_model_iter_nth_child (model, iter, NULL, 4); hildon_touch_selector_select_iter (selector, 0, iter, FALSE); } ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Rows selection in TouchSelector
On Mon, Mar 08, 2010 at 12:45:10PM +0100, Alberto Garcia wrote: gtk_tree_model_get_iter_first (model, iter); Well, this line is not necessary :) Berto ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Rows selection in TouchSelector
Hello! I use TouchSelector with hildon.TOUCH_SELECTOR_SELECTION_MODE_MULTIPLE mode to select multiple items, but I can't find way to select necessary items (for example, the first and the fourth) at startup (when TouchSelector shows). Using hildon.TOUCH_SELECTOR_SELECTION_MODE_SINGLE I can select only one item with selector.set_active(column, item) :( How to select multiple items in Python code when TouchSelection creates? Br, Max Usachev. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Rows selection in TouchSelector
On Sun, Mar 07, 2010 at 03:19:36PM +0200, Max Usachev wrote: I use TouchSelector with hildon.TOUCH_SELECTOR_SELECTION_MODE_MULTIPLE mode to select multiple items, but I can't find way to select necessary items (for example, the first and the fourth) at startup (when TouchSelector shows). Use hildon_touch_selector_select_iter() Berto ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers