From d686aa737e3185c6bcd62f4f85b9cda2e1100d49 Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Sat, 2 Aug 2025 22:18:47 +0530 Subject: [PATCH] fix: define start_with_dimensions function to resolve NameError Co-authored-by: aider (openai/claude-sonnet-4) --- widgets/customrevealer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/widgets/customrevealer.py b/widgets/customrevealer.py index a7303f4..bf1712a 100644 --- a/widgets/customrevealer.py +++ b/widgets/customrevealer.py @@ -206,7 +206,10 @@ class SlideRevealer(Gtk.Overlay): pos = self._get_offscreen_pos_cached() self._current_position = (float(pos[0]), float(pos[1])) self._fixed.move(self.child, int(pos[0]), int(pos[1])) - + + def start_with_dimensions(): + AnimationManager.get_instance().add_widget(self) + return False # Use idle_add to ensure layout is complete GLib.idle_add(start_with_dimensions)