win: add win_evas_object_to_win()

terminology-1.7
Boris Faure 3 years ago
parent b9f3c7bf05
commit df9700c8a5
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 9
      src/bin/win.c
  2. 1
      src/bin/win.h

@ -1119,9 +1119,8 @@ win_free(Win *wn)
free(wn);
}
static Win *
_win_find(Evas_Object *win)
Win *
win_evas_object_to_win(const Evas_Object *win)
{
Win *wn;
Eina_List *l;
@ -1138,7 +1137,7 @@ terms_from_win_object(Evas_Object *win)
{
Win *wn;
wn = _win_find(win);
wn = win_evas_object_to_win(win);
if (!wn) return NULL;
return wn->terms;
@ -2279,7 +2278,7 @@ term_close(Evas_Object *win, Evas_Object *term, Eina_Bool hold_if_requested)
{
Term *tm;
Term_Container *tc;
Win *wn = _win_find(win);
Win *wn = win_evas_object_to_win(win);
if (!wn)
return;

@ -40,6 +40,7 @@ int win_term_set(Win *wn, Term *term);
Eina_List *
terms_from_win_object(Evas_Object *win);
Win *win_evas_object_to_win(const Evas_Object *win);
Evas_Object *win_evas_object_get(const Win *win);
Eina_List * win_terms_get(const Win *wn);
Config *win_config_get(const Win *wn);

Loading…
Cancel
Save