Beispiel #1
0
static void
_select_prev_cb(void *data, Evas_Object *obj, void *event_info)
{
   Elm_Object_Item *selected_item, *prev_item;
   Evas_Object *li = data;

   selected_item = elm_list_selected_item_get(li);
   if (!selected_item) return;

   prev_item = elm_list_item_prev(selected_item);
   if (prev_item)
     elm_list_item_selected_set(prev_item, EINA_TRUE);
}
Beispiel #2
0
/* Button "Previous" from Browse Page */
static void
previous_clicked (void *data, Evas_Object *obj, const char *emission, const char *source)
{
   Db_Entry *Contact;
   Elm_List_Item *prev;

   prev = elm_list_item_prev(App.selection);

   if (prev)
     {
	App.selection = prev;
	elm_list_item_selected_set(App.selection, EINA_TRUE);
	Contact = (Db_Entry*) elm_list_item_data_get(App.selection);
	load_values(Contact);
     }
}