#endif
#include <Elementary.h>
-#define TAB_PAGE_NUM 5
#define TAB_LABEL_COUNT 15
#define TAB_ICON_COUNT 9
Eo *icon_check;
} Tab_Change_Data;
+static int tab_label_count;
+static int tab_icon_count;
+
static void _current_cb(void *data, Evas_Object *obj, void *event_info);
static void _pack_cb(void *data, Evas_Object *obj, void *event_info);
static void _unpack_cb(void *data, Evas_Object *obj, void *event_info);
static char *tab_label_get()
{
- int index = rand() % (TAB_LABEL_COUNT - 1);
- return tab_labels[index];
+ if (tab_label_count == TAB_LABEL_COUNT) tab_label_count = 0;
+ return tab_labels[tab_label_count++];
}
static char *tab_icon_get()
{
- int index = rand() % (TAB_ICON_COUNT - 1);
- return tab_icons[index];
+ if (tab_icon_count == TAB_ICON_COUNT) tab_icon_count = 0;
+ return tab_icons[tab_icon_count++];
}
static void
efl_ui_pager_transition_set(tp, tran);
*/
+ tab_label_count = 0;
+ tab_icon_count = 0;
+
for (i = 0 ; i < 3 ; i ++)
{
page = tab_page_add(tp);