[gthumb] fixed the history list update



commit 1cbfbd99234d94a26f4242b18c8318f1ef245517
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jan 1 20:34:28 2011 +0100

    fixed the history list update

 gthumb/gth-browser.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 292ebd1..e2f3231 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -757,12 +757,12 @@ _gth_browser_add_to_history (GthBrowser *browser,
 		GList *scan;
 
 		/* remove all the occurrences of file from the history */
-		for (scan = browser->priv->history_current; scan; /* void */) {
+		for (scan = browser->priv->history; scan; /* void */) {
 			GList *next = scan->next;
 			GFile *file_in_history = scan->data;
 
-			if (g_file_equal (file, file_in_history)) {
-				browser->priv->history_current = g_list_remove_link (browser->priv->history_current, scan);
+			if (_g_file_equal_uris (file, file_in_history)) {
+				browser->priv->history = g_list_remove_link (browser->priv->history, scan);
 				_g_object_list_unref (scan);
 			}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]