diff options
Diffstat (limited to 'src/slideshow.c')
-rw-r--r-- | src/slideshow.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/slideshow.c b/src/slideshow.c index 1af0e18..933a4dd 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -84,6 +84,12 @@ static gboolean ss_expose_sig(GtkWidget *da, GdkEventExpose *event, } +void notify_slideshow_slide_changed(struct presentation *p) +{ + gdk_window_invalidate_rect(p->ss_drawingarea->window, NULL, FALSE); +} + + static gint prev_slide_sig(GtkWidget *widget, struct presentation *p) { if ( p->view_slide_number == 0 ) return FALSE; @@ -92,8 +98,7 @@ static gint prev_slide_sig(GtkWidget *widget, struct presentation *p) p->ss_blank = 0; p->view_slide = p->slides[p->view_slide_number]; - gdk_window_invalidate_rect(p->ss_drawingarea->window, NULL, FALSE); - + notify_slideshow_slide_changed(p); notify_slide_changed(p); return FALSE; @@ -108,8 +113,7 @@ static gint next_slide_sig(GtkWidget *widget, struct presentation *p) p->ss_blank = 0; p->view_slide = p->slides[p->view_slide_number]; - gdk_window_invalidate_rect(p->ss_drawingarea->window, NULL, FALSE); - + notify_slideshow_slide_changed(p); notify_slide_changed(p); return FALSE; |