From d9def4d2a421578ce505744ef3d11731e91fe768 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sat, 10 Dec 2005 22:00:06 +0000
Subject: [PATCH] [grenshad] add FT-related icons. thank him as artist

---
 THANKS                             |   1 +
 data/pixmaps/events/ft_done.png    | Bin 0 -> 1251 bytes
 data/pixmaps/events/ft_error.png   | Bin 0 -> 1636 bytes
 data/pixmaps/events/ft_stopped.png | Bin 0 -> 1207 bytes
 src/dialogs.py                     |   3 ++-
 src/notify.py                      |  22 +++++++++++++++-------
 6 files changed, 18 insertions(+), 8 deletions(-)
 create mode 100644 data/pixmaps/events/ft_done.png
 create mode 100644 data/pixmaps/events/ft_error.png
 create mode 100644 data/pixmaps/events/ft_stopped.png

diff --git a/THANKS b/THANKS
index 4247154daf..c885955e77 100644
--- a/THANKS
+++ b/THANKS
@@ -3,6 +3,7 @@ Alexey Nezhdanov
 Alfredo Junix
 Andrew Sayman
 Christian Bjälevik
+Christophe Got
 Christoph Neuroth
 Denis Craven
 Dennis Craven
diff --git a/data/pixmaps/events/ft_done.png b/data/pixmaps/events/ft_done.png
new file mode 100644
index 0000000000000000000000000000000000000000..191947ce53221bbc57945bf439506e67c068fb8a
GIT binary patch
literal 1251
zcmV<91RVQ`P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS0000PbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$UbxA})RA}Dq
znrmznRTRg6XJ@C+-9jl)q=ooE#l+I4P#dHwDk@^4i7_!6{3a$Qn5ZP6Bt}Tkgz!ZY
zA0LPb#>A*W0b__%Lga%444}5<AqbI3ThcANrQLQP^EiIk2ivj*s&u#DZgMl{o;fpf
zezX5Mb2Imfs&XU$<fa7>kqJYls`CE@P*ohdQ{G`shV?JsKlYg6`$gpX0L0jzabi#M
zf}RmRPuk9GGGd!(M$(tL&9uGa0YExw$w-`Gb|zf5#4ja18bo4ijt{_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d7UTr-eyv<X$obJ)MOt@SRuln_Au~%A3ERy
z{0KauBNEQ}QUejW57-La15muU6mx!YVlY=@V4qA5=JrLgPsCG)?F3e+YG6XFl@O64
zU=6SqD7ixDIp8%_-7z5-dx%Ia&;ry04L~h$9QY0R9oVO;;hTE3%0C*}mfcnHY_b3V
N002ovPDHLkV1lXuH*x>~

literal 0
HcmV?d00001

diff --git a/data/pixmaps/events/ft_error.png b/data/pixmaps/events/ft_error.png
new file mode 100644
index 0000000000000000000000000000000000000000..a950bb853110230da487c93a80716287eff29a1d
GIT binary patch
literal 1636
zcmV-q2AlbbP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS0000PbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$V_DMuRRA}Dq
znrTc_R~UvB5D*ZIA{yZbjq#@yP*Ff_h`|VLLTa>uT5Q@<i?*i57;On@FijL`lmMDw
zjIlJ@C~jz_rd3hdhE*I3R%BBI9K>0f4F=}zch20oaY0~UMy&EBPhf_7&UfB>-g~yo
zBmk5C&rEu21yJBk;oTO%q92_Cj|mykMLfX(x{0TRTtGo62^FCxG%%xw&=NWUJz*e>
zL@&`t8B9Ejg#p6M^V&^-5v4>KAt5R#Z6#4n)DX9b+tiFZ#6Ltm@h{OpG*Z)=iB@Xb
zL*fz9A>4!~f@mc*S0jisP_{lt2`Ci=lv9HT7tuS22-7nnOk6~}(3`9myM<m;2|cB!
zY`u;XaJT6!uG~0`t2d9}TG3JB7_JxR;zr4F;skD%o<wn39&rXGl5;36&qrDLMMx?N
zP+obN_zM+PS5R49NL)u%O%ZBtl@MjPRa?Pr<xl|`**mcEgAlA(8G_|2EJQ31L3l(k
z5rVMrU@Qx>uyk24LYG=t5*mcXO9U1NVbP+6L=Zwk79u#<LQv5Aju&9@f0baHT0%Mk
z%UFH?nA^tk;LC-FT`gEgCqCE{0)`ThlKM6OZt~>GaB_0uI6FJR#l@L3Wr_=2U8iu|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Os`!Vi_EP3j@i)6pFf`;dDlw+
zrgaR>$Ui4RZIBGPrEF{|LPEl4XlQ77sp0J5%*@Q>bHdiGn;pL+V~OrHU*N0JC+flx
z?TNR1w~?1!zkdBovukv8wAirCTM}s_uW_sZ=K0Foxi)R;A3ZMT8y7a3R99E?#$38|
zNqkUe&GN;?KTf`$Juw?~Msu+BL-M!0{OZ-Kd1JP1`<{PZ6TOO7r1!>aQ$O+-9Nnr)
zac(Fny~@vsj{drTJYR6w{)%bOzMZ^|qsM+3-&ahdeaWZQcOf}>2Xy-G@q5WP@t%0R
i1Wf#|#Dsu%M8JRMr8g8lQQwyU0000<MNUMnLSTaT+X#OE

literal 0
HcmV?d00001

diff --git a/data/pixmaps/events/ft_stopped.png b/data/pixmaps/events/ft_stopped.png
new file mode 100644
index 0000000000000000000000000000000000000000..3f55cd0813c3253a72e0d0a458d4e841f5f4d38c
GIT binary patch
literal 1207
zcmV;o1W5adP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS0000PbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$UNl8RORA}Dq
znoVp}RTRg6=gmw%hR(E7>PM`hmNc!Bex|h=su3|t(6}JFaG@>?tTa)pU`&iOsSD#m
zn<y;UR2L)?rD#kI)u1Fws1dO3v=EvWsVyQc1={I+wsTy(ndwZO0!2DA;7oFJ&pr3N
z_s;Lm|K0cU?iE$#X8y@73m_tCL#C?o{{>K0=J+e(jVlt@{&)Y<W8(Wo<i-H_IUI9h
zBYZ()fzOEAu|*ctX0e2Qv30C%T@C=ENlQ%P#M!ZMi4vbrdNByIwk;39@X$HNMkf$4
z5HS-n#6ZLnzMuso?2p6<X1~Pw6UAGosi_VRz%l{s`lN%7FAt&$k;6<|0YOz4_@g&r
z)Mn9m<=F9Gmlpu62_$hN+mZpeB0y_PJFPo*BQk$-5n^ol54OS3@Cgc67B2rkpemT>
zG(e50ttt>>t4e}+StK5u&iwFAos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src/dialogs.py b/src/dialogs.py
index e3eb3a1297..f8efe49ece 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -473,7 +473,8 @@ def __init__(self):
 		#here you write your name in the form Name FamilyName <someone@somewhere>
 		dlg.set_translator_credits(_('translator-credits'))
 		
