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
c914a0d0
Commit
c914a0d0
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
only use nice 48x48 img
parent
69fe0f02
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/pixmaps/events/contact_offline.png
+0
-0
0 additions, 0 deletions
data/pixmaps/events/contact_offline.png
data/pixmaps/events/contact_online.png
+0
-0
0 additions, 0 deletions
data/pixmaps/events/contact_online.png
src/notify.py
+6
-16
6 additions, 16 deletions
src/notify.py
with
6 additions
and
16 deletions
data/pixmaps/events/contact_offline.png
0 → 100644
+
0
−
0
View file @
c914a0d0
2.63 KiB
This diff is collapsed.
Click to expand it.
data/pixmaps/events/contact_online.png
0 → 100644
+
0
−
0
View file @
c914a0d0
2.76 KiB
This diff is collapsed.
Click to expand it.
src/notify.py
+
6
−
16
View file @
c914a0d0
...
...
@@ -109,18 +109,12 @@ class DesktopNotification:
actor
=
gajim
.
get_first_contact_instance_from_jid
(
account
,
jid
).
name
else
:
actor
=
jid
# default value of txt
txt
=
actor
img
=
'
chat.png
'
# img to display
ntype
=
'
im
'
# Notification Type
if
event_type
==
_
(
'
Contact Signed In
'
):
img
=
'
online.png
'
img
=
'
contact_
online.png
'
ntype
=
'
presence.online
'
elif
event_type
==
_
(
'
Contact Signed Out
'
):
img
=
'
offline.png
'
img
=
'
contact_
offline.png
'
ntype
=
'
presence.offline
'
elif
event_type
in
(
_
(
'
New Message
'
),
_
(
'
New Single Message
'
),
_
(
'
New Private Message
'
)):
...
...
@@ -182,18 +176,14 @@ class DesktopNotification:
img
=
'
ft_stopped.png
'
else
:
txt
=
''
else
:
# failsafe values
img
=
'
chat_msg_recv.png
'
# img to display
ntype
=
'
im
'
# Notification Type
txt
=
actor
# default value of txt
path
=
os
.
path
.
join
(
gajim
.
DATA_DIR
,
'
pixmaps
'
,
'
events
'
,
img
)
path
=
os
.
path
.
abspath
(
path
)
if
not
os
.
path
.
exists
(
path
):
# we may use img from iconset
iconset
=
gajim
.
config
.
get
(
'
iconset
'
)
iconset
=
gajim
.
config
.
get
(
'
iconset
'
)
if
not
iconset
:
iconset
=
'
sun
'
path
=
os
.
path
.
join
(
gajim
.
DATA_DIR
,
'
iconsets
'
,
iconset
,
'
16x16
'
,
img
)
path
=
os
.
path
.
abspath
(
path
)
self
.
notif
=
dbus_support
.
get_notifications_interface
()
if
self
.
notif
is
None
:
raise
dbus
.
DBusException
()
...
...
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