diff --git a/briar-gtk/briar_gtk/container.py b/briar-gtk/briar_gtk/container.py index 6a16ad87b121959dfb5df8057f5609d31c0704ea..e943d98f49074248989fbbba55990ada7348e696 100644 --- a/briar-gtk/briar_gtk/container.py +++ b/briar-gtk/briar_gtk/container.py @@ -16,4 +16,6 @@ class Container(Gtk.Overlay): self.builder = Gtk.Builder() def _add_from_resource(self, ui_filename): - self.builder.add_from_resource(os.path.join(RESOURCES_DIR, ui_filename)) + self.builder.add_from_resource( + os.path.join(RESOURCES_DIR, ui_filename) + ) diff --git a/briar-gtk/briar_gtk/containers/registration.py b/briar-gtk/briar_gtk/containers/registration.py index 253875f80819c25500dbae3a3899ed79cf9b911c..383b918f426aeef140d22e1b78e19f7712e1c8d5 100644 --- a/briar-gtk/briar_gtk/containers/registration.py +++ b/briar-gtk/briar_gtk/containers/registration.py @@ -140,6 +140,7 @@ class RegistrationContainer(Container): error_label = self.builder.get_object("passwords_error_label") self._show_error_message(error_label, error_message) - def _show_error_message(self, error_label, error_message): + @staticmethod + def _show_error_message(error_label, error_message): error_label.set_label(error_message) error_label.show()