This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 2282f41ba93541835c63b3f78e9909cd3791dcc9
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sat Jul 11 09:04:52 2026 +0100

    elm - fix missing stop callback
    
    gthere is a quality one.. tho no quality button in the ui, but cannot
    remove apis - so add a stop one to replace it and map thaty to the
    actual event.
    
    @fix
---
 src/lib/elementary/elc_player.c    | 2 +-
 src/lib/elementary/elm_player_eo.c | 2 ++
 src/lib/elementary/elm_player_eo.h | 9 +++++++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elc_player.c b/src/lib/elementary/elc_player.c
index 1a0c7d52e6..a4cff0a1ef 100644
--- a/src/lib/elementary/elc_player.c
+++ b/src/lib/elementary/elc_player.c
@@ -352,7 +352,7 @@ static void
 _stop(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
 {
    elm_layout_signal_emit(data, "elm,button,stop", "elm");
-   efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_QUALITY_CLICKED, NULL);
+   efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_STOP_CLICKED, NULL);
 }
 
 static void
diff --git a/src/lib/elementary/elm_player_eo.c b/src/lib/elementary/elm_player_eo.c
index faefe3fb88..6592e02974 100644
--- a/src/lib/elementary/elm_player_eo.c
+++ b/src/lib/elementary/elm_player_eo.c
@@ -13,6 +13,8 @@ EWAPI const Efl_Event_Description _ELM_PLAYER_EVENT_PREV_CLICKED =
 EWAPI const Efl_Event_Description _ELM_PLAYER_EVENT_REWIND_CLICKED =
    EFL_EVENT_DESCRIPTION("rewind,clicked");
 EWAPI const Efl_Event_Description _ELM_PLAYER_EVENT_QUALITY_CLICKED =
+   EFL_EVENT_DESCRIPTION("stop,clicked");
+EWAPI const Efl_Event_Description _ELM_PLAYER_EVENT_STOP_CLICKED =
    EFL_EVENT_DESCRIPTION("quality,clicked");
 EWAPI const Efl_Event_Description _ELM_PLAYER_EVENT_EJECT_CLICKED =
    EFL_EVENT_DESCRIPTION("eject,clicked");
diff --git a/src/lib/elementary/elm_player_eo.h b/src/lib/elementary/elm_player_eo.h
index c0b909863c..713aceef23 100644
--- a/src/lib/elementary/elm_player_eo.h
+++ b/src/lib/elementary/elm_player_eo.h
@@ -77,6 +77,15 @@ EWAPI extern const Efl_Event_Description _ELM_PLAYER_EVENT_REWIND_CLICKED;
  */
 #define ELM_PLAYER_EVENT_REWIND_CLICKED (&(_ELM_PLAYER_EVENT_REWIND_CLICKED))
 
+EWAPI extern const Efl_Event_Description _ELM_PLAYER_EVENT_STOP_CLICKED;
+
+/** Called when stop was clicked
+ *
+ * @since 1.29
+ * @ingroup Elm_Player
+ */
+#define ELM_PLAYER_EVENT_STOP_CLICKED (&(_ELM_PLAYER_EVENT_STOP_CLICKED))
+
 EWAPI extern const Efl_Event_Description _ELM_PLAYER_EVENT_QUALITY_CLICKED;
 
 /** Called when quality was clicked

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

Reply via email to