Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
7c85a32c
Commit
7c85a32c
authored
Apr 06, 2006
by
jimpp
Browse files
Include users with no group un "General" group in systray->chat with
parent
f2355f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/systray.py
View file @
7c85a32c
...
...
@@ -240,7 +240,6 @@ class Systray:
groups_menu
=
gtk
.
Menu
()
# FIXME : also print contacts that are not in a group
groups_list
=
gajim
.
groups
[
account
].
keys
()
groups_list
.
sort
()
for
group
in
groups_list
:
...
...
@@ -254,7 +253,11 @@ class Systray:
for
jid
in
gajim
.
contacts
.
get_jid_list
(
account
):
contact
=
gajim
.
contacts
.
get_contact_with_highest_priority
(
account
,
jid
)
if
group
in
contact
.
groups
and
contact
.
show
!=
'offline'
and
\
if
contact
.
groups
==
[]:
#user has no group, print him in General
contact_groups
=
_
(
'General'
)
else
:
contact_groups
=
contact
.
groups
if
group
in
contact_groups
and
contact
.
show
!=
'offline'
and
\
contact
.
show
!=
'error'
:
at_least_one
=
True
s
=
gtkgui_helpers
.
escape_underscore
(
contact
.
get_shown_name
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment