From dfe1d78391790c736235f25a4ea472a222d255f3 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sat, 10 Dec 2005 22:27:41 +0000
Subject: [PATCH] add icons for more events

---
 data/pixmaps/events/chat_msg_recv.png   | Bin 0 -> 1374 bytes
 data/pixmaps/events/priv_msg_recv.png   | Bin 0 -> 2016 bytes
 data/pixmaps/events/single_msg_recv.png | Bin 0 -> 1948 bytes
 src/notify.py                           |   6 +++++-
 4 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 data/pixmaps/events/chat_msg_recv.png
 create mode 100644 data/pixmaps/events/priv_msg_recv.png
 create mode 100644 data/pixmaps/events/single_msg_recv.png

diff --git a/data/pixmaps/events/chat_msg_recv.png b/data/pixmaps/events/chat_msg_recv.png
new file mode 100644
index 0000000000000000000000000000000000000000..a7abf6aba8329d1b677615b0aa8358237756b7cd
GIT binary patch
literal 1374
zcmV-k1)=(hP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS0000PbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$U@JU2LRA}Dq
z*?UY|RU8NKL-#au$%Gb&Vx~rUY%u1Ns9Bh9?!mH=Fds{%u51%1EAO(7hoTF*e?$$Y
z%Ho*&hyAl9+rSv&qJOB1BOqa8Fy=IlIVMcyQ65Se{rNp`N)OPM0xc~`Z}Lgu=Jww6
zy*;mcE+Zl~pD|wmUjQ!(z*x{DjH%W!7LdT0G6|n~_|##a8lT(ne+*;6Dz6EEf<1<U
z<uX6z8R!6V(lw?C_!8gW$JmM$a~c5KVqExD6yjSj%LP-aLMe9r4%+#$nv#;UDKEd6
zbh$;8xHpZq@7PVx#B8Fa_dGB$%m7oUPB7;GtlI<NZtungZ(A;Y@A8$jN3Esf$4^pA
z%XM;QGnq_u@nRj7lzc{;x4c4%1%Yyy9~lc=<MIHgyWu$bca{r9uZ^X$vJ+%9_Sz}t
zF#HF7!l2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UITikUVXzA;is+g87yU*0xdaFYY(A3oO
zD`N|B(1I$je!+olI}C+{g!FfGbbOC}e11?_R#tWr`}qMHuYW^>Z5Ip!1|gOW55w~!
zK=r(M#e{7?m_?zvOJEXze+mk(e@BMxA;^Ls#4kb;{k(d~$6ug9GMs@nKJE3rrSt{x
g1@Hy%1@O540m9xpseW?cbpQYW07*qoM6N<$g1!uQE&u=k

literal 0
HcmV?d00001

diff --git a/data/pixmaps/events/priv_msg_recv.png b/data/pixmaps/events/priv_msg_recv.png
new file mode 100644
index 0000000000000000000000000000000000000000..f24d9c5398b8e9758e0431a431dc21b8b78594b3
GIT binary patch
literal 2016
zcmV<62Os!}P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS0000PbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$Xa!Eu%RA}Dq
znF&x;RT#&S+`xx`z!S{1a0hY03PeEJ1oVZ%Q`{F!K`6mJt#sU`J*SyQtEr~VGPfD`
z1yDg2QNY9v6cs{b5%D3u^QO{&-#PbkO)*V*C>Ah(&V%8;^Z%XiJKy=<y(R!mo@JRd
z0yF|N0yF|N0yF~rrvT_{4G9fZ{~rLSu9k4=VTJrX!C+ZoPeqv<{n63E9J9h5A06QR
zxh{yE)D7*_W=LP}3wC}6Sj7_3Vz8@kf|V@<D_sCqG7s#^T(IIfV3%XTie`fqz7AFp
z19mAI>|zwyg-Eb`y8irYV0jT>xzoVTP6azN8SL~Vuu~JjPL2o583*=jI9Rq8JJ))`
z+Oj!5oZnZ#JTkxs^IYgn$6@U|uCTOdhD~b*(S%dL$`{oiz=^TK{JN#moEtxJhdwhD
zjP!T_d@`DN*E%n;8WI#uR5IWA0JQr0EG-s9^nkr>OQccM^_inkeKbTsJU#$7Lz8E3
z4MeAQtq?i-MO0^xA+vGD1IQVV>qkPN4d?(TM@yXB9R&Tck+_+m!Ogk==<}uvGkR`>
z_CV2r5WM8v1_6WYQJykNGFev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DRP&q{BQ`Zqy{DXUcr?;10?`@UAo^LW$}Yh_C{|Mtm}s>TikH<2X|C#^Q0={s{rt}
zVedvy1z;LRBLu<51u)0}yz*R%A0bwquYUEhP;m$q?{*csA3%A+V3a3%;_3k}R2&*2
zmCAboHh3ri6A_9qj4(0)FQH^UdyBuwcb@k=cPo?qaCv7xT;A2+XaM1~{#?dQAu5@?
z!thGND-Ji$O%?5ML6MOGLTU9U(9hZc-j5IP?dq3>d0y*zyUPv!w!Kfi0B8_|DbUse
zShb?x<9(<P8tfo$X=H8k7jM8P<R-2q`3MO!LVl8|!~VjUFvr`0)IdqJSE|y2QI#Gn
z+5=vFxOf5Bx5-NZ2t)v;V@xdo+pewf>Eiy64xln`Dh`{Nab4@Az%d=+J-WkvH9*@=
z0q~{oNGhfG0yvMfhgBaHT68xPqQ5Qrn>yC}ojFsLDJ+7lAJ{H%051$d4Ar800Un^m
z{}cf)QmircoVwY{)|xhzeB#z5v$blp{Qi!b?`sQpI*DU3SpjI4(DttXv6v|tr|WOi
z_{I~zJ57^zCS4G{&m23n)^$M~8D54cMe{IK0r<OGtXJ2VzeQujQ@g!RleZ`335Zxb
zsCC`22oVYZe|@j{mR~F8|DZAasXree6Aq*^0)jfu&N?T&g&6{XkBa$Q4kFcL^9C9<
z4dwv{nNgEY2#9D~^sX9!r3A3BCIWww`8A69n>6}0xF<AZ%7&E1O<F|R!tI6!oG}n4
zzdOMEJ-Zt7IvPD1>?0;JXHCiw5L9JM3+!ROLNQ-KqichIMn)!ElTw7~Fr`$M(CGBc
yJme#@D$+sOd?Ah9p1G%#WZIncIjPg5T=y3}Wcz1Y4&?s;0000<MNUMnLSTZ<5S?!T

literal 0
HcmV?d00001

diff --git a/data/pixmaps/events/single_msg_recv.png b/data/pixmaps/events/single_msg_recv.png
new file mode 100644
index 0000000000000000000000000000000000000000..ee1017dd3f81994faaf2c4024aec68b400ab540b
GIT binary patch
literal 1948
zcmV;N2V?k&P)<h;3K|Lk000e1NJLTq001xm001xu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Q>9=;{pTdFbL_?iz)*=L~|dM0UasBl6u0W(Gt6e7R5ZV
z9jWOG7g&9AM~$;w(VuqW3`{fwG}`HU&o#D5nsK`SPa2>9*WaC{N!yWrmb1@vXV{gr
zM<y9wh!nGCVzL?FZZ%osVlsc5#)L=q_Bu`8igZ>WGMwR3(g|~rU<TmtE1S1kZ8rZq
zjq#8C`2d-4C!H1uI&rou@xn`ZP5^i`o4@TYrDim5pfRG(Jm4TRE~JwJk>-SMr9H8L
z0A`yq@CTV+ZZ=;*V_=<oLPMq;Nx5v&HpL13%KYGs-e~ZfJFH)IHkmJ>(XY-vVj^?R
zNrwf3x=h21Zm?c#Hh+`GUUmK%8JV;r<%sDRbE_<*(d)5!$VX;vNPCRtFVWcPv3p8M
irmaculG;|~zP|vpr)4hYG%VKu0000<MNUMnLSTY2+L0Up

literal 0
HcmV?d00001

diff --git a/src/notify.py b/src/notify.py
index 3adddde44d..1941ac230f 100644
--- a/src/notify.py
+++ b/src/notify.py
@@ -124,16 +124,20 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
 			ntype = 'presence.offline'
 		elif event_type in (_('New Message'), _('New Single Message'),
 			_('New Private Message')):
-			img = 'chat.png' # FIXME: better img and split events
 			ntype = 'im.received'
 			if event_type == _('New Private Message'):
 				room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
 				room_name,t = gajim.get_room_name_and_server_from_room_jid(room_jid)
 				txt = _('%(nickname)s in room %(room_name)s has sent you a new message.')\
 					% {'nickname': nick, 'room_name': room_name}
+				img = 'priv_msg_recv.png'
 			else:
 				#we talk about a name here
 				txt = _('%s has sent you a new message.') % actor
+				if event_type == _('New Message'):
+					img = 'chat_msg_recv.png'
+				else: # New Single Message
+					img = 'single_msg_recv.png'
 		elif event_type == _('File Transfer Request'):
 			img = 'requested.png' # FIXME: better img
 			ntype = 'transfer'
-- 
GitLab