diff options
author | Clayton Smith <argilo@gmail.com> | 2021-09-27 11:46:11 -0400 |
---|---|---|
committer | Jeff Long <willcode4@gmail.com> | 2021-10-10 07:56:34 -0400 |
commit | 3ca3de33670bf2912c903b7201a6cf364ba2653f (patch) | |
tree | ec6faaa161e72eb41fed6514e216c2c40c22ab39 | |
parent | qtgui: remove int type from number_sink block yaml (diff) | |
download | gnuradio-3ca3de33670bf2912c903b7201a6cf364ba2653f.tar.xz gnuradio-3ca3de33670bf2912c903b7201a6cf364ba2653f.zip |
grc: Fix category and module tooltips
Category and module tooltips have been broken since GNU Radio 3.8.
The _format_cat_tooltip function expects a tuple representing the
module & category hierarchy, but a single string is passed in. As
a result, everyhing is treated as a category, and only the last
letter of the category or module name is displayed. I've fixed
the problem by passing in the full tuple instead.
Signed-off-by: Clayton Smith <argilo@gmail.com>
(cherry picked from commit 64a6f07f20ca7921da021b2a943968d89489ffa6)
Signed-off-by: Jeff Long <willcode4@gmail.com>
-rw-r--r-- | grc/gui/BlockTreeWindow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py index 32bba2ca5..c19669250 100644 --- a/grc/gui/BlockTreeWindow.py +++ b/grc/gui/BlockTreeWindow.py @@ -167,7 +167,7 @@ class BlockTreeWindow(Gtk.VBox): iter_ = treestore.insert_before(categories[parent_category[:-1]], None) treestore.set_value(iter_, NAME_INDEX, parent_cat_name) treestore.set_value(iter_, KEY_INDEX, '') - treestore.set_value(iter_, DOC_INDEX, _format_cat_tooltip(parent_cat_name)) + treestore.set_value(iter_, DOC_INDEX, _format_cat_tooltip(parent_category)) categories[parent_category] = iter_ # add block iter_ = treestore.insert_before(categories[category], None) |