From 435156aba81a443f1764d038e00d41e7cff63cf1 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Tue, 30 Aug 2011 21:23:24 +0300 Subject: [PATCH] ClientsIcons.fix icons in gc after reconect --- clients_icons/clients_icons.py | 3 +- clients_icons/manifest.ini | 2 +- plagins_translations/plagins_translations.pot | 46 +++++------------- plagins_translations/ru.mo | Bin 10713 -> 10514 bytes 4 files changed, 15 insertions(+), 36 deletions(-) diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index c0a7ddd..68f8eb3 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -329,7 +329,7 @@ class ClientsIconsPlugin(GajimPlugin): if tag: caps = tag[0].getAttr('node') iter_ = iq_obj.gc_control.get_contact_iter(iq_obj.nick.decode('utf-8')) - model = iq_obj.gc_control.list_treeview.get_model() + model = iq_obj.gc_control.model if model[iter_][self.muc_renderer_num] is not None: return self.set_icon(model, iter_, self.muc_renderer_num, caps) @@ -375,6 +375,7 @@ class ClientsIconsPluginConfigDialog(GajimPluginConfigDialog): self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path( 'config_dialog.ui') self.xml = gtk.Builder() + self.xml.set_translation_domain('gajim_plugins') self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH, ['vbox1']) vbox = self.xml.get_object('vbox1') diff --git a/clients_icons/manifest.ini b/clients_icons/manifest.ini index fce6c49..53d8a8e 100644 --- a/clients_icons/manifest.ini +++ b/clients_icons/manifest.ini @@ -1,7 +1,7 @@ [info] name: Clients icons short_name: clients_icons -version: 1.1 +version: 1.2 description: Shows the client icons in the roster and in groupchats. Depends: Gajim > r12506 diff --git a/plagins_translations/plagins_translations.pot b/plagins_translations/plagins_translations.pot index fd7a68e..8111c75 100644 --- a/plagins_translations/plagins_translations.pot +++ b/plagins_translations/plagins_translations.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-08-30 18:24+0400\n" +"POT-Creation-Date: 2011-08-30 20:22+0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -468,26 +468,6 @@ msgstr "" msgid "Show icons in roster" msgstr "" -#: community_plugins/chatstate/config_dialog.ui.h:1 -#: community_plugins/plagins_translations/config_dialog.ui.h:1 -msgid "is composing a message..." -msgstr "" - -#: community_plugins/chatstate/config_dialog.ui.h:2 -#: community_plugins/plagins_translations/config_dialog.ui.h:2 -msgid "is doing something else" -msgstr "" - -#: community_plugins/chatstate/config_dialog.ui.h:3 -#: community_plugins/plagins_translations/config_dialog.ui.h:3 -msgid "is paying attention to the conversation" -msgstr "" - -#: community_plugins/chatstate/config_dialog.ui.h:4 -#: community_plugins/plagins_translations/config_dialog.ui.h:4 -msgid "paused composing a message" -msgstr "" - #: community_plugins/set_location/config_dialog.ui.h:1 msgid "A URI or URL pointing to information about the location" msgstr "" @@ -634,22 +614,10 @@ msgid "Hide status combobox" msgstr "" #: community_plugins/roster_tweaks/config_dialog.ui.h:2 -#: banner_tweaks/config_dialog.ui.h:6 -msgid "If checked, status icon will be displayed in chat window banner." -msgstr "" - -#: community_plugins/roster_tweaks/config_dialog.ui.h:3 -#: banner_tweaks/config_dialog.ui.h:7 -msgid "" -"If checked, status message of contact will be displayed in chat window " -"banner." -msgstr "" - -#: community_plugins/roster_tweaks/config_dialog.ui.h:4 msgid "Show quick-change status field" msgstr "" -#: community_plugins/roster_tweaks/config_dialog.ui.h:5 +#: community_plugins/roster_tweaks/config_dialog.ui.h:3 msgid "Use Ctrl +M to hide/show menu" msgstr "" @@ -1034,6 +1002,16 @@ msgid "" "name in chat window banner." msgstr "" +#: banner_tweaks/config_dialog.ui.h:6 +msgid "If checked, status icon will be displayed in chat window banner." +msgstr "" + +#: banner_tweaks/config_dialog.ui.h:7 +msgid "" +"If checked, status message of contact will be displayed in chat window " +"banner." +msgstr "" + #: banner_tweaks/config_dialog.ui.h:8 msgid "Use small fonts for contact name and resource name" msgstr "" diff --git a/plagins_translations/ru.mo b/plagins_translations/ru.mo index 45f7a37710e57f177e6ab9077ec049fb8624fe9b..b0858d7a297f2f05d40130109c10dee6506ad6ba 100644 GIT binary patch delta 2273 zcmZA2TTE0(9LMoL%FQZXSSYj&>M>aYHUqx(rP01B#kj@ zcrb3H#am1?8s)`HY>R1qQJd5!FEOT#+S>G@sZAxMRY*+w{p}8YaKfC=%$&1l=KSY> z4nHj48}#la$L=%ATIws*6{F2|VRt+S%IQS20G`3|_$!vkc?m9CcKI%SUJwj zhmEM~Ixq=0A%Es^n2g<+iGAo}e*2z=F1(BU*`FNrq)$;dO5kKH`cM<4BM)cAsD+i| z1gv-c7Mw_b18Tx9%*F#4hu^yXC7i(g_8SdN@DEPGVN~=pSw#Zo;%uCTTHrd=LOw?R zY&Qo@*z5YIPz&!zf@)VV6|bST;CD>NcvkIcAd7}BtVW$^Kuxd)U&bw{8-#HxooYdlQDFtP^gn@IeXbQc)V#J4dQA3IZtuX3XTHBlSt z`mLxNe}US|i>L_RL527}YK#6r<LF95=aqFNhbdKVFm;GfgjZ`M6Iv{70NlN zt!O|^5On=!e35?0jc-Q%ej5g3%s#_q^l$O_x-O5fuEr`nfJZzUOKDUR-(Kv-jhM&P z4Y&^#nV+!$hp-NFh+{i`fUS5P7vpp;-hkVXG_r@NEq;R9qBO#&9GiiU&}*VGi$)C_ zU4>n!J-UF3zzrm7b{}8IL7a(&+$|SdQRla#Zrp=8*zd;g;sW}AV=c~P|8(6}B$qrp zOhbG5U39=6A=g?88(W5@&Q1)`KZxb{40WS2GERHkjCznZ)L!pLE$jq-%2xCvKe1W< z=zL9>qxZjyMm{HwL75^nP*3(e3e2L2T%c#&@bK}3De)!mp#}O{QEorFVWuqTU zkWYavLoT(DJHOM7_uw?fkE7SdMoM?`A|39|UN~bnz{}pP5ZKSNE@wV%PP)U~R`l6P~OA`4$ zyor@mJ_|OAT1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