Exposing widgets to registery
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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. '''
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user