[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/08: grc: not all tooltips in block libra
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/08: grc: not all tooltips in block library were updated after docstring extraction finished |
Date: |
Fri, 5 Feb 2016 22:07:44 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 1025df04816539bc8d11ae29a6e3a10c200ada9b
Author: Sebastian Koslowski <address@hidden>
Date: Fri Feb 5 11:49:47 2016 +0100
grc: not all tooltips in block library were updated after docstring
extraction finished
---
grc/gui/BlockTreeWindow.py | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index 792d280..6b3ebf7 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -152,20 +152,17 @@ class BlockTreeWindow(gtk.VBox):
def update_docs(self):
"""Update the documentation column of every block"""
- def update(node):
- for i in range(treestore.iter_n_children(node) or 0):
- update(treestore.iter_nth_child(node, i))
-
- if not treestore.iter_has_child(node):
- key = treestore.get_value(node, KEY_INDEX)
- block = self.platform.get_block(key)
- doc = Utils.parse_template(DOC_MARKUP_TMPL,
doc=block.get_doc())
- treestore.set_value(node, DOC_INDEX, doc)
-
- for treestore in self.treestore, self.treestore_search:
- root = treestore.get_iter_root()
- if root:
- update(root)
+
+ def update_doc(model, _, iter_):
+ if model.iter_has_child(iter_):
+ return # category node, no doc string
+ key = model.get_value(iter_, KEY_INDEX)
+ block = self.platform.get_block(key)
+ doc = Utils.parse_template(DOC_MARKUP_TMPL, doc=block.get_doc())
+ model.set_value(iter_, DOC_INDEX, doc)
+
+ self.treestore.foreach(update_doc)
+ self.treestore_search.foreach(update_doc)
############################################################
## Helper Methods
- [Commit-gnuradio] [gnuradio] branch maint updated (5c00c2d -> 1e232b2), git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 06/08: uhd: Fixed suggested antenna ports on tx vs rx, git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 07/08: Merge remote-tracking branch 'skoslowski/cat_fix' into maint, git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 08/08: Merge remote-tracking branch 'mbr0wn/uhd/fix_antenna_sel' into maint, git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 05/08: analog: better block category (GRC) for random uniform source, git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 04/08: grc: initialize attributes flow graph eval (fixes Bug #885), git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 03/08: grc: not all tooltips in block library were updated after docstring extraction finished,
git <=
- [Commit-gnuradio] [gnuradio] 01/08: grc: fix fg load with virtual sink/source message connections, git, 2016/02/05
- [Commit-gnuradio] [gnuradio] 02/08: grc: limit tooltip size in block library, git, 2016/02/05