Moved mirage2 to use newer GTK template structure patterns
This commit is contained in:
@@ -33,12 +33,12 @@ class PathLabel(Gtk.Label):
|
||||
self.set_margin_bottom(10)
|
||||
|
||||
def _subscribe_to_events(self):
|
||||
event_system.subscribe("update_path_label", self.update_path_label)
|
||||
event_system.subscribe("update-path-label", self.update_path_label)
|
||||
|
||||
def _load_widgets(self):
|
||||
...
|
||||
|
||||
def update_path_label(self, path = None):
|
||||
def update_path_label(self, path: str):
|
||||
if not path: return
|
||||
|
||||
self.set_label(path)
|
||||
|
||||
Reference in New Issue
Block a user