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
l-n-s
gajim
Commits
eefb01e7
Commit
eefb01e7
authored
20 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
in service discovery an item can have no name
parent
259983a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/gtkgui/config.py
+4
-3
4 additions, 3 deletions
plugins/gtkgui/config.py
plugins/gtkgui/gtkgui.py
+2
-2
2 additions, 2 deletions
plugins/gtkgui/gtkgui.py
with
6 additions
and
5 deletions
plugins/gtkgui/config.py
+
4
−
3
View file @
eefb01e7
...
...
@@ -1562,8 +1562,9 @@ class Service_discovery_window:
if
len
(
model
.
get_path
(
iter
))
==
1
:
expand
=
True
for
item
in
items
:
if
not
item
.
has_key
(
'
name
'
):
continue
name
=
''
if
item
.
has_key
(
'
name
'
):
name
=
item
[
'
name
'
]
# We look if this item is already in the treeview
iter_child
=
model
.
iter_children
(
iter
)
while
iter_child
:
...
...
@@ -1571,7 +1572,7 @@ class Service_discovery_window:
break
iter_child
=
model
.
iter_next
(
iter_child
)
if
not
iter_child
:
# If it is not we add it
iter_child
=
model
.
append
(
iter
,
(
item
[
'
name
'
]
,
item
[
'
jid
'
]))
iter_child
=
model
.
append
(
iter
,
(
name
,
item
[
'
jid
'
]))
self
.
agent_infos
[
item
[
'
jid
'
]]
=
{
'
identities
'
:
[
item
]}
if
self
.
iter_is_visible
(
iter_child
)
or
expand
:
self
.
browse
(
item
[
'
jid
'
])
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui/gtkgui.py
+
2
−
2
View file @
eefb01e7
...
...
@@ -458,12 +458,12 @@ class plugin:
array
[
2
],
array
[
3
])
def
handle_event_agent_info_items
(
self
,
account
,
array
):
#('AGENT_INFO', account, (agent, items))
#('AGENT_INFO
_ITEMS
', account, (agent, items))
if
self
.
windows
[
account
].
has_key
(
'
browser
'
):
self
.
windows
[
account
][
'
browser
'
].
agent_info_items
(
array
[
0
],
array
[
1
])
def
handle_event_agent_info_info
(
self
,
account
,
array
):
#('AGENT_INFO', account, (agent, identities, features))
#('AGENT_INFO
_INFO
', account, (agent, identities, features))
if
self
.
windows
[
account
].
has_key
(
'
browser
'
):
self
.
windows
[
account
][
'
browser
'
].
agent_info_info
(
array
[
0
],
array
[
1
],
\
array
[
2
])
...
...
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