callback on tab selector is back again

This commit is contained in:
Boris Faure 2014-11-30 21:28:46 +01:00
parent 4ccd2fba63
commit bd4358dd19
1 changed files with 28 additions and 7 deletions

View File

@ -1599,6 +1599,34 @@ _cb_tab_selector_show(void *data,
elm_object_focus_set(tabs->selector, EINA_TRUE);
}
static void
_cb_select(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
{
Term *term = data;
Term_Container *tc = term->container;
while (tc)
{
Tabs *tabs;
if (tc->type != TERM_CONTAINER_TYPE_TABS)
{
tc = tc->parent;
continue;
}
tabs = (Tabs*) tc;
if (eina_list_count(tabs->tabs) < 2)
{
tc = tc->parent;
continue;
}
_cb_tab_selector_show(tabs, NULL, NULL, NULL);
return;
}
}
static Evas_Object *
_tabs_get_evas_object(Term_Container *container)
@ -2788,13 +2816,6 @@ _cb_next(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
term_next(term);
}
static void
_cb_select(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
{
//Term *term = data;
/* TODO: bring the tab selector up */
}
static void
_cb_split_h(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
{