[gnome-commander] XML config: save directory history on exit
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] XML config: save directory history on exit
- Date: Sun, 2 Oct 2011 18:26:59 +0000 (UTC)
commit cc6b24a19bf649c67ec98b7417f3db11f89d382c
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Oct 2 20:24:52 2011 +0200
XML config: save directory history on exit
src/gnome-cmd-data.cc | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 4826127..04c24cf 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -1634,6 +1634,20 @@ void GnomeCmdData::save()
xml << *main_win;
+ xml << XML::tag("History");
+
+ if (save_dir_history_on_exit)
+ {
+ xml << XML::tag("Directories");
+
+ for (GList *i=gnome_cmd_con_get_dir_history (priv->con_list->get_home())->ents; i; i=i=i->next)
+ xml << XML::tag("Directory") << XML::attr("path") << XML::escape((const gchar *) i->data) << XML::endtag();
+
+ xml << XML::endtag("Directories");
+ }
+
+ xml << XML::endtag("History");
+
xml << advrename_defaults;
xml << search_defaults;
xml << bookmarks_defaults;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]