aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-12-24 00:47:33 +0000
committerThomas White <taw@bitwiz.org.uk>2011-12-24 00:47:33 +0000
commit989162d958d32dccafbb71a0bba550fc31416140 (patch)
treed5570208b73435ad3ae8dcbc46dd1fb44c3bc9a0
parent8f9ce31038105cd975c88e0008f2e14ecab59240 (diff)
Turn border red to indicate slideshow unlinked
-rw-r--r--src/mainwindow.c6
-rw-r--r--src/slideshow.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index a9c52f8..15d8025 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -906,10 +906,10 @@ static gboolean expose_sig(GtkWidget *da, GdkEventExpose *event,
/* Overall background */
cairo_rectangle(cr, event->area.x, event->area.y,
event->area.width, event->area.height);
- if ( p->slideshow == NULL ) {
- cairo_set_source_rgb(cr, 0.9, 0.9, 0.9);
- } else {
+ if ( (p->slideshow != NULL) && !p->slideshow_linked ) {
cairo_set_source_rgb(cr, 1.0, 0.3, 0.2);
+ } else {
+ cairo_set_source_rgb(cr, 0.9, 0.9, 0.9);
}
cairo_fill(cr);
diff --git a/src/slideshow.c b/src/slideshow.c
index 4786784..02c6bc0 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -168,6 +168,8 @@ void toggle_slideshow_link(struct presentation *p)
if ( p->slideshow_linked ) {
p->cur_proj_slide = p->cur_edit_slide;
notify_slideshow_slide_changed(p, p->cur_proj_slide);
+ } else {
+ redraw_overlay(p);
}
}