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
eb1737a4
Commit
eb1737a4
authored
4 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
PopoverSettings: Bind current label to setting
parent
4cbd71d3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/gtk/settings.py
+10
-0
10 additions, 0 deletions
gajim/gtk/settings.py
with
10 additions
and
0 deletions
gajim/gtk/settings.py
+
10
−
0
View file @
eb1737a4
...
...
@@ -565,8 +565,18 @@ def __init__(self, *args, entries):
self
.
_current_label
.
set_text
(
entries
.
get
(
self
.
setting_value
,
''
))
self
.
_bind_label
()
self
.
show_all
()
def
_bind_label
(
self
):
if
self
.
type_
not
in
(
SettingType
.
CONFIG
,
SettingType
.
ACCOUNT_CONFIG
):
return
app
.
settings
.
bind_signal
(
self
.
value
,
self
.
_current_label
,
'
set_text
'
)
def
_add_menu_entries
(
self
,
entries
):
if
isinstance
(
entries
,
list
):
entries
=
{
key
:
key
for
key
in
entries
}
...
...
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