[gthumb/ext: 9/79] Show the next file after deleting the current file
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext: 9/79] Show the next file after deleting the current file
- Date: Sun, 2 Aug 2009 20:23:39 +0000 (UTC)
commit 867fc3d9a0db517455bc804e36f9e6af4aa42b9f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jun 15 17:02:58 2009 +0200
Show the next file after deleting the current file
gthumb/gth-browser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index c465848..603891c 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2076,9 +2076,9 @@ folder_changed_cb (GthMonitor *monitor,
current_file_deleted = TRUE;
file_store = gth_browser_get_file_store (browser);
pos = gth_file_store_find_visible (file_store, browser->priv->current_file->file);
- new_file = gth_file_store_get_file_at_pos (file_store, pos - 1);
+ new_file = gth_file_store_get_file_at_pos (file_store, pos + 1);
if (new_file == NULL)
- new_file = gth_file_store_get_file_at_pos (file_store, pos + 1);
+ new_file = gth_file_store_get_file_at_pos (file_store, pos - 1);
if (new_file != NULL)
new_file = g_object_ref (new_file);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]