aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-02-09 21:03:04 +0100
committerBoris Faure <billiob@gmail.com>2016-02-10 00:34:39 +0100
commit487c54b4e11804f70b84cde802c7a4a886b81093 (patch)
tree239e056b9f78ca023f5b3d8bd0db9b5b822cca05 /src/bin/win.c
parenttiny cleanup (diff)
downloadterminology-487c54b4e11804f70b84cde802c7a4a886b81093.tar.gz
wip
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 3472efc..315dd4c 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -1649,6 +1649,9 @@ _tabbar_clear(Term *tm)
edje_object_message_signal_process(tm->bg);
edje_object_part_unswallow(tm->bg, tm->tab_spacer);
evas_object_del(tm->tab_spacer);
+ Evas_Object *o;
+ o = edje_object_part_swallow_get(term->bg, "terminology.tab.title");
+ evas_object_del(o);
tm->tab_spacer = NULL;
}
}
@@ -2542,8 +2545,9 @@ _tabs_set_title(Term_Container *tc, Term_Container *child,
if (!term->config->notabs)
{
- edje_object_part_text_set(term->bg, "terminology.tab.title",
- title);
+ Evas_Object *o;
+ o = edje_object_part_swallow_get(term->bg, "terminology.tab.title");
+ evas_object_text_text_set(o, title);
}
}
else
@@ -2618,6 +2622,7 @@ _tabs_refresh(Tabs *tabs)
v2 = (double)i / (double)n;
if (!term->tab_spacer)
{
+ Evas_Object *o;
term->tab_spacer = evas_object_rectangle_add(
evas_object_evas_get(term->bg));
evas_object_color_set(term->tab_spacer, 0, 0, 0, 0);
@@ -2626,6 +2631,7 @@ _tabs_refresh(Tabs *tabs)
edje_object_part_swallow(term->bg, "terminology.tab", term->tab_spacer);
edje_object_part_drag_value_set(term->bg, "terminology.tabl", v1, 0.0);
edje_object_part_drag_value_set(term->bg, "terminology.tabr", v2, 0.0);
+ /* TODO: boris */
edje_object_part_text_set(term->bg, "terminology.tab.title",
solo->tc.title);
edje_object_signal_emit(term->bg, "tabbar,on", "terminology");