summaryrefslogtreecommitdiff
path: root/grc/gui/PropsDialog.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2015-06-14 09:18:48 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2015-06-14 09:18:48 -0700
commita80edf4570d75f1325dce7e026e166956bb1db5f (patch)
tree318aa3900c1686e037f92250e9e13827607a13f1 /grc/gui/PropsDialog.py
parent6c7e4bf41a94032492839f131710a7777da2df7e (diff)
parent1ff0e745963084b86ad4d25e12f889f1b93775aa (diff)
Merge branch 'maint'
Diffstat (limited to 'grc/gui/PropsDialog.py')
-rw-r--r--grc/gui/PropsDialog.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py
index d301a75dd1..91f7f4ffe9 100644
--- a/grc/gui/PropsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -161,7 +161,9 @@ class PropsDialog(gtk.Dialog):
for tab, label, vbox in self._params_boxes:
vbox.hide_all()
# empty the params box
- vbox.forall(lambda c: vbox.remove(c) or c.destroy())
+ for child in vbox.get_children():
+ vbox.remove(child)
+ child.destroy()
# repopulate the params box
box_all_valid = True
for param in filter(lambda p: p.get_tab_label() == tab, self._block.get_params()):
@@ -202,7 +204,8 @@ class PropsDialog(gtk.Dialog):
def _handle_response(self, widget, response):
if response in (gtk.RESPONSE_APPLY, gtk.RESPONSE_ACCEPT):
for tab, label, vbox in self._params_boxes:
- vbox.forall(lambda c: c.apply_pending_changes())
+ for child in vbox.get_children():
+ child.apply_pending_changes()
self.set_response_sensitive(gtk.RESPONSE_APPLY, False)
return True
return False