aboutsummaryrefslogtreecommitdiffstats
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
parentrefocus other split when closing one. Closes T3239 (diff)
downloadterminology-2c5568c933bf62c9b5f71d47a040f09044babaeb.tar.gz
Revert "wip"
-rw-r--r--data/themes/default.edc29
-rw-r--r--src/bin/win.c16
2 files changed, 7 insertions, 38 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 69cb4d7..fcd7302 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -1016,8 +1016,7 @@ collections {
target: "tab_bevel_shad1";
target: "tab_bevel_shad3";
target: "tab_bevel_shad4";
- //target: "tabtitle";
- target: "terminology.tab.title";
+ target: "tabtitle";
target: "tabclose";
}
program {
@@ -1043,8 +1042,7 @@ collections {
target: "tab_bevel_shad1";
target: "tab_bevel_shad3";
target: "tab_bevel_shad4";
- //target: "tabtitle";
- target: "terminology.tab.title";
+ target: "tabtitle";
target: "tabclose";
}
@@ -1088,28 +1086,8 @@ collections {
}
}
- /* TODO: boris */
- part { name: "terminology.tab.title";
- type: SWALLOW;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.5;
- rel1.to_x: "tab_bevel_top2";
- rel1.offset: 0 2;
- rel2.to_x: "tab_bevel_top2";
- rel2.offset: -1 2;
- rel2.relative: 1.0 0.0;
- visible: 0;
- fixed: 1 1;
- }
- description { state: "tab" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- /*
part { name: "terminology.tab.title"; type: TEXT; mouse_events: 0;
+ /* TODO: boris */
scale: 1;
effect: SOFT_SHADOW BOTTOM;
mouse_events: 0;
@@ -1155,7 +1133,6 @@ collections {
visible: 1;
}
}
- */
part { name: "tablimit0"; type: SPACER;
description { state: "default" 0.0;
rel1.to_y: "terminology.tab";
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);
}