From f442bdb3ee3c935aababd798c5b22b9a8064191e Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Thu, 29 Aug 2019 10:06:42 -0400 Subject: [PATCH] elm_systray: add back beta constructor Summary: 1/2 year ago we have removed the automatic generation of legacy headers. In this go we also removed the installation of legacy eo beta APIs, as they definitly should not be used. However, there is the legacy systray API which does not depend directly on eo. Apps could use this before due to specifying the BETA define, now they only can call the API, but cannot construct the object they need. This adds this back under the beta tag, so those apps can continue working. I am not sure myself if i like the commit or not, its a beta thing, why should we fix it. However, Its quite a easy thing to add such a constructor method for us, and enables app to continue working. Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: jf_simon, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9757 --- src/lib/elementary/elm_systray.c | 7 +++++++ src/lib/elementary/elm_systray.h | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/lib/elementary/elm_systray.c b/src/lib/elementary/elm_systray.c index a7bff14701..eef1617f07 100644 --- a/src/lib/elementary/elm_systray.c +++ b/src/lib/elementary/elm_systray.c @@ -514,4 +514,11 @@ _elm_unneed_systray(void) } } +EAPI Elm_Systray* +elm_systray_add(Evas_Object *win) +{ + return efl_add(ELM_SYSTRAY_CLASS, win); +} + + #include "elm_systray_eo.c" diff --git a/src/lib/elementary/elm_systray.h b/src/lib/elementary/elm_systray.h index b41ce8ce99..cbebeaf0ae 100644 --- a/src/lib/elementary/elm_systray.h +++ b/src/lib/elementary/elm_systray.h @@ -4,4 +4,15 @@ # ifndef EFL_NOLEGACY_API_SUPPORT # include "elm_systray_eo.legacy.h" # endif + +/** + * Add a new systray element + * + * @param parent The parent object + * @return A new systray object which will be displayed on a window manager that provides appindicator support. + * + * @ingroup Elm_Systray + */ +EAPI Elm_Systray *elm_systray_add(Evas_Object *win); + #endif