[gthumb] Make PgUp/PgDown navigation work when started in fullscreen mode
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Make PgUp/PgDown navigation work when started in fullscreen mode
- Date: Tue, 22 Feb 2011 23:47:43 +0000 (UTC)
commit 1fae4b26b8ef45991121354da517ddc02b998f6c
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Feb 23 00:02:27 2011 +0100
Make PgUp/PgDown navigation work when started in fullscreen mode
Give focus to the viewer after loading the file list
[bug #642848]
gthumb/gth-browser.c | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 36453f2..13c1890 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1439,6 +1439,10 @@ _gth_browser_get_visible_folders (GthBrowser *browser,
}
+static void _gth_browser_make_file_visible (GthBrowser *browser,
+ GthFileData *file_data);
+
+
static void
load_data_continue (LoadData *load_data,
GList *loaded_files)
@@ -1550,6 +1554,18 @@ load_data_continue (LoadData *load_data,
browser->priv->monitor_location,
TRUE);
+ if (browser->priv->current_file != NULL) {
+ gth_browser_update_title (browser);
+ gth_browser_update_statusbar_file_info (browser);
+ if (gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_VIEWER) {
+ _gth_browser_make_file_visible (browser, browser->priv->current_file);
+ if (browser->priv->viewer_page != NULL) {
+ gth_viewer_page_update_info (browser->priv->viewer_page, browser->priv->current_file);
+ gth_viewer_page_focus (browser->priv->viewer_page);
+ }
+ }
+ }
+
if (StartSlideshow) {
StartSlideshow = FALSE;
gth_hook_invoke ("slideshow", browser);
@@ -2195,10 +2211,6 @@ _gth_browser_show_properties_in_browser_mode (GthBrowser *browser)
}
-static void _gth_browser_make_file_visible (GthBrowser *browser,
- GthFileData *file_data);
-
-
static void
_gth_browser_real_set_current_page (GthWindow *window,
int page)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]