Patch to fix dataforms rendering. Thanks to Florob. Fixes #5834

This commit is contained in:
Alexander Cherniuk 2010-08-06 01:10:35 +03:00
parent 4635a08f94
commit 44fb0529d0
1 changed files with 3 additions and 2 deletions

View File

@ -402,6 +402,7 @@ class SingleForm(gtk.Table, object):
check.connect('toggled',
self.on_list_multi_checkbutton_toggled, field, value)
widget.pack_start(check, expand=False)
widget.set_sensitive(readwrite)
else:
# more than 5 options: show combobox
def on_list_multi_treeview_changed(selection, f):
@ -418,7 +419,7 @@ class SingleForm(gtk.Table, object):
widget.set_size_request(-1, 120)
tv.get_selection().connect('changed',
on_list_multi_treeview_changed, field)
widget.set_sensitive(readwrite)
tv.set_sensitive(readwrite)
elif field.type == 'jid-single':
widget = gtk.Entry()
@ -490,11 +491,11 @@ class SingleForm(gtk.Table, object):
textwidget.get_buffer().connect('changed',
self.on_text_multi_textbuffer_changed, field)
textwidget.get_buffer().set_text(field.value)
textwidget.set_sensitive(readwrite)
widget = gtk.ScrolledWindow()
widget.add(textwidget)
widget.set_sensitive(readwrite)
widget=decorate_with_tooltip(widget, field)
self.attach(widget, 1, 2, linecounter, linecounter+1)