[vte] ring: Invert colors for the stream's cells if debugging the ring
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] ring: Invert colors for the stream's cells if debugging the ring
- Date: Mon, 24 Apr 2017 23:54:08 +0000 (UTC)
commit 83674b1b09d0ee695d0577e86849d42f82ab5942
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Apr 25 01:11:10 2017 +0200
ring: Invert colors for the stream's cells if debugging the ring
If debugging the ring (or soon the hyperlink), make cells that are already written
to the stream appear with reverse colors. This is so that the boundary is more
prominent because this boundary is a potential source of problems.
src/ring.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ring.cc b/src/ring.cc
index 36d82e1..1243f62 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -256,6 +256,12 @@ _vte_ring_thaw_row (VteRing *ring, gulong position, VteRowData *row, gboolean do
}
cell.attr = attr;
+ _VTE_DEBUG_IF(VTE_DEBUG_RING) {
+ /* Debug: Reverse the colors for the stream's contents. */
+ if (!do_truncate) {
+ cell.attr.reverse = !cell.attr.reverse;
+ }
+ }
cell.c = g_utf8_get_char (p);
q = g_utf8_next_char (p);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]