refactor: remove InfoBarWidget in favor of plugin-based one
- Replace direct InfoBarWidget with set_info_labels command that emits events to plugins - Replace mini view widget in favor of plugin-based one - Add widget registry exposure for code-container and editors-container - Fix DND mixin exec_with_args call (tuple args issue) - Add break statements in tabs_widget loops for efficiency - Add _update_transparency call to BaseContainer
This commit is contained in:
@@ -9,7 +9,6 @@ from gi.repository import Gtk
|
||||
from ...widgets.code.code_base import CodeBase
|
||||
|
||||
from ...widgets.separator_widget import Separator
|
||||
from ...widgets.code.mini_view_widget import MiniViewWidget
|
||||
|
||||
from .editors_container import EditorsContainer
|
||||
|
||||
@@ -48,9 +47,11 @@ class CodeContainer(Gtk.Box):
|
||||
def _create_editor_widget(self, code_base: CodeBase):
|
||||
editors_container = Gtk.Box()
|
||||
|
||||
widget_registery.expose_object("code-container", self)
|
||||
widget_registery.expose_object("editors-container", editors_container)
|
||||
|
||||
editors_container.add( Separator("separator_left") )
|
||||
editors_container.add( EditorsContainer(code_base) )
|
||||
editors_container.add( Separator("separator_right") )
|
||||
editors_container.add( code_base.get_mini_view_widget() )
|
||||
|
||||
return editors_container
|
||||
|
||||
Reference in New Issue
Block a user