This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 019dcfaaf9799f5ce06e4ee2ddd5f74e03115d05
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Wed Nov 6 13:30:13 2024 +0000
main menu - blacking block - offer remove all entry
@feat
---
src/bin/e_int_menus.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c
index 942cc4f41..2f67ecb2f 100644
--- a/src/bin/e_int_menus.c
+++ b/src/bin/e_int_menus.c
@@ -430,6 +430,17 @@ e_int_menus_lost_clients_new(void)
return m;
}
+static void
+_e_int_menus_inhibitors_remove_all(void *data EINA_UNUSED, E_Menu *m EINA_UNUSED, E_Menu_Item *mi EINA_UNUSED)
+{
+ while (e_msgbus_data->screensaver_inhibits)
+ {
+ E_Msgbus_Data_Screensaver_Inhibit *inhib =
+ e_msgbus_data->screensaver_inhibits->data;
+ e_msgbus_screensaver_inhibit_remove(inhib->cookie);
+ }
+}
+
static void
_e_int_menus_inhibit_cb(void *data, E_Menu *m EINA_UNUSED, E_Menu_Item *mi EINA_UNUSED)
{
@@ -448,8 +459,17 @@ e_int_menus_inhibitors_new(void)
char buf[1024];
m = e_menu_new();
+
+ mi = e_menu_item_new(m);
+ e_menu_item_label_set(mi, _("Remove All"));
+ e_menu_item_callback_set(mi, _e_int_menus_inhibitors_remove_all, NULL);
+
if (!((e_msgbus_data) && (e_msgbus_data->screensaver_inhibits)))
return NULL;
+
+ mi = e_menu_item_new(m);
+ e_menu_item_separator_set(mi, 1);
+
EINA_LIST_FOREACH(e_msgbus_data->screensaver_inhibits, l, inhibit)
{
mi = e_menu_item_new(m);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.