summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-20 13:14:34 -0300
committerWerner Almesberger <werner@almesberger.net>2016-11-20 13:14:34 -0300
commit4f4cd1951757d7294a16aec6997d9c66bb02b4eb (patch)
tree85f5b141472bdf738c846d19b6dd8cb8bd699e27 /gui/gui.c
parent4881285222a520254a25e17c6748f638ffc2782d (diff)
downloadeeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.tar.gz
eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.tar.bz2
eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.zip
gui/gui.c (sheets): move over from index.c
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index 19d5eb9..d925afb 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -46,6 +46,15 @@
/* ----- Helper functions -------------------------------------------------- */
+struct gui_sheet *sheets(const struct gui *gui)
+{
+ if (gui->old_hist && gui->diff_mode == diff_old)
+ return gui->old_hist->sheets;
+ else
+ return gui->new_hist->sheets;
+}
+
+
struct gui_sheet *find_corresponding_sheet(struct gui_sheet *pick_from,
struct gui_sheet *ref_in, const struct gui_sheet *ref)
{