[balsa/gtk3] Remember all folders in MRU folder list
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Remember all folders in MRU folder list
- Date: Mon, 16 Apr 2012 17:00:57 +0000 (UTC)
commit 76680d4c469c43eda2a31470aeb37d4639d984ea
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Apr 16 13:00:07 2012 -0400
Remember all folders in MRU folder list
* src/balsa-mblist.c (balsa_mblist_mru_add): add folder to the
MRU folder list as well as to the given list, if different.
ChangeLog | 9 ++++++++-
src/balsa-mblist.c | 5 +++++
2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 58db697..947ec80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
2012-04-16 Peter Bloomfield
- Revert previous commit
+ * src/balsa-mblist.c (balsa_mblist_mru_add): add folder to the
+ MRU folder list as well as to the given list, if different.
+
+2012-04-16 Peter Bloomfield
+
+ Revert previous commit; fixes
+ <URL:http://mail.gnome.org/archives/balsa-list/2012-April/msg00003.html>
+ from Ildar Mulyukov
* src/balsa-app.c (balsa_app_init):
* src/balsa-app.h:
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index 2c13974..bf5d19f 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -1998,6 +1998,11 @@ balsa_mblist_mru_add(GList ** list, const gchar * url)
*list = g_list_delete_link(*list, tmp);
}
*list = g_list_prepend(*list, g_strdup(url));
+
+ if (list != &balsa_app.folder_mru) {
+ /* Update the folder MRU list as well */
+ balsa_mblist_mru_add(&balsa_app.folder_mru, url);
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]