Skip to content

Commit

Permalink
Preferences: Change adium theme variant on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Rostagno authored and marianoguerra committed Sep 7, 2011
1 parent f45d3db commit 1f72f5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion emesene/gui/gtkui/Preferences.py
Expand Up @@ -792,14 +792,22 @@ def __init__(self, session):
label = gtk.Label(_('Adium theme variant'))
label.set_alignment(0.0, 0.5)
self.adium_variant_combo = self.create_combo(gui.theme.conv_theme.get_theme_variants,
'session.config.adium_theme_variant')
'session.config.adium_theme_variant',
changed_cb = self._on_adium_variant_combo_changed)

hbox.pack_start(label, True, True)
hbox.pack_start(self.adium_variant_combo, False)
adium_tab.pack_start(hbox, False)

def on_update(self):
self.tabs.on_update()

def _on_adium_variant_combo_changed(self, combo, property_name, value):
variant_name = combo.get_active_text()
#update adium variants combo
self.set_attr(property_name, variant_name)
gui.theme.conv_theme.variant = variant_name

def _on_adium_theme_combo_changed(self, property_name, value):
#update adium variants combo
self.set_attr(property_name, value)
Expand Down

0 comments on commit 1f72f5d

Please sign in to comment.