[gthumb/gthumb-2-12] 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/gthumb-2-12] Make PgUp/PgDown navigation work when started in fullscreen mode
- Date: Tue, 22 Feb 2011 23:47:52 +0000 (UTC)
commit 9e85d86297019a136f025cc7350e3080bece7105
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 | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index a70762c..06d10c3 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1409,6 +1409,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)
@@ -1520,6 +1524,16 @@ 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_focus (browser->priv->viewer_page);
+ }
+ }
+
if (StartSlideshow) {
StartSlideshow = FALSE;
gth_hook_invoke ("slideshow", browser);
@@ -2164,10 +2178,6 @@ _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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]