Base the task model around an auth object, so we can make the model reflect the
[milk] / src / milk-main-window.c
index 06d435e..1d6901b 100644 (file)
@@ -247,14 +247,9 @@ begin_auth_idle (MilkMainWindow *window)
 
         priv = MILK_MAIN_WINDOW_PRIVATE (window);
 
-        /* FIXME: is there a better place for this? */
-        priv->auth = milk_auth_get_default ();
-        /* FIXME: plug this into the task model */
-
         /* FIXME: cut this */
         g_debug ("trying to run the milk auth demo");
-        /* FIXME: cut this */
-        milk_auth_run_demo (priv->auth);
+        milk_auth_log_in (priv->auth);
 
         return FALSE;
 }
@@ -288,7 +283,8 @@ milk_main_window_constructed (GObject* object)
         /*
          * Task List
          */
-        model = GTK_TREE_MODEL (milk_task_model_new ());
+        priv->auth = milk_auth_get_default ();
+        model = GTK_TREE_MODEL (milk_task_model_new (priv->auth));
         w = hildon_touch_selector_new ();