From 61d4a28d6bd832554d343e3c6d8c3ccd52cc1a11 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Mon, 21 Mar 2016 17:37:56 +0300 Subject: [PATCH] accept and decline images --- src/callbacks.py | 8 ++++++-- src/images/accept.png | Bin 0 -> 469 bytes src/images/decline.png | Bin 0 -> 1185 bytes src/list_items.py | 10 ++++++++-- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 src/images/accept.png create mode 100755 src/images/decline.png diff --git a/src/callbacks.py b/src/callbacks.py index f97d664..d69e614 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -161,11 +161,15 @@ def tox_file_recv(window, tray): def file_recv_chunk(tox, friend_number, file_number, position, chunk, length, user_data): - Profile.get_instance().incoming_chunk(friend_number, file_number, position, chunk[:length] if length else None) + invoke_in_main_thread(Profile.get_instance().incoming_chunk, + friend_number, + file_number, + position, + chunk[:length] if length else None) def file_chunk_request(tox, friend_number, file_number, position, size, user_data): - Profile.get_instance().outgoing_chunk( + invoke_in_main_thread(Profile.get_instance().outgoing_chunk, friend_number, file_number, position, diff --git a/src/images/accept.png b/src/images/accept.png new file mode 100755 index 0000000000000000000000000000000000000000..5612f2693f46c3bb960c093ec6176e68a7b7aa73 GIT binary patch literal 469 zcmV;`0V@89P)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-TS-JgRCwC#nnAL|FbG2}CilNV&&uC*(do4QAmP}>+d3{U0xTziyN?sbHO3ft zK(+p-y97E&F~I8_3Xm;=$jmPR@#5>GiYys+12rhuS1N*C6q$j*&LF5zri;BnlwPZP z7Y?isrXnkCvVZ%3+W=xJ4%-OgV?4GQ#Bp8AnII5a4los&J*I*T5b|ZV>JCn>0R{*P zVUTS$#wxZ1%<_j13>ZXra(0bmU^3~1|AHV11655#6v@CSoHa73rH1ir92Yq_4|E|9 z%musHS%FEtmO53a&RXeyy|Ou|ZM;{VajZaguQ;ehUi2UU?xOXdUGh#gKDCY|4peLy zC~BlS7$kmoRoB9bv@}v$Md#Aa`^tR;h03{lLxft1cZ#UKQaI|373&=$R)fftcm?rQ z0qmAqa%E>sqqiar^1~okq_A!(fVHfu#O>=8`_00000 LNkvXXu0mjfo+!6c literal 0 HcmV?d00001 diff --git a/src/images/decline.png b/src/images/decline.png new file mode 100755 index 0000000000000000000000000000000000000000..dfdf85d2964eb980261e89bddae912511e6da67f GIT binary patch literal 1185 zcmV;S1YY}zP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ=CrLy>RCwCd+FOWKRUF6h&+I8QO;dDANs%79=@3$8N*AIiBOJRJ)k9Yz3Mvrl zrKqqAK1dSSOApaS2nnG`ZJP3_LQNyfii$v(FoL|KgIY=D^sxVjPSd&U%Q@rm2j^w) zz4lq(^Iz+KTc>MKOLP)?u>cq1Je+~a=#FQO;Q;pF2kgK$e1)TBC(uj7`!oOu*(uO2jo91*;^^Bj!HXQ`L{v0C(`+IbG)Dz zXJL0l>AtABXJi;VJ{-kRd}iQDJd_h+3!cGnb%SnU+{mlpSe|1GZq%b;h3*1l`zm`i z8Q}uoEby|f5)h*4Q3PTj_Q!wPK^4u2woofl`*!LN>FM!z^^(S)q89ITt*nNq-t5)d zEmp_qsu1_ZudwboLJZ*gMi5y`-63gj_%UhMaI|zJqV{6^(#o2B73PhSbv8sUwj6)A zqxrBatg}dZEHK<+fRCi@)g{ui%