summaryrefslogtreecommitdiff
path: root/src/bin/controls.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2016-03-02 11:37:02 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2016-03-04 11:34:24 -0300
commitae7e96633a74324d0a41ad58e71ef6e88acdf959 (patch)
treea539f68fcb0bef47518d9c96064e0cdb4f4e168d /src/bin/controls.c
parentf05a9187b079a6977a2ba592030c3ed02bc32dc3 (diff)
Allow user to set the title of the each tab
Diffstat (limited to 'src/bin/controls.c')
-rw-r--r--src/bin/controls.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/controls.c b/src/bin/controls.c
index d75041a..c9a62b3 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -92,6 +92,12 @@ _cb_ct_miniview(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *even
92} 92}
93 93
94static void 94static void
95_cb_ct_set_title(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
96{
97 term_set_title(termio_term_get(ct_term));
98}
99
100static void
95_cb_ct_close(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 101_cb_ct_close(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
96{ 102{
97 term_close(ct_win, ct_term, EINA_FALSE); 103 term_close(ct_win, ct_term, EINA_FALSE);
@@ -277,6 +283,12 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
277 o = _button_add(win, _("Miniview"), "mini-view", _cb_ct_miniview, NULL); 283 o = _button_add(win, _("Miniview"), "mini-view", _cb_ct_miniview, NULL);
278 elm_box_pack_end(ct_box, o); 284 elm_box_pack_end(ct_box, o);
279 285
286 o = _sep_add_h(win);
287 elm_box_pack_end(ct_box, o);
288
289 o = _button_add(win, _("Set title"), "document-edit", _cb_ct_set_title, NULL);
290 elm_box_pack_end(ct_box, o);
291
280 o = _sep_add_v(win); 292 o = _sep_add_v(win);
281 elm_box_pack_end(ct_boxh, o); 293 elm_box_pack_end(ct_boxh, o);
282 294