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
330ebb9c
Commit
330ebb9c
authored
18 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
use the blinking when systray holds pending events [only new api/only in windows atm]
parent
12c5820a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
data/iconsets/transports/msn/32x32/offline.png
+0
-0
0 additions, 0 deletions
data/iconsets/transports/msn/32x32/offline.png
src/common/events.py
+1
-1
1 addition, 1 deletion
src/common/events.py
src/statusicon.py
+4
-3
4 additions, 3 deletions
src/statusicon.py
with
5 additions
and
4 deletions
data/iconsets/transports/msn/32x32/offline.png
+
0
−
0
View replaced file @
12c5820a
View file @
330ebb9c
1.82 KiB
|
W:
|
H:
1.83 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
src/common/events.py
+
1
−
1
View file @
330ebb9c
...
...
@@ -219,7 +219,7 @@ class Events:
return
first_account
,
first_jid
,
first_event
def
get_nb_systray_events
(
self
,
types
=
[]):
'''
returns the number of events displayedin roster
'''
'''
returns the number of events displayed
in roster
'''
return
self
.
_get_nb_events
(
attribute
=
'
systray
'
,
types
=
types
)
def
get_systray_events
(
self
):
...
...
This diff is collapsed.
Click to expand it.
src/statusicon.py
+
4
−
3
View file @
330ebb9c
...
...
@@ -26,8 +26,6 @@ class StatusIcon(systray.Systray):
#NOTE: gtk api does NOT allow:
# leave, enter motion notify
# and can't do cool tooltips we use
# and we could use blinking instead of unsupported animation
# or we could emulate animation by every foo ms chaning the image
def
__init__
(
self
):
systray
.
Systray
.
__init__
(
self
)
self
.
status_icon
=
gtk
.
StatusIcon
()
...
...
@@ -55,9 +53,12 @@ class StatusIcon(systray.Systray):
text
=
helpers
.
get_notification_icon_tooltip_text
()
self
.
status_icon
.
set_tooltip
(
text
)
if
gajim
.
events
.
get_nb_systray_events
():
state
=
'
message
'
state
=
'
message
'
# FIXME: this state should be called event, not message
self
.
status_icon
.
props
.
blinking
=
True
else
:
state
=
self
.
status
self
.
status_icon
.
props
.
blinking
=
False
#FIXME: do not always use 16x16 (ask actually used size and use that)
image
=
gajim
.
interface
.
roster
.
jabber_state_images
[
'
16
'
][
state
]
if
image
.
get_storage_type
()
==
gtk
.
IMAGE_PIXBUF
:
...
...
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