summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-20 16:14:34 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-11-20 16:14:34 (GMT)
commit4f4cd1951757d7294a16aec6997d9c66bb02b4eb (patch)
tree85f5b141472bdf738c846d19b6dd8cb8bd699e27 /gui
parent4881285222a520254a25e17c6748f638ffc2782d (diff)
downloadeeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.zip
eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.tar.gz
eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.tar.bz2
gui/gui.c (sheets): move over from index.c
Diffstat (limited to 'gui')
-rw-r--r--gui/common.h1
-rw-r--r--gui/gui.c9
-rw-r--r--gui/index.c9
3 files changed, 10 insertions, 9 deletions
diff --git a/gui/common.h b/gui/common.h
index 712469c..0e9bab9 100644
--- a/gui/common.h
+++ b/gui/common.h
@@ -192,6 +192,7 @@ void show_index(struct gui *gui);
/* gui.c */
+struct gui_sheet *sheets(const struct gui *gui);
struct gui_sheet *find_corresponding_sheet(struct gui_sheet *pick_from,
struct gui_sheet *ref_in, const struct gui_sheet *ref);
struct gui_sheet *current_sheet(const struct gui *gui);
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)
{
diff --git a/gui/index.c b/gui/index.c
index 3ee581e..e4a97c1 100644
--- a/gui/index.c
+++ b/gui/index.c
@@ -55,15 +55,6 @@ static void thumbnail_pos(GtkAllocation *alloc, unsigned n, int *ix, int *iy)
/* ----- Drawing ----------------------------------------------------------- */
-static 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;
-}
-
-
void index_draw_event(const struct gui *gui, cairo_t *cr)
{
GtkAllocation alloc;