From 02e538a718097ad17c889f52a6c7b553c717bbe0 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Fri, 26 Aug 2005 09:33:20 +0000 Subject: [PATCH] decode possible none unicode string in conversation_font --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index 71d6f3238..143513832 100644 --- a/src/config.py +++ b/src/config.py @@ -241,7 +241,7 @@ class PreferencesWindow: font = gtkgui_helpers.get_default_font() if font is None: font = 'Sans 10' - gajim.config.set('conversation_font', font) + gajim.config.set('conversation_font', font.decode('utf-8')) self.xml.get_widget('conversation_fontbutton').set_font_name(font) # on new message @@ -730,7 +730,7 @@ class PreferencesWindow: def on_preference_widget_font_set(self, widget, text): font = widget.get_font_name() - gajim.config.set(text, font) + gajim.config.set(text, font.decode('utf-8')) self.update_text_font() self.plugin.save_config()