summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grc/gui/Param.py2
-rw-r--r--grc/gui/PropsDialog.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/grc/gui/Param.py b/grc/gui/Param.py
index 7933973837..b9436ab06e 100644
--- a/grc/gui/Param.py
+++ b/grc/gui/Param.py
@@ -169,6 +169,7 @@ class EnumParam(InputParam):
self._input = gtk.combo_box_new_text()
for option in self.param.get_options(): self._input.append_text(option.get_name())
self._input.set_active(self.param.get_option_keys().index(self.param.get_value()))
+ self._input.connect('changed', self._editing_callback)
self._input.connect('changed', self._apply_change)
self.pack_start(self._input, False)
def get_text(self): return self.param.get_option_keys()[self._input.get_active()]
@@ -248,6 +249,7 @@ class FileParam(EntryParam):
if gtk.RESPONSE_OK == file_dialog.run(): #run the dialog
file_path = file_dialog.get_filename() #get the file path
self._input.set_text(file_path)
+ self._editing_callback()
self._apply_change()
file_dialog.destroy() #destroy the dialog
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py
index d706a0d7b7..d301a75dd1 100644
--- a/grc/gui/PropsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -142,9 +142,8 @@ class PropsDialog(gtk.Dialog):
self._block.rewrite()
self._block.validate()
self._update_gui()
- self._activate_apply()
- def _activate_apply(self):
+ def _activate_apply(self, *args):
self.set_response_sensitive(gtk.RESPONSE_APPLY, True)
def _update_gui(self, *args):