raster pushed a commit to branch v-0.25.0.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7355d8d2a90502c134d2b453de71cf5c6ad0e45c

commit 7355d8d2a90502c134d2b453de71cf5c6ad0e45c
Author: Carsten Haitzler <[email protected]>
Date:   Mon Jan 17 20:56:03 2022 +0000

    theme - ibar/ibox label overlay - properly align with text min size
    
    @fix
---
 src/bin/system/e_system_backlight.c |  2 +-
 src/modules/ibar/e_mod_main.c       | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/bin/system/e_system_backlight.c 
b/src/bin/system/e_system_backlight.c
index 0d89a73f4..f4457b32b 100644
--- a/src/bin/system/e_system_backlight.c
+++ b/src/bin/system/e_system_backlight.c
@@ -153,7 +153,7 @@ _cb_worker_message(void *data EINA_UNUSED, Ecore_Thread *th 
EINA_UNUSED, void *m
 
    if (lig->max > 0)
      {
-        val = ((1000 * lig->val) + 500) / lig->max;
+        val = (1000 * lig->val) / lig->max;
         if (val < 0) val = 0;
         else if (val > 1000) val = 1000;
      }
diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 88d6dae24..2efde053d 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -1948,10 +1948,22 @@ _ibar_cb_icon_move(void *data, Evas *e, Evas_Object 
*obj, void *event_info EINA_
         if (!zone)
           zone = eina_list_data_get(e_comp->zones);
      }
-   if (chx - (len / 2) < zone->x)
+   if ((ic->ibar->inst->orient == E_GADCON_ORIENT_LEFT) ||
+       (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_LT) ||
+       (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_LB))
      sig = "e,origin,left";
-   else if ((chx + (len / 2) > cw) || ((chx + (len / 2) > zone->x + zone->w)))
+   else if ((ic->ibar->inst->orient == E_GADCON_ORIENT_RIGHT) ||
+            (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_RT) ||
+            (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_RB))
      sig = "e,origin,right";
+   else
+     {
+        if (chx - (len / 2) < zone->x)
+          sig = "e,origin,left";
+        else if ((chx + (len / 2) > cw) || ((chx + (len / 2) > zone->x + 
zone->w)))
+          sig = "e,origin,right";
+     }
+   printf("EMIT: %p %s\n", ic, sig);
    _ibar_icon_signal_emit(ic, sig, "e");
 }
 

-- 


Reply via email to