[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/25: grc: show comments next to rotated b
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/25: grc: show comments next to rotated blocks (instead of underneath) |
Date: |
Fri, 27 May 2016 19:14:57 +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 3d3c796b27a67ad33b46453a9618490d4c206e0e
Author: Glenn Richardson <address@hidden>
Date: Wed May 18 15:03:30 2016 +0200
grc: show comments next to rotated blocks (instead of underneath)
---
grc/gui/Block.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 815982c..a0a5f26 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -345,6 +345,10 @@ class Block(Element, _Block):
if not self._comment_pixmap:
return
x, y = self.get_coordinate()
- y += self.H if self.is_horizontal() else self.W
- window.draw_drawable(gc, self._comment_pixmap, 0, 0, x,
- y + BLOCK_LABEL_PADDING, -1, -1)
+
+ if self.is_horizontal():
+ y += self.H + BLOCK_LABEL_PADDING
+ else:
+ x += self.H + BLOCK_LABEL_PADDING
+
+ window.draw_drawable(gc, self._comment_pixmap, 0, 0, x, y, -1, -1)
- [Commit-gnuradio] [gnuradio] branch master updated (681846f -> cc02c4b), git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 01/25: grc: show comments next to rotated blocks (instead of underneath),
git <=
- [Commit-gnuradio] [gnuradio] 22/25: Merge branch 'maint', git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 13/25: grc: Renamed reports window to console., git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 11/25: grc: Darker color for bypassed blocks., git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 04/25: grc: optionally hide all variable blocks, git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 21/25: grc: function probe block: relabel and move value param, git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 24/25: Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg', git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 07/25: grc: remove 'Showing: ...' messages, git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 12/25: grc: add warning for block flagged deprecated, git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 20/25: grc: faulty callback code if setter call contained a variable block id, git, 2016/05/27
- [Commit-gnuradio] [gnuradio] 14/25: Revert "grc: fix callback evaluation", git, 2016/05/27