summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 17:00:55 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 17:00:55 -0300
commitc9b85bd14a54881898d08261f7b9d98288a217b3 (patch)
tree423b685c283e2157c7b1c07d48f39056987c1282 /gui/sheet.c
parentee5aca2e6cc5a60ea8356e56ca315609c7ea7bc3 (diff)
downloadeeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.tar.gz
eeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.tar.bz2
eeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.zip
gui/: do without the "unrender_all" atrocity
Benefits: - no horrible memory leak - we don't need to jump to the current page (causing zoom_to_extents) Drawbacks: - only supported in non-diff modes
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 8a7414a..3e62485 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -552,8 +552,7 @@ static void sheet_key(void *user, int x, int y, int keyval)
break;
case GDK_KEY_e:
show_extra = !show_extra;
- unrender_all(ctx);
- go_to_sheet(ctx, ctx->curr_sheet);
+ redraw(ctx);
break;
case GDK_KEY_n: