summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 09:30:38 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 09:30:38 -0300
commit7ddbb6d35f2af3be0ede0d13bf795b2333739e61 (patch)
tree80af019d4b5719ef67bf965a40bd4bc855bb9fea /gui/sheet.c
parent88e85d414446090084b121f01372946cb16bbf99 (diff)
downloadeeshow-7ddbb6d35f2af3be0ede0d13bf795b2333739e61.tar.gz
eeshow-7ddbb6d35f2af3be0ede0d13bf795b2333739e61.tar.bz2
eeshow-7ddbb6d35f2af3be0ede0d13bf795b2333739e61.zip
eeshow/gui/sheet.c (add_delta): show inverted greek delta when in delta mode
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 6f77756..570315a 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -198,7 +198,10 @@ static void add_delta(struct gui_ctx *ctx)
if (ctx->old_hist && ctx->diff_mode == diff_delta)
style.frame = RGBA(0, 0, 0, 1);
overlay_style(over, &style);
- overlay_text(over, "&#916;");
+ if (use_delta)
+ overlay_text(over, "&#8711;");
+ else
+ overlay_text(over, "&#916;");
}
@@ -524,6 +527,7 @@ static void sheet_key(void *user, int x, int y, int keyval)
case GDK_KEY_a:
use_delta = !use_delta;
+ do_revision_overlays(ctx);
redraw(ctx);
break;