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
eta
gajim
Commits
990a7f62
Commit
990a7f62
authored
19 years ago
by
dkirov
Browse files
Options
Downloads
Patches
Plain Diff
bug with the status icon and number of accounts
parent
f754367e
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/systray.py
+6
-6
6 additions, 6 deletions
src/systray.py
with
6 additions
and
6 deletions
src/systray.py
+
6
−
6
View file @
990a7f62
...
...
@@ -101,7 +101,7 @@ class Systray:
self
.
set_tooltip
(
nb
)
# update the tooltip
def
change_status
(
self
,
global_status
=
'
offli
ne
'
):
def
change_status
(
self
,
global_status
=
No
ne
):
'''
change the tooltip text and set tray image to
'
global_status
'
'''
text
,
single
,
multiline
,
multilined
=
'
Gajim
'
,
''
,
''
,
False
if
gajim
.
contacts
:
...
...
@@ -129,9 +129,9 @@ class Systray:
text
+=
'
-
'
+
helpers
.
get_uf_show
(
'
offline
'
)
# change image and status, only if it is different
if
self
.
status
!=
global_status
:
if
global_status
is
not
None
and
self
.
status
!=
global_status
:
self
.
status
=
global_status
self
.
set_img
()
self
.
set_img
()
self
.
tip
.
set_tip
(
self
.
t
,
text
)
def
start_chat
(
self
,
widget
,
account
,
jid
):
...
...
@@ -328,12 +328,12 @@ class Systray:
# and we set the appropriate tooltip
if
unread_messages_no
>
1
:
text
=
_
(
'
Gajim - %s unread messages
'
)
%
unread_messages_no
self
.
tip
.
set_tip
(
self
.
t
,
text
)
elif
unread_messages_no
==
1
:
text
=
_
(
'
Gajim - 1 unread message
'
)
self
.
tip
.
set_tip
(
self
.
t
,
text
)
else
:
# it's None or 0
uf_show
=
helpers
.
get_uf_show
(
self
.
status
)
text
=
_
(
'
Gajim - %s
'
)
%
uf_show
self
.
tip
.
set_tip
(
self
.
t
,
text
)
self
.
change_status
()
def
hide_icon
(
self
):
if
self
.
t
:
...
...
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