[gthumb] save the window size only in browser mode



commit eddd18191dcf52911b706eaddb58880e65d06795
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Aug 7 16:03:29 2010 +0200

    save the window size only in browser mode

 gthumb/gth-browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index e12dd69..3e75354 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2194,7 +2194,7 @@ _gth_browser_real_set_current_page (GthWindow *window,
 		_gth_browser_make_file_visible (browser, browser->priv->current_file);
 	_gth_browser_hide_infobar (browser);
 
-	if (prev_page >= 0) {
+	if (prev_page == GTH_BROWSER_PAGE_BROWSER) {
 		GdkWindowState state;
 
 		state = gdk_window_get_state (gtk_widget_get_window (GTK_WIDGET (browser)));



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