Fix setting tasks complete (don't crash)
[milk] / src / milk-auth.c
index c36db6a..a76cdc8 100644 (file)
@@ -391,6 +391,23 @@ milk_auth_task_delete (MilkAuth  *auth,
         return rtm_glib_tasks_delete (priv->rtm_glib, timeline, task, error);
 }
 
+char*
+milk_auth_task_set_priority (MilkAuth    *auth,
+                             char        *timeline,
+                             RtmTask     *task,
+                             const char  *priority,
+                             GError     **error)
+{
+        MilkAuthPrivate *priv;
+
+        g_return_val_if_fail (MILK_IS_AUTH (auth), NULL);
+
+        priv = MILK_AUTH_PRIVATE (auth);
+
+        return rtm_glib_tasks_set_priority (priv->rtm_glib, timeline, task,
+                        priority, error);
+}
+
 /* FIXME: why does this (or something above it) totally fail if we don't have a
  * working Internet connection / resolv.conf is mangled? */
 /* FIXME: instead of this manual call, listen to the connection manager