win: expose term_focus();
This commit is contained in:
parent
f03b84b869
commit
189d138d03
|
@ -186,7 +186,6 @@ static Eina_Bool _term_is_focused(Term *term);
|
||||||
static Term_Container *_solo_new(Term *term, Win *wn);
|
static Term_Container *_solo_new(Term *term, Win *wn);
|
||||||
static Term_Container *_split_new(Term_Container *tc1, Term_Container *tc2, Eina_Bool is_horizontal);
|
static Term_Container *_split_new(Term_Container *tc1, Term_Container *tc2, Eina_Bool is_horizontal);
|
||||||
static Term_Container *_tabs_new(Term_Container *child, Term_Container *parent);
|
static Term_Container *_tabs_new(Term_Container *child, Term_Container *parent);
|
||||||
static void _term_focus(Term *term);
|
|
||||||
static void _term_free(Term *term);
|
static void _term_free(Term *term);
|
||||||
static void _term_media_update(Term *term, const Config *config);
|
static void _term_media_update(Term *term, const Config *config);
|
||||||
static void _term_miniview_check(Term *term);
|
static void _term_miniview_check(Term *term);
|
||||||
|
@ -583,7 +582,7 @@ _cb_win_focus_in(void *data,
|
||||||
|
|
||||||
if (term)
|
if (term)
|
||||||
{
|
{
|
||||||
_term_focus(term);
|
term_focus(term);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2508,7 +2507,7 @@ _cb_tab_activate(void *data,
|
||||||
assert (tab_item->tc->type == TERM_CONTAINER_TYPE_SOLO);
|
assert (tab_item->tc->type == TERM_CONTAINER_TYPE_SOLO);
|
||||||
solo = (Solo*)tab_item->tc;
|
solo = (Solo*)tab_item->tc;
|
||||||
term = solo->term;
|
term = solo->term;
|
||||||
_term_focus(term);
|
term_focus(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -3804,8 +3803,8 @@ void change_theme(Evas_Object *win, Config *config)
|
||||||
main_trans_update(config);
|
main_trans_update(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
_term_focus(Term *term)
|
term_focus(Term *term)
|
||||||
{
|
{
|
||||||
Term_Container *tc;
|
Term_Container *tc;
|
||||||
|
|
||||||
|
@ -3878,7 +3877,7 @@ term_go_to(Term *from, enum term_to_direction dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_term && new_term != focused_term)
|
if (new_term && new_term != focused_term)
|
||||||
_term_focus(new_term);
|
term_focus(new_term);
|
||||||
|
|
||||||
/* TODO: get rid of it? */
|
/* TODO: get rid of it? */
|
||||||
_term_miniview_check(from);
|
_term_miniview_check(from);
|
||||||
|
@ -4490,7 +4489,7 @@ _sendfile_progress_hide(Term *term)
|
||||||
if (elm_object_focus_get(term->sendfile_progress))
|
if (elm_object_focus_get(term->sendfile_progress))
|
||||||
{
|
{
|
||||||
elm_object_focus_set(term->sendfile_progress, EINA_FALSE);
|
elm_object_focus_set(term->sendfile_progress, EINA_FALSE);
|
||||||
_term_focus(term);
|
term_focus(term);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4595,7 +4594,7 @@ _sendfile_request_hide_delay(void *data)
|
||||||
if (elm_object_focus_get(term->sendfile_request))
|
if (elm_object_focus_get(term->sendfile_request))
|
||||||
{
|
{
|
||||||
elm_object_focus_set(term->sendfile_request, EINA_FALSE);
|
elm_object_focus_set(term->sendfile_request, EINA_FALSE);
|
||||||
_term_focus(term);
|
term_focus(term);
|
||||||
}
|
}
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ typedef struct _Term Term;
|
||||||
|
|
||||||
Eina_Bool main_term_popup_exists(const Term *term);
|
Eina_Bool main_term_popup_exists(const Term *term);
|
||||||
void term_unfocus(Term *term);
|
void term_unfocus(Term *term);
|
||||||
|
void term_focus(Term *term);
|
||||||
|
|
||||||
Evas_Object *term_termio_get(const Term *term);
|
Evas_Object *term_termio_get(const Term *term);
|
||||||
Evas_Object *term_miniview_get(const Term *term);
|
Evas_Object *term_miniview_get(const Term *term);
|
||||||
|
|
Loading…
Reference in New Issue