decode possible none unicode string in
conversation_font
This commit is contained in:
parent
cec336112d
commit
02e538a718
1 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ class PreferencesWindow:
|
||||||
font = gtkgui_helpers.get_default_font()
|
font = gtkgui_helpers.get_default_font()
|
||||||
if font is None:
|
if font is None:
|
||||||
font = 'Sans 10'
|
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)
|
self.xml.get_widget('conversation_fontbutton').set_font_name(font)
|
||||||
|
|
||||||
# on new message
|
# on new message
|
||||||
|
@ -730,7 +730,7 @@ class PreferencesWindow:
|
||||||
|
|
||||||
def on_preference_widget_font_set(self, widget, text):
|
def on_preference_widget_font_set(self, widget, text):
|
||||||
font = widget.get_font_name()
|
font = widget.get_font_name()
|
||||||
gajim.config.set(text, font)
|
gajim.config.set(text, font.decode('utf-8'))
|
||||||
self.update_text_font()
|
self.update_text_font()
|
||||||
self.plugin.save_config()
|
self.plugin.save_config()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue