summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
authorToan Pham <tpham3783@gmail.com>2016-03-06 13:37:49 +0100
committerToan Pham <tpham3783@gmail.com>2016-03-06 13:37:49 +0100
commitad7409fdfc38353118c2188e4a20a621969f4350 (patch)
tree326490f20109298a27a5b64b6e1b902bde536222 /src/bin/keyin.c
parentd293b2531affed91f344d4e36f5e096644c1116b (diff)
Add shortcut to change tab's title
Signed off: Toan Pham <tpham3783@gmail.com>
Diffstat (limited to 'src/bin/keyin.c')
-rw-r--r--src/bin/keyin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index 14731b2..661080e 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -387,6 +387,16 @@ cb_term_new(Evas_Object *termio_obj)
387 return EINA_TRUE; 387 return EINA_TRUE;
388} 388}
389 389
390static Eina_Bool
391cb_tab_set_title(Evas_Object *termio_obj)
392{
393 Term *term = termio_term_get(termio_obj);
394 if (!term)
395 return EINA_FALSE;
396 term_set_title(term);
397 return EINA_TRUE;
398}
399
390#define CB_TAB(N) \ 400#define CB_TAB(N) \
391static Eina_Bool \ 401static Eina_Bool \
392cb_tab_##N(Evas_Object *termio_obj) \ 402cb_tab_##N(Evas_Object *termio_obj) \
@@ -617,6 +627,7 @@ static Shortcut_Action _actions[] =
617 {"tab_8", gettext_noop("Switch to terminal tab 8"), cb_tab_8}, 627 {"tab_8", gettext_noop("Switch to terminal tab 8"), cb_tab_8},
618 {"tab_9", gettext_noop("Switch to terminal tab 9"), cb_tab_9}, 628 {"tab_9", gettext_noop("Switch to terminal tab 9"), cb_tab_9},
619 {"tab_10", gettext_noop("Switch to terminal tab 10"), cb_tab_0}, 629 {"tab_10", gettext_noop("Switch to terminal tab 10"), cb_tab_0},
630 {"tab_title", gettext_noop("Change title"), cb_tab_set_title},
620 631
621 {"group", gettext_noop("Font size"), NULL}, 632 {"group", gettext_noop("Font size"), NULL},
622 {"increase_font_size", gettext_noop("Font size up 1"), cb_increase_font_size}, 633 {"increase_font_size", gettext_noop("Font size up 1"), cb_increase_font_size},