Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
556a861d
Commit
556a861d
authored
4 years ago
by
Daniel Brötzmann
Committed by
Philipp Hörist
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Preferences: Add checkbutton for use_keyring
parent
0d7f2706
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
gajim/data/gui/preferences_window.ui
+19
-2
19 additions, 2 deletions
gajim/data/gui/preferences_window.ui
gajim/gtk/preferences.py
+7
-0
7 additions, 0 deletions
gajim/gtk/preferences.py
with
26 additions
and
2 deletions
gajim/data/gui/preferences_window.ui
+
19
−
2
View file @
556a861d
...
@@ -2702,6 +2702,23 @@ to discover one from the server. (Example: stun.iptel.org)</property>
...
@@ -2702,6 +2702,23 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<property
name=
"position"
>
1
</property>
<property
name=
"position"
>
1
</property>
</packing>
</packing>
</child>
</child>
<child>
<object
class=
"GtkCheckButton"
id=
"use_keyring_checkbutton"
>
<property
name=
"label"
translatable=
"yes"
>
Use your system’s _keyring to store passwords
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"halign"
>
start
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"_on_use_keyring_toggled"
swapped=
"no"
/>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
<child>
<child>
<object
class=
"GtkBox"
>
<object
class=
"GtkBox"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"visible"
>
True
</property>
...
@@ -2751,7 +2768,7 @@ to discover one from the server. (Example: stun.iptel.org)</property>
...
@@ -2751,7 +2768,7 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<packing>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
<property
name=
"position"
>
3
</property>
</packing>
</packing>
</child>
</child>
<child>
<child>
...
@@ -2768,7 +2785,7 @@ to discover one from the server. (Example: stun.iptel.org)</property>
...
@@ -2768,7 +2785,7 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<packing>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
<property
name=
"position"
>
4
</property>
</packing>
</packing>
</child>
</child>
</object>
</object>
...
...
This diff is collapsed.
Click to expand it.
gajim/gtk/preferences.py
+
7
−
0
View file @
556a861d
...
@@ -423,6 +423,9 @@ def create_av_combobox(opt_name, device_dict, config_name=None,
...
@@ -423,6 +423,9 @@ def create_av_combobox(opt_name, device_dict, config_name=None,
st
=
app
.
config
.
get
(
'
log_contact_status_changes
'
)
st
=
app
.
config
.
get
(
'
log_contact_status_changes
'
)
self
.
_ui
.
log_show_changes_checkbutton
.
set_active
(
st
)
self
.
_ui
.
log_show_changes_checkbutton
.
set_active
(
st
)
st
=
app
.
config
.
get
(
'
use_keyring
'
)
self
.
_ui
.
use_keyring_checkbutton
.
set_active
(
st
)
self
.
_ui
.
enable_logging
.
set_active
(
app
.
get_debug_mode
())
self
.
_ui
.
enable_logging
.
set_active
(
app
.
get_debug_mode
())
self
.
_ui
.
enable_logging
.
show
()
self
.
_ui
.
enable_logging
.
show
()
...
@@ -1052,6 +1055,10 @@ def update_proxy_list(self):
...
@@ -1052,6 +1055,10 @@ def update_proxy_list(self):
def
on_log_show_changes_checkbutton_toggled
(
self
,
widget
):
def
on_log_show_changes_checkbutton_toggled
(
self
,
widget
):
self
.
on_checkbutton_toggled
(
widget
,
'
log_contact_status_changes
'
)
self
.
on_checkbutton_toggled
(
widget
,
'
log_contact_status_changes
'
)
# Use system’s keyring
def
_on_use_keyring_toggled
(
self
,
widget
):
self
.
on_checkbutton_toggled
(
widget
,
'
use_keyring
'
)
# Enable debug logging
# Enable debug logging
def
on_enable_logging_toggled
(
self
,
widget
):
def
on_enable_logging_toggled
(
self
,
widget
):
app
.
set_debug_mode
(
widget
.
get_active
())
app
.
set_debug_mode
(
widget
.
get_active
())
...
...
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