[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: grc: props dialog apply button was e
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: grc: props dialog apply button was enabled unnecessarily |
Date: |
Sun, 12 Apr 2015 03:57:23 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit fbcb97a0f39a5be71ff766175743550eeeb699e8
Author: Sebastian Koslowski <address@hidden>
Date: Thu Apr 9 14:34:17 2015 +0200
grc: props dialog apply button was enabled unnecessarily
---
grc/gui/Param.py | 2 ++
grc/gui/PropsDialog.py | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/grc/gui/Param.py b/grc/gui/Param.py
index 7933973..b9436ab 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 d706a0d..d301a75 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):