refactor!(shared): remove unused constants and deprecated methods

This commit is contained in:
sankalp committed 2026-07-09 18:56:05 +05:45
1 parent 1403c5adc0
commit de9ab766c4
9 files changed
+4 -158

No files matched your search

-4
View File
@@ -33,8 +33,6 @@ class PopupWindow(WaylandWindow):
self._pointing_widget = pointing_to
self._base_margin = self.extract_margin(margin)
self.margin = self._base_margin.values()
self._initial_position = True
self.connect("notify::visible", self.do_update_handlers)
def get_coords_for_widget(self, widget: Gtk.Widget) -> tuple[int, int]:
@@ -86,7 +84,6 @@ class PopupWindow(WaylandWindow):
GLib.timeout_add(10, self._do_delayed_reposition)
def _do_delayed_reposition(self):
self._initial_position = True
self.do_reposition(self.do_calculate_edges())
return False
@@ -190,4 +187,3 @@ class PopupWindow(WaylandWindow):
if tuple(self.margin) != tuple(new_margin):
self.margin = new_margin
self._initial_position = False