summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;