generated from itdominator/Python-With-Gtk-Template
Fixing miniview load timing isues
This commit is contained in:
parent
038f46fdff
commit
3add597c80
@ -61,7 +61,8 @@ class EditorsContainer(Gtk.Box):
|
|||||||
...
|
...
|
||||||
|
|
||||||
def _load_widgets(self):
|
def _load_widgets(self):
|
||||||
|
miniview = MiniViewWidget()
|
||||||
self.add(Separator("separator_left"))
|
self.add(Separator("separator_left"))
|
||||||
self.add(EditorsPaned())
|
self.add(EditorsPaned())
|
||||||
self.add(Separator("separator_right"))
|
self.add(Separator("separator_right"))
|
||||||
self.add(MiniViewWidget())
|
self.add(miniview)
|
@ -67,8 +67,6 @@ class SourceView(SourceViewControllerMixin, GtkSource.View):
|
|||||||
self.set_show_right_margin(True)
|
self.set_show_right_margin(True)
|
||||||
self.set_right_margin_position(80)
|
self.set_right_margin_position(80)
|
||||||
self.set_background_pattern(0) # 0 = None, 1 = Grid
|
self.set_background_pattern(0) # 0 = None, 1 = Grid
|
||||||
# NOTE: Add back once we move to Gtk 4 and use GtkSource 5
|
|
||||||
# self.set_indenter( AutoIndenter() )
|
|
||||||
|
|
||||||
buffer = self.get_buffer()
|
buffer = self.get_buffer()
|
||||||
self._create_default_tag(buffer)
|
self._create_default_tag(buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user