[meld] Fix storage of multi-line commit messages



commit 32c83e0a90ef8b0ec17f029df86585965526bcb8
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Apr 27 09:11:43 2013 +1000

    Fix storage of multi-line commit messages

 meld/ui/historyentry.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/meld/ui/historyentry.py b/meld/ui/historyentry.py
index 25dd10e..52355ca 100644
--- a/meld/ui/historyentry.py
+++ b/meld/ui/historyentry.py
@@ -219,6 +219,13 @@ class HistoryCombo(gtk.ComboBox, HistoryWidget):
         self.pack_start(rentext, True)
         self.set_attributes(rentext, text=0)
 
+    def _save_history(self):
+        key = self._get_history_key()
+        if key is None:
+            return
+        gconf_items = [row[1] for row in self.get_model()]
+        self._gconf_client.set_list(key, gconf.VALUE_STRING, gconf_items)
+
     def _insert_history_item(self, text, prepend):
         if len(text) <= MIN_ITEM_LEN:
             return


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