Add code to show options frame

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2014-01-09 16:25:19 +00:00
parent 0fd8559dfd
commit 60a9959cb8
1 changed files with 30 additions and 2 deletions

View File

@ -12,6 +12,8 @@ struct _Window
Evas_Object *o_sel;
Evas_Object *o_sel_bg;
Evas_Object *o_opts;
Eina_List *channels;
Ecore_Job *size_job;
@ -365,9 +367,35 @@ _cb_changed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EI
}
static void
_cb_options(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_options_done(void *data)
{
DBG("TODO Options");
Window *win;
Channel *chl;
Eina_List *l;
if (!(win = data)) return;
if (!win->focused) return;
EINA_LIST_FOREACH(win->channels, l, chl)
{
if (chl->focused)
{
elm_object_focus_set(chl->o_grid, EINA_TRUE);
/* TODO: feed mouse in ?? */
}
}
}
static void
_cb_options(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
{
Channel *chl;
Window *win;
if (!(chl = data)) return;
if (!(win = chl->window)) return;
_options_toggle(win->o_win, win->o_base, chl->o_grid,
_cb_options_done, win);
}
static void