[gthumb: 19/20] make the current file automatically visible in the thumbnail list
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 19/20] make the current file automatically visible in the thumbnail list
- Date: Tue, 30 Mar 2010 19:33:44 +0000 (UTC)
commit f26881e164b98508347c0899ec25dc82f5936982
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Mar 30 19:15:47 2010 +0200
make the current file automatically visible in the thumbnail list
gthumb/gth-browser.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 9fdae4e..91f5347 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2024,6 +2024,10 @@ _gth_browser_update_browser_ui (GthBrowser *browser,
/* --- _gth_browser_set_current_page --- */
+static void _gth_browser_make_file_visible (GthBrowser *browser,
+ GthFileData *file_data);
+
+
static void
_gth_browser_real_set_current_page (GthWindow *window,
int page)
@@ -2036,6 +2040,8 @@ _gth_browser_real_set_current_page (GthWindow *window,
_gth_browser_update_browser_ui (browser, page);
if (page == GTH_BROWSER_PAGE_BROWSER)
gtk_widget_grab_focus (gth_browser_get_file_list_view (browser));
+ else if (page == GTH_BROWSER_PAGE_VIEWER)
+ _gth_browser_make_file_visible (browser, browser->priv->current_file);
gth_hook_invoke ("gth-browser-set-current-page", browser);
@@ -4726,7 +4732,8 @@ _gth_browser_load_file (GthBrowser *browser,
_g_object_unref (browser->priv->current_file);
browser->priv->current_file = gth_file_data_dup (file_data);
- _gth_browser_make_file_visible (browser, browser->priv->current_file);
+ if (gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_VIEWER)
+ _gth_browser_make_file_visible (browser, browser->priv->current_file);
data = load_file_data_new (browser, file_data, view);
files = g_list_prepend (NULL, data->file_data->file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]