[gthumb] update the property view before loading the image if in browser mode
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] update the property view before loading the image if in browser mode
- Date: Fri, 20 Aug 2010 17:45:16 +0000 (UTC)
commit 4ff6b27a4526648091928e1e1920f2ba2a3a9618
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Aug 20 19:44:57 2010 +0200
update the property view before loading the image if in browser mode
gthumb/gth-browser.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index f634785..43f8fe4 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5123,7 +5123,8 @@ gth_viewer_page_file_loaded_cb (GthViewerPage *viewer_page,
gth_browser_update_title (browser);
gth_browser_update_statusbar_file_info (browser);
- gth_sidebar_set_file (GTH_SIDEBAR (browser->priv->file_properties), browser->priv->current_file);
+ if (gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_VIEWER)
+ gth_sidebar_set_file (GTH_SIDEBAR (browser->priv->file_properties), browser->priv->current_file);
gth_sidebar_set_file (GTH_SIDEBAR (browser->priv->viewer_sidebar), browser->priv->current_file);
gth_browser_update_sensitivity (browser);
}
@@ -5191,6 +5192,8 @@ file_metadata_ready_cb (GList *files,
gth_viewer_page_show_pointer (browser->priv->viewer_page, FALSE);
}
}
+ else if (gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_BROWSER)
+ gth_sidebar_set_file (GTH_SIDEBAR (browser->priv->file_properties), browser->priv->current_file);
if (browser->priv->viewer_page != NULL)
gth_viewer_page_view (browser->priv->viewer_page, file_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]