eog r4627 - in trunk: . src



Author: friemann
Date: Sun Jun 22 15:24:12 2008
New Revision: 4627
URL: http://svn.gnome.org/viewvc/eog?rev=4627&view=rev

Log:
2008-06-22  Felix Riemann  <friemann svn gnome org>

	* src/eog-window.c: (eog_window_run_fullscreen):
	Remember to stop the slideshow timer when switching from slideshow to
	normal fullscreen mode. Fixes bug #539495.


Modified:
   trunk/ChangeLog
   trunk/src/eog-window.c

Modified: trunk/src/eog-window.c
==============================================================================
--- trunk/src/eog-window.c	(original)
+++ trunk/src/eog-window.c	Sun Jun 22 15:24:12 2008
@@ -2054,6 +2054,10 @@
 	if (slideshow) {
 		priv->mode = EOG_WINDOW_MODE_SLIDESHOW;
 	} else {
+		/* Stop the timer if we come from slideshowing */
+		if (priv->mode == EOG_WINDOW_MODE_SLIDESHOW)
+			slideshow_clear_timeout (window);
+
 		priv->mode = EOG_WINDOW_MODE_FULLSCREEN;
 	}
 
@@ -2139,11 +2143,9 @@
 	eog_application_screensaver_disable (EOG_APP);
 #endif
 
-	if (slideshow) {
-		eog_window_update_slideshow_action (window);
-	} else {
-		eog_window_update_fullscreen_action (window);
-	}
+	/* Update both actions as we could've already been in one those modes */
+	eog_window_update_slideshow_action (window);
+	eog_window_update_fullscreen_action (window);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]