This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit 05911ae262353d4369d1e1cb41b2e7f512bc28ae
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Sat Sep 9 10:08:20 2023 +0100
fix custom layout to walk full icon list not blocked ones
---
src/efm/efm_custom.c | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/src/efm/efm_custom.c b/src/efm/efm_custom.c
index e40f9fb..7eb7df3 100644
--- a/src/efm/efm_custom.c
+++ b/src/efm/efm_custom.c
@@ -151,24 +151,20 @@ _icon_custom_data_bitmap_fill(Smart_Data *sd, int x, int y, int w, int h)
static void
_icon_custom_data_all_icons_fill(Smart_Data *sd)
{ // fill in all placed icons in custom data bitmap
- Eina_List *bl, *il;
- Block *block;
+ Eina_List *l;
Icon *icon;
- EINA_LIST_FOREACH(sd->blocks, bl, block)
+ EINA_LIST_FOREACH(sd->icons, l, icon)
{
- EINA_LIST_FOREACH(block->icons, il, icon)
+ if (icon->geom.x == INVALID) continue;
+ if (icon->geom.w == INVALID)
{
- if (icon->geom.x == INVALID) continue;
- if (icon->geom.w == INVALID)
- {
- icon->geom.w = sd->icon_min_w;
- icon->geom.h = sd->icon_min_h;
- }
- _icon_custom_data_bitmap_fill(sd,
- icon->geom.x, icon->geom.y,
- icon->geom.w, icon->geom.h);
+ icon->geom.w = sd->icon_min_w;
+ icon->geom.h = sd->icon_min_h;
}
+ _icon_custom_data_bitmap_fill(sd,
+ icon->geom.x, icon->geom.y,
+ icon->geom.w, icon->geom.h);
}
/*
Custom_Data *cd = sd->custom_data;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.