From a32b9cee884cf2a44b102a0c05eee2f9f26f7933 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 5 Oct 2019 15:29:56 +0200 Subject: [PATCH] tabs: show tabs that have a bell --- ChangeLog.theme | 7 ++++++- data/themes/default.edc | 13 ++++++++++++- src/bin/win.c | 3 ++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ChangeLog.theme b/ChangeLog.theme index 7a18ef4c..9b5d3d91 100644 --- a/ChangeLog.theme +++ b/ChangeLog.theme @@ -1,7 +1,12 @@ ================= -Terminology 1.5.0 +Terminology 1.6.0 ================= +Changes since 1.5.0: +-------------------- + * In group "terminology/tabbar_back", add signal "bell" from "terminology" + to mark a tab as having the bell on. + Changes since 1.2.0: -------------------- * Color class "BG" has to be set with the color of the background. diff --git a/data/themes/default.edc b/data/themes/default.edc index bd30d2e9..ec3d4757 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -2116,7 +2116,7 @@ collections { } part { name: "terminology.title"; type: TEXT; mouse_events: 0; scale: 1; - effect: GLOW; + effect: OUTLINE_SOFT_SHADOW; description { state: "default" 0.0; text { font: "Sans:style=Bold"; size: 10; align: 0.5 0.5; @@ -2128,6 +2128,12 @@ collections { rel1.to: "tab_bevel_top2"; rel2.to: "tab_bevel_top2"; } + description { state: "bell" 0.0; + inherit: "default" 0.0; + color: 255 219 0 96; + color2: 255 51 0 48; + color3: 255 51 0 8; + } } part { name: "clip"; type: RECT; description { state: "default" 0.0; @@ -2143,6 +2149,11 @@ collections { signal: "mouse,clicked,1"; source: "event"; action: SIGNAL_EMIT "tab,activate" "terminology"; } + program { name: "bell"; + signal: "bell"; source: "terminology"; + action: STATE_SET "bell" 0.0; + target: "terminology.title"; + } } } diff --git a/src/bin/win.c b/src/bin/win.c index e90b5423..be771e8b 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -2567,7 +2567,6 @@ _split_split(Term_Container *tc, Term_Container *child, Term_Container *tc_split, *tc_solo_new; Evas_Object *obj_split; - DBG(" "); assert (tc->type == TERM_CONTAINER_TYPE_SPLIT); split = (Split *)tc; wn = tc->wn; @@ -2921,6 +2920,8 @@ _tabbar_fill(Tabs *tabs) term->tabbar.r.tabs = eina_list_append(term->tabbar.r.tabs, o); elm_box_pack_end(term->tabbar.r.box, o); } + if (solo->term->missed_bell) + edje_object_signal_emit(o, "bell", "terminology"); evas_object_data_set(o, "term", term); evas_object_show(o); edje_object_signal_callback_add(o, "tab,activate", "terminology",