diff --git a/src/core/widgets/button_controls.py b/src/core/widgets/button_controls.py index b589c7a..924d659 100644 --- a/src/core/widgets/button_controls.py +++ b/src/core/widgets/button_controls.py @@ -30,6 +30,8 @@ class ButtonControls(Gtk.ButtonBox): ... def _load_widgets(self): + widget_registery.expose_object("button-controls", self) + icons_path = settings_manager.path_manager.get_icons_path() center_widget = Gtk.ButtonBox() zoomout_button = Gtk.Button() diff --git a/src/core/widgets/image_list.py b/src/core/widgets/image_list.py index e4ce0f1..80441cc 100644 --- a/src/core/widgets/image_list.py +++ b/src/core/widgets/image_list.py @@ -36,7 +36,7 @@ class ImageList(Gtk.Box): event_system.subscribe("load-image-list", self.load_image_list) def _load_widgets(self): - ... + widget_registery.expose_object("image-list", self) def _clear_children(self, widget: Gtk.Object) -> None: ''' Clear children of a gtk widget. ''' diff --git a/src/core/widgets/image_view.py b/src/core/widgets/image_view.py index 01b4553..e8aea93 100644 --- a/src/core/widgets/image_view.py +++ b/src/core/widgets/image_view.py @@ -61,7 +61,7 @@ class ImageView(ImageViewMixin, Gtk.Image): event_system.subscribe("zoom-in", self._zoom_in) def _load_widgets(self): - ... + widget_registery.expose_object("image-view", self) def _handle_file_from_dnd(self, path = None): logger.debug(f"Loading image from: {path}")