diff options
author | Werner Almesberger <werner@almesberger.net> | 2016-11-20 13:14:34 -0300 |
---|---|---|
committer | Werner Almesberger <werner@almesberger.net> | 2016-11-20 13:14:34 -0300 |
commit | 4f4cd1951757d7294a16aec6997d9c66bb02b4eb (patch) | |
tree | 85f5b141472bdf738c846d19b6dd8cb8bd699e27 /gui | |
parent | 4881285222a520254a25e17c6748f638ffc2782d (diff) | |
download | eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.tar.gz eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.tar.bz2 eeshow-4f4cd1951757d7294a16aec6997d9c66bb02b4eb.zip |
gui/gui.c (sheets): move over from index.c
Diffstat (limited to 'gui')
-rw-r--r-- | gui/common.h | 1 | ||||
-rw-r--r-- | gui/gui.c | 9 | ||||
-rw-r--r-- | gui/index.c | 9 |
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); @@ -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; |