aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-03-03 13:30:00 +0100
committerBoris Faure <billiob@gmail.com>2016-03-03 13:30:00 +0100
commit2c5568c933bf62c9b5f71d47a040f09044babaeb (patch)
tree9cafa027313410a1c57db06da53c601715a1d4aa /src/bin/win.c
parentrefocus other split when closing one. Closes T3239 (diff)
downloadterminology-2c5568c933bf62c9b5f71d47a040f09044babaeb.tar.gz
Revert "wip"
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index b8c891c..e555d51 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -1659,7 +1659,8 @@ _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);
- o = edje_object_part_swallow_get(tm->bg, "terminology.tab.title");
+ Evas_Object *o;
+ o = edje_object_part_swallow_get(term->bg, "terminology.tab.title");
evas_object_del(o);
tm->tab_spacer = NULL;
}
@@ -2632,7 +2633,6 @@ _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);
@@ -2642,16 +2642,8 @@ _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);
- 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_part_text_set(term->bg, "terminology.tab.title",
+ solo->tc.title);
edje_object_signal_emit(term->bg, "tabbar,on", "terminology");
edje_object_message_signal_process(term->bg);
}