Add candidate add/clear methods
authorAlberto Ruiz <aruiz@gnome.org>
Tue, 19 Jul 2011 10:53:40 +0000 (11:53 +0100)
committerAlberto Ruiz <aruiz@gnome.org>
Tue, 19 Jul 2011 16:33:49 +0000 (17:33 +0100)
src/moonshot-window.vala

index fefa091..6afaa23 100644 (file)
@@ -69,6 +69,16 @@ class MainWindow : Window
         connect_signals();
         init_ipc_server();
     }
+    
+    public void add_candidate (IdCard idcard)
+    {
+        candidates.append (idcard);
+    }
+    
+    public void clear_candidates ()
+    {
+        candidates = new SList<IdCard>();
+    }
 
     private bool visible_func (TreeModel model, TreeIter iter)
     {