first tab in preferences is working with instant apply the only thing that does not work correctly is iconstyle_combobox i will fix it in about an hour from now

This commit is contained in:
bigpod 2005-03-06 16:20:33 +00:00
parent 2139dc0cfd
commit 1408778961
2 changed files with 17 additions and 7 deletions

View File

@ -140,6 +140,9 @@ class preferences_window:
for jid in self.plugin.windows[a]['chats'].keys():
self.plugin.windows[a]['chats'][jid].update_tags()
def on_iconstyle_combobox_changed(self, widget):
pass
def on_save_position_checkbutton_toggled(self, widget):
"""On Save Position Checkbutton Toggled"""
if widget.get_active():
@ -577,15 +580,21 @@ class preferences_window:
#iconStyle
list_style = os.listdir('plugins/gtkgui/icons/')
l = []
model = gtk.ListStore(gobject.TYPE_STRING)
self.iconstyle_combobox.set_model(model)
cell = gtk.CellRendererText()
self.iconstyle_combobox.pack_start(cell, gtk.TRUE)
self.iconstyle_combobox.add_attribute(cell, 'text', 0)
for i in list_style:
if i != 'CVS' and i[0] != '.':
l.append(i)
if l.count == 0:
l.append(" ")
self.iconstyle_combobox.set_popdown_strings(l)
if self.plugin.config['iconstyle'] in l:
self.iconstyle_combobox.entry.set_text(self.plugin.config['iconstyle'])
model.append([i])
#if l.count == 0:
# l.append(" ")
#self.iconstyle_combobox.set_popdown_strings(l)
#if self.plugin.config['iconstyle'] in l:
#self.iconstyle_combobox.entry.set_text(self.plugin.config['iconstyle'])
# pass
#Save position
st = self.plugin.config['saveposition']

View File

@ -3192,6 +3192,7 @@ on the server as a vCard</property>
<widget class="GtkComboBox" id="iconstyle_combobox">
<property name="visible">True</property>
<property name="items" translatable="yes"></property>
<signal name="changed" handler="on_iconstyle_combobox_changed" last_modification_time="Sun, 06 Mar 2005 16:01:18 GMT"/>
</widget>
<packing>
<property name="padding">0</property>