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
Snippets
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
Erik Huelsmann
gajim
Commits
a269e4c4
Commit
a269e4c4
authored
20 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
sound treeview is now filled
parent
a4b334cd
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
src/config.py
+10
-9
10 additions, 9 deletions
src/config.py
with
10 additions
and
9 deletions
src/config.py
+
10
−
9
View file @
a269e4c4
...
...
@@ -557,16 +557,17 @@ class Preferences_window:
return
def
fill_sound_treeview
(
self
):
sounds
=
[
'
contact_disconnected
'
,
'
message_sent
'
,
'
contact_connected
'
,
\
'
first_message_received
'
,
'
next_message_received
'
]
events
=
{}
# config file MUST have sound_event AND sound_enevt_file
#events = {name : [use_it, file], name2 : [., .], ...}
#FIXME:
# for key in self.plugin.config.keys():
# if key.find('sound_') == 0:
# if not self.plugin.config.has_key(key + '_file'):
# continue
# ev = key.replace('sound_', '')
# events[ev] = [gajim.config.get(key), \
# gajim.config.get(key + '_file')]
for
key
in
sounds
:
if
not
(
gajim
.
config
.
exist
(
'
sound_
'
+
key
)
and
gajim
.
config
.
exist
(
\
'
sound_
'
+
key
+
'
_file
'
)):
continue
events
[
key
]
=
[
gajim
.
config
.
get
(
'
sound_
'
+
key
),
\
gajim
.
config
.
get
(
'
sound_
'
+
key
+
'
_file
'
)]
model
=
self
.
sound_tree
.
get_model
()
model
.
clear
()
for
ev
in
events
:
...
...
@@ -654,7 +655,6 @@ class Preferences_window:
self
.
xml
.
get_widget
(
'
merge_checkbutton
'
).
set_active
(
st
)
#iconset
#FIXME: path
list_style
=
os
.
listdir
(
'
../data/iconsets/
'
)
model
=
gtk
.
ListStore
(
gobject
.
TYPE_STRING
)
self
.
iconset_combobox
.
set_model
(
model
)
...
...
@@ -1355,6 +1355,7 @@ class Accounts_window:
if
gajim
.
connections
[
account
].
connected
:
gajim
.
connections
[
account
].
change_status
(
'
offline
'
,
'
offline
'
)
del
gajim
.
connections
[
account
]
gajim
.
config
.
del_per
(
'
accounts
'
,
account
)
del
self
.
plugin
.
windows
[
account
]
del
self
.
plugin
.
queues
[
account
]
del
self
.
plugin
.
roster
.
groups
[
account
]
...
...
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