Skip to content
Snippets Groups Projects
Commit f430c33f authored by Nico's avatar Nico
Browse files

Use action for creating account

parent a20f81d1
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,14 @@ class RegistrationActions(Actions): ...@@ -15,9 +15,14 @@ class RegistrationActions(Actions):
self._setup_actions() self._setup_actions()
def _setup_actions(self): def _setup_actions(self):
self._setup_create_account_action()
self._setup_proceed_from_nickname_action() self._setup_proceed_from_nickname_action()
self._setup_return_from_passwords_action() self._setup_return_from_passwords_action()
def _setup_create_account_action(self):
self._setup_action("create-account", None,
self._create_account)
def _setup_proceed_from_nickname_action(self): def _setup_proceed_from_nickname_action(self):
self._setup_action("proceed-from-nickname", None, self._setup_action("proceed-from-nickname", None,
self._proceed_from_nickname) self._proceed_from_nickname)
...@@ -26,6 +31,10 @@ class RegistrationActions(Actions): ...@@ -26,6 +31,10 @@ class RegistrationActions(Actions):
self._setup_action("return-from-passwords", None, self._setup_action("return-from-passwords", None,
self._return_from_passwords) self._return_from_passwords)
# pylint: disable=unused-argument
def _create_account(self, action, parameter):
self.widget.on_create_account_pressed(None)
# pylint: disable=unused-argument # pylint: disable=unused-argument
def _proceed_from_nickname(self, action, parameter): def _proceed_from_nickname(self, action, parameter):
self.widget.proceed_from_nickname() self.widget.proceed_from_nickname()
......
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="label" translatable="yes">Create Account</property> <property name="label" translatable="yes">Create Account</property>
<signal name="clicked" handler="on_create_account_pressed"/> <property name="action_name">registration.create-account</property>
<style> <style>
<class name="suggested-action"/> <class name="suggested-action"/>
</style> </style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment