aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-02-10 23:56:59 +0100
committerBoris Faure <billiob@gmail.com>2016-02-10 23:56:59 +0100
commit02db084b276346160fcea4775dcc156f6036f3ce (patch)
tree1db30f0aaaef614aca08226ed65bb417e40710fd /src/bin/win.c
parentwip (diff)
downloadterminology-02db084b276346160fcea4775dcc156f6036f3ce.tar.gz
wip
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 315dd4c..88aa885 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -1649,8 +1649,7 @@ _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");
+ o = edje_object_part_swallow_get(tm->bg, "terminology.tab.title");
evas_object_del(o);
tm->tab_spacer = NULL;
}
@@ -2623,6 +2622,7 @@ _tabs_refresh(Tabs *tabs)
if (!term->tab_spacer)
{
Evas_Object *o;
+ Evas_Coord ow, oh;
term->tab_spacer = evas_object_rectangle_add(
evas_object_evas_get(term->bg));
evas_object_color_set(term->tab_spacer, 0, 0, 0, 0);
@@ -2632,8 +2632,16 @@ _tabs_refresh(Tabs *tabs)
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_part_text_set(term->bg, "terminology.tab.title",
+ // solo->tc.title);
+ o = evas_object_text_add(evas_object_evas_get(term->bg));
+ /* TODO boris: style */
+ evas_object_text_text_set(o, solo->tc.title);
+ evas_object_scale_set(o, elm_config_scale_get());
+ evas_object_geometry_get(o, NULL, NULL, &ow, &oh);
+ evas_object_size_hint_min_set(o, ow, oh);
+ edje_object_part_swallow(term->bg, "terminology.tab.title", o);
+
edje_object_signal_emit(term->bg, "tabbar,on", "terminology");
edje_object_message_signal_process(term->bg);
}