[gthumb] fixed video controls not activated if already in viewer mode.



commit a78140528bea9f9b239278261e00a606b4ec9f40
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Aug 20 19:33:09 2010 +0200

    fixed video controls not activated if already in viewer mode.

 gthumb/gth-browser.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 19f4fa4..f634785 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5181,8 +5181,10 @@ file_metadata_ready_cb (GList    *files,
 		}
 	}
 
-	if (data->view) {
+	if (data->view)
 		gth_window_set_current_page (GTH_WINDOW (browser), GTH_BROWSER_PAGE_VIEWER);
+
+	if (gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_VIEWER) {
 		gth_viewer_page_show (browser->priv->viewer_page);
 		if (browser->priv->fullscreen) {
 			gth_viewer_page_fullscreen (browser->priv->viewer_page, TRUE);



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