Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar GTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar GTK
Commits
f430c33f
Commit
f430c33f
authored
5 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
Use action for creating account
parent
a20f81d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-gtk/briar_gtk/actions/registration.py
+9
-0
9 additions, 0 deletions
briar-gtk/briar_gtk/actions/registration.py
briar-gtk/data/ui/registration.ui
+1
-1
1 addition, 1 deletion
briar-gtk/data/ui/registration.ui
with
10 additions
and
1 deletion
briar-gtk/briar_gtk/actions/registration.py
+
9
−
0
View file @
f430c33f
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
briar-gtk/data/ui/registration.ui
+
1
−
1
View file @
f430c33f
...
@@ -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"
>
registrati
on
.
create
-
account
</property
>
<style>
<style>
<class
name=
"suggested-action"
/>
<class
name=
"suggested-action"
/>
</style>
</style>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment