win: add win_has_single_child()

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

@ -1578,6 +1578,14 @@ _win_update(Term_Container *tc)
wn->child->update(wn->child);
}
Eina_Bool
win_has_single_child(const Win *wn)
{
const Term_Container *child = wn->child;
return (child->type == TERM_CONTAINER_TYPE_SOLO);
}
static void
_cb_win_key_up(void *data,
Evas *_e EINA_UNUSED,

@ -51,6 +51,7 @@ void win_toggle_visible_group(Win *wn);
void win_toggle_all_group(Win *wn);
Eina_Bool win_is_group_action_handled(Win *wn);
Eina_Bool win_is_group_input(Win *wn);
Eina_Bool win_has_single_child(const Win *wn);
void win_scale_wizard(Evas_Object *win, Term *term);

Loading…
Cancel
Save