summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-19 07:05:50 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-19 07:08:22 -0300
commit9f2062ad1ae59ccaf97d471b86f5760943f5a124 (patch)
tree26977a897b88ba08794ab3e940bebc06955d44a3 /gui/sheet.c
parent704f5aaa401c4fe2a637d6fe45c5b1f8818b2294 (diff)
downloadeeshow-9f2062ad1ae59ccaf97d471b86f5760943f5a124.tar.gz
eeshow-9f2062ad1ae59ccaf97d471b86f5760943f5a124.tar.bz2
eeshow-9f2062ad1ae59ccaf97d471b86f5760943f5a124.zip
eeshow/gui/: difference display can now be switched with New/Old/Diff
Still need a GUI way to do the same.
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index d0984ca..cfb13f8 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -414,6 +414,7 @@ static void sheet_key(void *user, int x, int y, int keyval)
case '*':
zoom_to_extents(ctx);
break;
+
case GDK_KEY_Home:
if (sheet != ctx->new_hist->sheets)
go_to_sheet(ctx, ctx->new_hist->sheets);
@@ -438,6 +439,20 @@ static void sheet_key(void *user, int x, int y, int keyval)
case GDK_KEY_KP_Down:
show_history(ctx, sel_old);
break;
+
+ case GDK_KEY_n:
+ ctx->diff_mode = diff_new;
+ redraw(ctx);
+ break;
+ case GDK_KEY_o:
+ ctx->diff_mode = diff_old;
+ redraw(ctx);
+ break;
+ case GDK_KEY_d:
+ ctx->diff_mode = diff_delta;
+ redraw(ctx);
+ break;
+
case GDK_KEY_q:
gtk_main_quit();
}