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 1663bf2f0a71b4f3894142f62f1e3e2079ec97e0
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Aug 18 14:28:49 2026 -0600
elementary: describe Efl.Ui.Legacy instead of the bg widget
The interface's doc block was a copy-paste of the bg widget's
description, down to the bit about tiled and stretched backgrounds.
Efl.Ui.Legacy has nothing to do with backgrounds: it declares no
members at all and exists so that efl_isa(obj, EFL_UI_LEGACY_INTERFACE),
reached through elm_widget_is_legacy(), can tell whether an object was
created by elm_*_add() rather than the unified API, which decides theme
group naming, part aliases and compatibility paths.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/elementary/efl_ui_legacy.eo | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/lib/elementary/efl_ui_legacy.eo b/src/lib/elementary/efl_ui_legacy.eo
index 4537d302ed..ddd20e32ae 100644
--- a/src/lib/elementary/efl_ui_legacy.eo
+++ b/src/lib/elementary/efl_ui_legacy.eo
@@ -1,9 +1,18 @@
interface @beta Efl.Ui.Legacy
{
- [[The bg (background) widget is used for setting (solid) background decorations
+ [[Marker interface for widgets instantiated through the legacy $[elm_*_add()]
+ API.
- in a window (unless it has transparency enabled) or on any container object. It
- works just like an image but has some properties useful for backgrounds, such as
- setting it to tiled, centered, scaled or stretched.
+ Widget classes are shared between the unified and the legacy API, so a class
+ alone does not say which of the two created a given object. Legacy widget
+ classes therefore implement this interface and nothing else: it declares no
+ methods, no properties and no events, and exists purely so that
+ $[efl_isa(obj, EFL_UI_LEGACY_INTERFACE)] can answer that question. Widget
+ code asks through $[elm_widget_is_legacy()] and uses the answer to pick the
+ legacy theme group name, the legacy part aliases and the compatibility
+ behaviour paths.
+
+ This is internal machinery. Applications should not implement it, and its
+ presence on an object is not part of any API contract.
]]
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.