OSDN Git Service

Enable to get dictionaries in the data store.
[fukui-no-namari/fukui-no-namari.git] / src / FukuiNoNamari / threadlistmodel.py
index 72347f2..f0f2ba4 100644 (file)
@@ -48,6 +48,10 @@ class ThreadListModel(gtk.GenericTreeModel):
         except:
             pass
 
+    def get_dict(self, iter):
+        path = self.get_path(iter)
+        return self.list[path[0]]
+
     def modify_row(self, dict):
         id = dict["id"]
         if id in self.order_dict: