diff options
Diffstat (limited to 'grc/gui/PropsDialog.py')
-rw-r--r-- | grc/gui/PropsDialog.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py index abf242691f..f5a136e634 100644 --- a/grc/gui/PropsDialog.py +++ b/grc/gui/PropsDialog.py @@ -127,7 +127,7 @@ class PropsDialog(gtk.Dialog): # Connect events self.connect('key-press-event', self._handle_key_press) - self.connect('show', self._update_gui) + self.connect('show', self.update_gui) self.connect('response', self._handle_response) self.show_all() # show all (performs initial gui update) @@ -158,12 +158,12 @@ class PropsDialog(gtk.Dialog): # update for the block self._block.rewrite() self._block.validate() - self._update_gui() + self.update_gui() def _activate_apply(self, *args): self.set_response_sensitive(gtk.RESPONSE_APPLY, True) - def _update_gui(self, *args): + def update_gui(self, widget=None, force=False): """ Repopulate the parameters boxes (if changed). Update all the input parameters. @@ -173,7 +173,7 @@ class PropsDialog(gtk.Dialog): Hide the box if there are no docs. """ # update the params box - if self._params_changed(): + if force or self._params_changed(): # hide params box before changing for tab, label, vbox in self._params_boxes: vbox.hide_all() |