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 feb318fa90cd5fadc89ecc5c8589b71648e1e3e4
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Mon Dec 9 11:39:38 2024 +0000

    cpufreq - popup - allow it to stay around and not dismiss on click
---
 src/modules/cpufreq/e_mod_main.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/modules/cpufreq/e_mod_main.c b/src/modules/cpufreq/e_mod_main.c
index f3a903f6f..4c527f25b 100644
--- a/src/modules/cpufreq/e_mod_main.c
+++ b/src/modules/cpufreq/e_mod_main.c
@@ -315,14 +315,6 @@ static void _popup_del_cb(void *obj)
   _popup_del(e_object_data_get(obj));
 }
 
-static void
-_popup_comp_del_cb(void *data, Evas_Object *obj EINA_UNUSED)
-{
-  Instance *inst = data;
-
-  E_FREE_FUNC(inst->popup, e_object_del);
-}
-
 static void
 _cb_popup_image_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
                     void *info EINA_UNUSED)
@@ -440,14 +432,16 @@ _button_cb_mouse_down(void *data, Evas *e EINA_UNUSED,
        evas_object_smart_callback_add(o, "clicked", _cb_settings, inst);
 
        e_gadcon_popup_content_set(inst->popup, o_table);
-       e_comp_object_util_autoclose(inst->popup->comp_object,
-                                    _popup_comp_del_cb, NULL, inst);
        e_gadcon_popup_show(inst->popup);
        e_object_data_set(E_OBJECT(inst->popup), inst);
        E_OBJECT_DEL_SET(inst->popup, _popup_del_cb);
 
        _cb_cpf_render(inst);
      }
+   else if ((ev->button == 1) && (inst->popup))
+     {
+       E_FREE_FUNC(inst->popup, e_object_del);
+     }
    else if (ev->button == 3)
      {
         E_Menu *m;

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

Reply via email to