fix: define start_with_dimensions function to resolve NameError

This commit is contained in:
tr1x_em committed 2025-08-02 22:18:47 +05:30
1 parent 9fbb9468ff
commit 09b46affa3
1 file changed
+3
+3
View File
@@ -207,6 +207,9 @@ class SlideRevealer(Gtk.Overlay):
self._current_position = (float(pos[0]), float(pos[1])) self._current_position = (float(pos[0]), float(pos[1]))
self._fixed.move(self.child, int(pos[0]), int(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 # Use idle_add to ensure layout is complete
GLib.idle_add(start_with_dimensions) GLib.idle_add(start_with_dimensions)