tny_header_{set,unset}_flags() renamed to tny_header_{set,unset}_flag()
authorAlberto Garcia <agarcia@igalia.com>
Wed, 31 Oct 2007 15:02:10 +0000 (15:02 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 31 Oct 2007 15:02:10 +0000 (15:02 +0000)
pmo-trunk-r3608

src/maemo/modest-msg-view-window.c
src/modest-mail-operation.c
src/modest-tny-send-queue.c
src/modest-ui-actions.c
src/widgets/modest-header-view-render.c

index 85f1e2a..1dfe7d2 100644 (file)
@@ -1801,7 +1801,7 @@ view_msg_cb (ModestMailOperation *mail_op,
 
        /* Mark header as read */
        if (!(tny_header_get_flags (header) & TNY_HEADER_FLAG_SEEN))
-               tny_header_set_flags (header, TNY_HEADER_FLAG_SEEN);
+               tny_header_set_flag (header, TNY_HEADER_FLAG_SEEN);
 
        /* Set new message */
        tny_msg_view_set_msg (TNY_MSG_VIEW (priv->msg_view), msg);
index 8d8ec23..a3a2f03 100644 (file)
@@ -650,7 +650,7 @@ create_msg_thread (gpointer thread_data)
                if (info->attachments_list != NULL)
                        flags |= TNY_HEADER_FLAG_ATTACHMENTS;
 
-               tny_header_set_flags (header, flags);
+               tny_header_set_flag (header, flags);
                g_object_unref (G_OBJECT(header));
        } else {
                priv->status = MODEST_MAIL_OPERATION_STATUS_FAILED;
@@ -2416,8 +2416,8 @@ modest_mail_operation_remove_msg (ModestMailOperation *self,
        /* remove message from folder */
        tny_folder_remove_msg (folder, header, &(priv->error));
        if (!priv->error) {
-               tny_header_set_flags (header, TNY_HEADER_FLAG_DELETED);
-               tny_header_set_flags (header, TNY_HEADER_FLAG_SEEN);
+               tny_header_set_flag (header, TNY_HEADER_FLAG_DELETED);
+               tny_header_set_flag (header, TNY_HEADER_FLAG_SEEN);
 
                modest_mail_operation_notify_start (self);
 
@@ -2594,8 +2594,8 @@ transfer_msgs_cb (TnyFolder *folder, gboolean cancelled, GError *err, gpointer u
                iter = tny_list_create_iterator (helper->headers);
                while (!tny_iterator_is_done (iter)) {
                        header = TNY_HEADER (tny_iterator_get_current (iter));
-                       tny_header_set_flags (header, TNY_HEADER_FLAG_DELETED);
-                       tny_header_set_flags (header, TNY_HEADER_FLAG_SEEN);
+                       tny_header_set_flag (header, TNY_HEADER_FLAG_DELETED);
+                       tny_header_set_flag (header, TNY_HEADER_FLAG_SEEN);
                        g_object_unref (header);
 
                        tny_iterator_next (iter);
index 576a7fa..357aa3e 100644 (file)
@@ -165,7 +165,7 @@ modest_tny_send_queue_cancel (TnySendQueue *self, gboolean remove, GError **err)
                while (!tny_iterator_is_done (iter)) {
                        header = TNY_HEADER (tny_iterator_get_current (iter));
                        if (header) {
-                               tny_header_set_flags (header, TNY_HEADER_FLAG_SUSPENDED);
+                               tny_header_set_flag (header, TNY_HEADER_FLAG_SUSPENDED);
                                tny_iterator_next (iter);
                                g_object_unref (header);
                        }
@@ -578,7 +578,7 @@ _on_msg_has_been_sent (TnySendQueue *self,
        /* Get message uid */
        msg_id = modest_tny_send_queue_get_msg_id (header);
 
-       tny_header_set_flags (header, TNY_HEADER_FLAG_SEEN);
+       tny_header_set_flag (header, TNY_HEADER_FLAG_SEEN);
 
        /* Get status info */
        item = modest_tny_send_queue_lookup_info (MODEST_TNY_SEND_QUEUE (self), msg_id);
index 40e4c12..dfe22a5 100644 (file)
@@ -354,7 +354,7 @@ headers_action_mark_as_read (TnyHeader *header,
 
        flags = tny_header_get_flags (header);
        if (flags & TNY_HEADER_FLAG_SEEN) return;
-       tny_header_set_flags (header, TNY_HEADER_FLAG_SEEN);
+       tny_header_set_flag (header, TNY_HEADER_FLAG_SEEN);
 }
 
 static void
@@ -368,7 +368,7 @@ headers_action_mark_as_unread (TnyHeader *header,
 
        flags = tny_header_get_flags (header);
        if (flags & TNY_HEADER_FLAG_SEEN)  {
-               tny_header_unset_flags (header, TNY_HEADER_FLAG_SEEN);
+               tny_header_unset_flag (header, TNY_HEADER_FLAG_SEEN);
        }
 }
 
index 6076774..6763caf 100644 (file)
@@ -391,7 +391,7 @@ _modest_header_view_compact_header_cell_data  (GtkTreeViewColumn *column,  GtkCe
                if (msg_header != NULL) {
                        status = get_status_of_uid (msg_header);
                        if (status == MODEST_TNY_SEND_QUEUE_SUSPENDED) {
-                               tny_header_set_flags (msg_header, TNY_HEADER_FLAG_SUSPENDED);
+                               tny_header_set_flag (msg_header, TNY_HEADER_FLAG_SUSPENDED);
                        }
                }