changeset 44125d2b2cb2 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=44125d2b2cb2 description: fix ad hoc commands
diffstat:
src/adhoc_commands.py | 6 +++--- src/dataforms_widget.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r c92876fcdbb7 -r 44125d2b2cb2 src/adhoc_commands.py --- a/src/adhoc_commands.py Fri Jan 11 19:54:52 2013 +0400 +++ b/src/adhoc_commands.py Fri Jan 11 20:44:29 2013 +0400 @@ -236,7 +236,7 @@ # build the commands list radiobuttons first_radio = None for (commandnode, commandname) in self.commandlist: - radio = Gtk.RadioButton(first_radio, label=commandname) + radio = Gtk.RadioButton.new_with_label_from_widget(first_radio, commandname) radio.connect("toggled", self.on_command_radiobutton_toggled, commandnode) if not first_radio: @@ -255,9 +255,9 @@ """ Remove widgets we created. Not needed when the window is destroyed """ - def remove_widget(widget): + def remove_widget(widget, param): self.command_list_vbox.remove(widget) - self.command_list_vbox.foreach(remove_widget) + self.command_list_vbox.foreach(remove_widget, None)
def stage2_close_button_clicked(self, widget): self.stage_finish() diff -r c92876fcdbb7 -r 44125d2b2cb2 src/dataforms_widget.py --- a/src/dataforms_widget.py Fri Jan 11 19:54:52 2013 +0400 +++ b/src/dataforms_widget.py Fri Jan 11 20:44:29 2013 +0400 @@ -332,7 +332,8 @@ widget """ if field.description != '': - if widget.flags() & Gtk.NO_WINDOW: + if not widget.get_window(): + #if widget.flags() & Gtk.NO_WINDOW: evbox = Gtk.EventBox() evbox.add(widget) widget = evbox