changeset 1707:bca2ab687abb

fixed toggle_slideshow function https://sourceforge.net/tracker/index.php?func=detail&aid=2844302&group_id=222125&atid=1054680
author nadvornik
date Thu, 27 Aug 2009 20:23:28 +0000
parents 60f138e3ff81
children 8213f95b65c9
files src/layout_util.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_util.c	Wed Aug 26 19:16:02 2009 +0000
+++ b/src/layout_util.c	Thu Aug 27 20:23:28 2009 +0000
@@ -741,10 +741,11 @@
 	layout_bar_sort_toggle(lw);
 }
 
-static void layout_menu_slideshow_cb(GtkAction *action, gpointer data)
+static void layout_menu_slideshow_cb(GtkToggleAction *action, gpointer data)
 {
 	LayoutWindow *lw = data;
 
+	if (layout_image_slideshow_active(lw) == gtk_toggle_action_get_active(action)) return;
 	layout_image_slideshow_toggle(lw);
 }