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 4de5fc4c817c3246c6ae9e0b60ec5b58383626dd
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Thu May 29 09:34:56 2025 +0100

    add sel not count to count icons not selected
---
 src/efm/efm_util.c | 14 ++++++++++++++
 src/efm/efm_util.h |  1 +
 2 files changed, 15 insertions(+)

diff --git a/src/efm/efm_util.c b/src/efm/efm_util.c
index 104cd2a..b6d4f3e 100644
--- a/src/efm/efm_util.c
+++ b/src/efm/efm_util.c
@@ -2603,6 +2603,20 @@ _efm_sel_none(Smart_Data *sd)
   _unselect_all(sd);
 }
 
+int
+_efm_sel_not_count(Smart_Data *sd)
+{
+  Eina_List *bl;
+  Block     *block;
+  int        unselected_num = 0;
+
+  EINA_LIST_FOREACH(sd->blocks, bl, block)
+  {
+    unselected_num += eina_list_count(block->icons) - block->selected_num;
+  }
+  return unselected_num;
+}
+
 Icon *
 _efm_sel_first_get(Smart_Data *sd)
 {
diff --git a/src/efm/efm_util.h b/src/efm/efm_util.h
index d7b4705..dc068c3 100644
--- a/src/efm/efm_util.h
+++ b/src/efm/efm_util.h
@@ -67,6 +67,7 @@ void           _cb_reblock(void *data);
 
 void  _efm_sel_all(Smart_Data *sd);
 void  _efm_sel_none(Smart_Data *sd);
+int   _efm_sel_not_count(Smart_Data *sd);
 Icon *_efm_sel_first_get(Smart_Data *sd);
 Icon *_efm_sel_last_get(Smart_Data *sd);
 void  _efm_sel_rename(Smart_Data *sd);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to