summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 00:00:42 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 01:55:49 -0300
commit6e07f89c6fd2cf86e25fa245c2688d8c2e20be95 (patch)
treef7f89de51a6e9bdbfa1ae075f22681093fa71b22 /gui/gui.c
parent03a241809ee91fb0addd685a71d3c98c69e4c868 (diff)
downloadeeshow-6e07f89c6fd2cf86e25fa245c2688d8c2e20be95.tar.gz
eeshow-6e07f89c6fd2cf86e25fa245c2688d8c2e20be95.tar.bz2
eeshow-6e07f89c6fd2cf86e25fa245c2688d8c2e20be95.zip
gui/: experimental sheet index (WIP)
We also change the way the sheet overlays work: now clicking on the subsheet (which, in the case of the bottom-most sheet did nothing) goes back to the parent and clicking on the root opens the index.
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/gui.c b/gui/gui.c
index a100231..0a0d2b5 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -169,6 +169,8 @@ static struct gui_sheet *get_sheets(struct gui_ctx *ctx, struct gui_hist *hist,
new->sch = sheet;
new->ctx = ctx;
new->hist = hist;
+ new->gfx_ctx_thumb = NULL;
+ new->thumb_surf = NULL;
new->rendered = 0;
new->over = NULL;
@@ -433,9 +435,10 @@ int gui(const struct file_names *fn, bool recurse, int limit)
.scale = 1 / 16.0,
.hist = NULL,
.vcs_hist = NULL,
- .showing_history= 0,
+ .mode = showing_sheet,
.sheet_overlays = NULL,
.hist_overlays = NULL,
+ .thumb_overlays = NULL,
.pop_overlays = NULL,
.pop_underlays = NULL,
.pop_origin = NULL,