don't write wrong config option when we change option combobox in theme window
This commit is contained in:
parent
f89c0c3baf
commit
e5529eb0ac
|
@ -161,8 +161,7 @@ class GajimThemesWindow:
|
||||||
def set_theme_options(self, theme, option = 'account'):
|
def set_theme_options(self, theme, option = 'account'):
|
||||||
self.no_update = True
|
self.no_update = True
|
||||||
self.options_combobox.set_active(self.options.index(option))
|
self.options_combobox.set_active(self.options.index(option))
|
||||||
textcolor = gajim.config.get_per('themes', theme,
|
textcolor = gajim.config.get_per('themes', theme, option + 'textcolor')
|
||||||
option + 'textcolor')
|
|
||||||
if textcolor:
|
if textcolor:
|
||||||
state = True
|
state = True
|
||||||
self.text_colorbutton.set_color(gtk.gdk.color_parse(textcolor))
|
self.text_colorbutton.set_color(gtk.gdk.color_parse(textcolor))
|
||||||
|
@ -228,9 +227,11 @@ class GajimThemesWindow:
|
||||||
self.current_option)
|
self.current_option)
|
||||||
|
|
||||||
def on_bold_togglebutton_toggled(self, widget):
|
def on_bold_togglebutton_toggled(self, widget):
|
||||||
|
if not self.no_update:
|
||||||
self._set_font()
|
self._set_font()
|
||||||
|
|
||||||
def on_italic_togglebutton_toggled(self, widget):
|
def on_italic_togglebutton_toggled(self, widget):
|
||||||
|
if not self.no_update:
|
||||||
self._set_font()
|
self._set_font()
|
||||||
|
|
||||||
def _set_color(self, state, widget, option):
|
def _set_color(self, state, widget, option):
|
||||||
|
|
Loading…
Reference in New Issue