diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2013-10-16 14:11:54 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2013-10-24 19:06:49 +0200 |
commit | 15244635c42a2272c76d94b6a5d8bfb3e75fca0c (patch) | |
tree | 6f4033a90facff55b6515cc1b2a0dd3ca0004d94 /grc/gui/BlockTreeWindow.py | |
parent | e58fcceb221eeb8d9c54a303d76719283a27565c (diff) |
Removed the 'Add' button. Who used that anyway?
Diffstat (limited to 'grc/gui/BlockTreeWindow.py')
-rw-r--r-- | grc/gui/BlockTreeWindow.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py index fcb53086d3..5a24c40000 100644 --- a/grc/gui/BlockTreeWindow.py +++ b/grc/gui/BlockTreeWindow.py @@ -97,17 +97,11 @@ class BlockTreeWindow(gtk.VBox): scrolled_window.add_with_viewport(self.treeview) scrolled_window.set_size_request(DEFAULT_BLOCKS_WINDOW_WIDTH, -1) self.pack_start(scrolled_window) - #add button - self.add_button = gtk.Button(None, gtk.STOCK_ADD) - self.add_button.connect('clicked', self._handle_add_button) - self.pack_start(self.add_button, False) #map categories to iters, automatic mapping for root self._categories = {tuple(): None} self._categories_search = {tuple(): None} #add blocks and categories self.platform.load_block_tree(self) - #initialize - self._update_add_button() def clear(self): self.treestore.clear(); @@ -160,14 +154,6 @@ class BlockTreeWindow(gtk.VBox): treestore, iter = selection.get_selected() return iter and treestore.get_value(iter, KEY_INDEX) or '' - def _update_add_button(self): - """ - Update the add button's sensitivity. - The button should be active only if a block is selected. - """ - key = self._get_selected_block_key() - self.add_button.set_sensitive(bool(key)) - def _add_selected_block(self): """ Add the selected block with the given key to the flow graph. @@ -260,10 +246,3 @@ class BlockTreeWindow(gtk.VBox): """ if event.button == 1 and event.type == gtk.gdk._2BUTTON_PRESS: self._add_selected_block() - - def _handle_add_button(self, widget): - """ - Handle the add button clicked signal. - Call add selected block. - """ - self._add_selected_block() |