Author: akv
Date: 2013-06-08 14:32:33 +0200 (Sat, 08 Jun 2013)
New Revision: 4410
Modified:
trunk/src/rs-actions.c
Log:
Stopping slideshow correctly when hitting the last photo in the view and
showing messages when starting and stopping in status area.
Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c 2013-06-08 10:02:32 UTC (rev 4409)
+++ trunk/src/rs-actions.c 2013-06-08 12:32:33 UTC (rev 4410)
@@ -1090,7 +1090,11 @@
if (rs_store_get_prevnext(rs->store, current_filename, 2))
return TRUE;
else
+ {
+ rs->slideshow_running = FALSE;
+ gui_status_notify(_("Slideshow stopped"));
return FALSE;
+ }
}
ACTION(play)
@@ -1101,7 +1105,13 @@
rs->slideshow_running = FALSE;
if (rs->slideshow_running)
+ {
g_timeout_add(5000, (GSourceFunc) slideshow_play, rs);
+ gui_status_notify(_("Slideshow running"));
+ }
+ else
+ gui_status_notify(_("Slideshow stopped"));
+
}
TOGGLEACTION(zoom_to_fit)
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit