def on_icongroup_combo_changed(self, combo): if self.init_confirmed: # fix this: first switch self.write_gui_settings_to_base() files = self.icongroups.current.get_test() iconchanger.rebuild(*files, **self.current_state()) self.icongroups.switch(combo.get_active_text()) if self.icongroups.current.is_custom: self.store['custom_icons'].clear() for key, value in self.icongroups.current.state.items(): self.store['custom_icons'].append([key.capitalize(), value]) self.gui['custom_icons_treeview'].set_sensitive(self.icongroups.current.is_custom) self.read_gui_setting_from_base()
def on_icongroup_combo_changed(self, combo): if self.init_confirmed: # fix this: first switch self.write_gui_settings_to_base() files = self.icongroups.current.get_test() iconchanger.rebuild(*files, **self.current_state()) self.icongroups.switch(combo.get_active_text()) if self.icongroups.current.is_custom: self.store['custom_icons'].clear() for key, value in self.icongroups.current.state.items(): self.store['custom_icons'].append([key.capitalize(), value]) self.gui['custom_icons_treeview'].set_sensitive( self.icongroups.current.is_custom) self.read_gui_setting_from_base()
def on_apply_click(self, *args): files = self.icongroups.current.get_real() iconchanger.rebuild(*files, **self.current_state())