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 4ecd905f791fb4921657cd324cd802b5560d489e
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Thu Oct 26 18:49:52 2023 +0100
raise items so slider indicators are visible
---
src/efm/efm_util.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/efm/efm_util.c b/src/efm/efm_util.c
index 382d62e..e979968 100644
--- a/src/efm/efm_util.c
+++ b/src/efm/efm_util.c
@@ -750,6 +750,7 @@ _cb_icon_mouse_down(void *data, Evas *e EINA_UNUSED,
_icon_focus_hide(icon->sd);
if (ev->button == 1)
{
+ evas_object_raise(icon->o_base);
if (icon->longpress_timer) ecore_timer_del(icon->longpress_timer);
icon->longpress_timer
= ecore_timer_add(ICON_LONGPRESS_TIMER, _cb_icon_longpress_timer, icon);
@@ -1357,6 +1358,17 @@ _cb_icon_detail_slider_changed(void *data, Evas_Object *o,
cmd_strbuf_exe_consume(buf, icon->sd->exe_open);
}
+static void
+_cb_icon_detail_slider_mouse_down(void *data, Evas *e EINA_UNUSED,
+ Evas_Object *obj EINA_UNUSED,
+ void *event_info)
+{
+ Evas_Event_Mouse_Down *ev = event_info;
+ Icon *icon = data;
+
+ if (ev->button == 1) evas_object_raise(icon->o_base);
+}
+
static Evas_Object *
_icon_detail_icon_add(Evas_Object *base, const char *icon, const char *dir)
{
@@ -1674,6 +1686,9 @@ _icon_detail_add(Icon *icon, Smart_Data *sd, Evas *e,
o = _icon_detail_grid_add(icon, sd, col);
o = elm_slider_add(o);
+ evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
+ _cb_icon_detail_slider_mouse_down,
+ icon);
_icon_detail_elm_object_prepare(o, col);
elm_slider_min_max_set(o, min, max);
elm_slider_unit_format_set(o, "%1.0f");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.