changeset 1727:68b791050958

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 d148cfcdd30c
children 94ced97edf0b
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:19:06 2009 +0000
+++ b/src/layout_util.c	Thu Aug 27 20:23:28 2009 +0000
@@ -809,10 +809,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);
 }