summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-10-21 23:28:42 +0200
committerBoris Faure <billiob@gmail.com>2019-10-21 23:28:42 +0200
commit0f5e928e375028fc2eb4f9156dcb0afeb10ebcc6 (patch)
tree7d1af270fd3dafe10dab66c243e39a410ea1ca43 /src/bin
parentfc865e97b0fe732a6d8142b98443baf9c615749e (diff)
Revert "wip"HEADmaster
This reverts commit fc865e97b0fe732a6d8142b98443baf9c615749e.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/win.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index f7ef9bc..05fdd34 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2899,7 +2899,7 @@ _tabbar_fill(Tabs *tabs)
2899 edje_object_part_swallow(term->bg, "terminology.tabl.content", o); 2899 edje_object_part_swallow(term->bg, "terminology.tabl.content", o);
2900 evas_object_show(o); 2900 evas_object_show(o);
2901 } 2901 }
2902 //if (i < (n - 1)) 2902 if (i < (n - 1))
2903 { 2903 {
2904 term->tabbar.r.box = o = elm_box_add(tabs->tc.wn->win); 2904 term->tabbar.r.box = o = elm_box_add(tabs->tc.wn->win);
2905 elm_box_horizontal_set(o, EINA_TRUE); 2905 elm_box_horizontal_set(o, EINA_TRUE);
@@ -2925,7 +2925,6 @@ _tabbar_fill(Tabs *tabs)
2925 edje_object_part_text_set(o, "terminology.title", 2925 edje_object_part_text_set(o, "terminology.title",
2926 tab_item->tc->title); 2926 tab_item->tc->title);
2927 edje_object_size_min_calc(o, &w, &h); 2927 edje_object_size_min_calc(o, &w, &h);
2928 ERR("back: w:%d h:%d", w, h);
2929 evas_object_size_hint_min_set(o, w, h); 2928 evas_object_size_hint_min_set(o, w, h);
2930 assert(i != j); 2929 assert(i != j);
2931 if (j < i) 2930 if (j < i)
@@ -3885,6 +3884,7 @@ _tabs_refresh(Tabs *tabs)
3885 term->tabcount_spacer); 3884 term->tabcount_spacer);
3886 edje_object_part_text_set(term->bg, "terminology.tabcount.label", buf); 3885 edje_object_part_text_set(term->bg, "terminology.tabcount.label", buf);
3887 edje_object_part_text_set(term->bg, "terminology.tabmissed.label", bufmissed); 3886 edje_object_part_text_set(term->bg, "terminology.tabmissed.label", bufmissed);
3887 edje_object_signal_emit(term->bg, "tabcount,on", "terminology");
3888 // this is all below just for tab bar at the top 3888 // this is all below just for tab bar at the top
3889 if (term->config->show_tabs) 3889 if (term->config->show_tabs)
3890 { 3890 {
@@ -3892,14 +3892,12 @@ _tabs_refresh(Tabs *tabs)
3892 3892
3893 v1 = (double)(i-1) / (double)n; 3893 v1 = (double)(i-1) / (double)n;
3894 v2 = (double)i / (double)n; 3894 v2 = (double)i / (double)n;
3895 edje_object_signal_emit(term->bg, "tabcount,off", "terminology");
3896 elm_coords_finger_size_adjust(1, &w, 1, &h);
3897
3898 if (!term->tab_spacer) 3895 if (!term->tab_spacer)
3899 { 3896 {
3900 term->tab_spacer = evas_object_rectangle_add( 3897 term->tab_spacer = evas_object_rectangle_add(
3901 evas_object_evas_get(term->bg)); 3898 evas_object_evas_get(term->bg));
3902 evas_object_color_set(term->tab_spacer, 0, 0, 0, 0); 3899 evas_object_color_set(term->tab_spacer, 0, 0, 0, 0);
3900 elm_coords_finger_size_adjust(1, &w, 1, &h);
3903 evas_object_size_hint_min_set(term->tab_spacer, w, h); 3901 evas_object_size_hint_min_set(term->tab_spacer, w, h);
3904 edje_object_part_swallow(term->bg, "terminology.tab", term->tab_spacer); 3902 edje_object_part_swallow(term->bg, "terminology.tab", term->tab_spacer);
3905 edje_object_part_drag_value_set(term->bg, "terminology.tabl", v1, 0.0); 3903 edje_object_part_drag_value_set(term->bg, "terminology.tabl", v1, 0.0);
@@ -3907,24 +3905,24 @@ _tabs_refresh(Tabs *tabs)
3907 edje_object_part_text_set(term->bg, "terminology.tab.title", 3905 edje_object_part_text_set(term->bg, "terminology.tab.title",
3908 solo->tc.title); 3906 solo->tc.title);
3909 edje_object_signal_emit(term->bg, "tabbar,on", "terminology"); 3907 edje_object_signal_emit(term->bg, "tabbar,on", "terminology");
3908 edje_object_message_signal_process(term->bg);
3910 } 3909 }
3911 else 3910 else
3912 { 3911 {
3913 edje_object_part_drag_value_set(term->bg, "terminology.tabl", v1, 0.0); 3912 edje_object_part_drag_value_set(term->bg, "terminology.tabl", v1, 0.0);
3914 edje_object_part_drag_value_set(term->bg, "terminology.tabr", v2, 0.0); 3913 edje_object_part_drag_value_set(term->bg, "terminology.tabr", v2, 0.0);
3914 edje_object_message_signal_process(term->bg);
3915 } 3915 }
3916 _tabbar_fill(tabs); 3916 _tabbar_fill(tabs);
3917 } 3917 }
3918 else 3918 else
3919 { 3919 {
3920 edje_object_signal_emit(term->bg, "tabcount,on", "terminology");
3921 _tabbar_clear(term); 3920 _tabbar_clear(term);
3922 } 3921 }
3923 if (missed > 0) 3922 if (missed > 0)
3924 edje_object_signal_emit(term->bg, "tabmissed,on", "terminology"); 3923 edje_object_signal_emit(term->bg, "tabmissed,on", "terminology");
3925 else 3924 else
3926 edje_object_signal_emit(term->bg, "tabmissed,off", "terminology"); 3925 edje_object_signal_emit(term->bg, "tabmissed,off", "terminology");
3927 edje_object_message_signal_process(term->bg);
3928} 3926}
3929 3927
3930static Tab_Item* 3928static Tab_Item*
@@ -5790,7 +5788,6 @@ _cb_tabregion_change(void *data,
5790 5788
5791 evas_object_geometry_get(obj, NULL, NULL, &w, &h); 5789 evas_object_geometry_get(obj, NULL, NULL, &w, &h);
5792 evas_object_size_hint_min_set(term->tab_region_base, w, h); 5790 evas_object_size_hint_min_set(term->tab_region_base, w, h);
5793 ERR("tab region %d %d", w ,h);
5794 elm_layout_content_set(term->base, "terminology.tabregion", 5791 elm_layout_content_set(term->base, "terminology.tabregion",
5795 term->tab_region_base); 5792 term->tab_region_base);
5796} 5793}