git.lucas.co / cce-fonts
font browser

commit7f90bb03cef104fdae9a4a76552adf54ea061ed7
parent36938a5bf1
authorLucas Galante <[email protected]>
date2026-07-12 19:33
refactor: Element -> WidgetHost (cce-ui 6bd flip)

Mechanical rename; the god-trait name is gone workspace-wide.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018u7qTwzX95dd5ysAkaSCLk

 src/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 070a64a..4e688b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,7 +4,7 @@ use wayland_client::QueueHandle;
 use glyphon::FontSystem;
 use cce_ui::engine::{Application, EngineState, LogicalPosition, LogicalSize, WindowSettings};
 use cce_ui::widget::{
-    MouseButton, ElementState, MouseScrollDelta, KeyEvent, Element,
+    MouseButton, ElementState, MouseScrollDelta, KeyEvent, WidgetHost,
     TextBox, Button, Key, NamedKey, Dropdown, Spinbox,
 };
 
@@ -317,9 +317,9 @@ impl TypefaceApp {
     /// Event dispatch order of the dissolved panels: the flat child list, panel-grouped
     /// (left: search/list/buttons; mid, when a family is selected; bottom bar in select
     /// mode) — the same sets the Plates forwarded to.
-    fn dispatch_widgets(&mut self, forward: bool) -> Vec<*mut (dyn Element + 'static)> {
+    fn dispatch_widgets(&mut self, forward: bool) -> Vec<*mut (dyn WidgetHost + 'static)> {
         let self_ptr = self as *mut Self;
-        let mut v: Vec<*mut (dyn Element + 'static)> = Vec::new();
+        let mut v: Vec<*mut (dyn WidgetHost + 'static)> = Vec::new();
         unsafe {
             v.push((*self_ptr).search_box.as_ptr_mut());
             for btn in (*self_ptr).font_buttons.iter_mut() {