From 0ab5416432d07ed4949c7f97bd1b0d3db9aa91a0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 22 Jan 2005 20:03:19 +0000 Subject: [PATCH] save emoticons before building them --- plugins/gtkgui/config.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index a9016283f..9b58d3935 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -217,6 +217,15 @@ class preference_Window: else: self.plugin.config['mergeaccounts'] = 0 self.plugin.roster.regroup = self.plugin.config['mergeaccounts'] + #Emoticons + model = self.emot_tree.get_model() + iter = model.get_iter_first() + emots = [] + while iter: + emots.append(model.get_value(iter, 0)) + emots.append(model.get_value(iter, 1)) + iter = model.iter_next(iter) + self.plugin.config['emoticons'] = string.join(emots, '\t') #use emoticons chk = self.xml.get_widget('use_emoticons_checkbutton') if chk.get_active(): @@ -264,15 +273,6 @@ class preference_Window: del self.plugin.config['msg%i_name' % i] del self.plugin.config['msg%i' % i] i += 1 - #Emoticons - model = self.emot_tree.get_model() - iter = model.get_iter_first() - emots = [] - while iter: - emots.append(model.get_value(iter, 0)) - emots.append(model.get_value(iter, 1)) - iter = model.iter_next(iter) - self.plugin.config['emoticons'] = string.join(emots, '\t') #trayicon if self.chk_trayicon.get_active(): self.plugin.config['trayicon'] = 1