-		artists = ['Dennis Craven', 'Membris Khan', 'Guillaume Morin']
+		artists = ['Dennis Craven', 'Membris Khan', 'Guillaume Morin',
+			'Christophe Got']
 		dlg.set_artists(artists)
 
 		rep = dlg.run()
diff --git a/src/notify.py b/src/notify.py
index 9c806774c2..3adddde44d 100644
--- a/src/notify.py
+++ b/src/notify.py
@@ -140,10 +140,9 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
 			#we talk about a name here
 			txt = _('%s wants to send you a file.') % actor
 		elif event_type == _('File Transfer Error'):
-			img = 'error.png' # FIXME: better img
+			img = 'ft_stopped.png'
 			ntype = 'transfer.error'
 		elif event_type in (_('File Transfer Completed'), _('File Transfer Stopped')):
-			img = 'closed.png' # # FIXME: better img and split events
 			ntype = 'transfer.complete'
 			if file_props is not None:
 				if file_props['type'] == 'r':
@@ -155,9 +154,11 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
 					if event_type == _('File Transfer Completed'):
 						txt = _('You successfully received %(filename)s from %(name)s.')\
 							% {'filename': filename, 'name': name}
+						img = 'ft_done.png'
 					else: # ft stopped
 						txt = _('File transfer of %(filename)s from %(name)s stopped.')\
 							% {'filename': filename, 'name': name}
+						img = 'ft_stopped.png'
 				else:
 					receiver = file_props['receiver']
 					if hasattr(receiver, 'jid'):
@@ -170,18 +171,25 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
 					if event_type == _('File Transfer Completed'):
 						txt = _('You successfully sent %(filename)s to %(name)s.')\
 							% {'filename': filename, 'name': name}
+						img = 'ft_done.png'
 					else: # ft stopped
 						txt = _('File transfer of %(filename)s to %(name)s stopped.')\
 							% {'filename': filename, 'name': name}
+						img = 'ft_stopped.png'
 			else:
 				txt = ''
 
-		iconset = gajim.config.get('iconset')
-		if not iconset:
-			iconset = 'sun'
-		# FIXME: use 32x32 or 48x48 someday
-		path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16', img)
+		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()
-- 
GitLab