* src/compose.c
authorChristoph Hohmann <reboot@gmx.ch>
Mon, 14 Oct 2002 22:13:40 +0000 (22:13 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Mon, 14 Oct 2002 22:13:40 +0000 (22:13 +0000)
* src/filtering.c
* src/summaryview.c
        remove calls to folder->change_flags that are now
        done by procmsg flag functions (seems it is not
        used by any foldertype anyway)
* src/folder.c
init folder->change_flags with NULL

ChangeLog.claws
configure.in
src/compose.c
src/filtering.c
src/folder.c
src/summaryview.c

index 50414c0..bb3f58e 100644 (file)
@@ -1,3 +1,14 @@
+2002-10-14 [christoph] 0.8.5claws37
+
+       * src/compose.c
+       * src/filtering.c
+       * src/summaryview.c
+               remove calls to folder->change_flags that are now
+               done by procmsg flag functions (seems it is not
+               used by any foldertype anyway)
+       * src/folder.c
+               init folder->change_flags with NULL
+
 2002-10-14 [christoph] 0.8.5claws36
 
        * src/folder.[ch]
index 93ae7e3..8551aca 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws36
+EXTRA_VERSION=claws37
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 42a63ad..a81e189 100644 (file)
@@ -780,14 +780,6 @@ Compose *compose_generic_new(PrefsAccount *account, const gchar *mailto, FolderI
         return compose;
 }
 
-#define CHANGE_FLAGS(msginfo) \
-{ \
-if (msginfo->folder->folder->change_flags != NULL) \
-msginfo->folder->folder->change_flags(msginfo->folder->folder, \
-                                     msginfo->folder, \
-                                     msginfo); \
-}
-
 /*
 Compose *compose_new_followup_and_replyto(PrefsAccount *account,
                                           const gchar *followupto, gchar * to)
@@ -997,7 +989,6 @@ Compose *compose_forward(PrefsAccount *account, MsgInfo *msginfo,
        MSG_SET_PERM_FLAGS(msginfo->flags, MSG_FORWARDED);
        if (MSG_IS_IMAP(msginfo->flags))
                imap_msg_unset_perm_flags(msginfo, MSG_REPLIED);
-       CHANGE_FLAGS(msginfo);
 
        compose = compose_create(account, COMPOSE_FORWARD);
 
@@ -1097,7 +1088,6 @@ Compose *compose_forward_multiple(PrefsAccount *account, GSList *msginfo_list)
        for (msginfo = msginfo_list; msginfo != NULL; msginfo = msginfo->next) {
                MSG_UNSET_PERM_FLAGS(((MsgInfo *)msginfo->data)->flags, MSG_REPLIED);
                MSG_SET_PERM_FLAGS(((MsgInfo *)msginfo->data)->flags, MSG_FORWARDED);
-               CHANGE_FLAGS(((MsgInfo *)msginfo->data));
        }
 
        compose = compose_create(account, COMPOSE_FORWARD);
index 80e7dfb..9cbc909 100644 (file)
@@ -105,14 +105,6 @@ void filteringprop_free(FilteringProp * prop)
   return value : return TRUE if the action could be applied
 */
 
-#define CHANGE_FLAGS(msginfo) \
-{ \
-if (msginfo->folder->folder->change_flags != NULL) \
-msginfo->folder->folder->change_flags(msginfo->folder->folder, \
-                                     msginfo->folder, \
-                                     msginfo); \
-}
-
 static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info)
 {
        FolderItem * dest_folder;
index 953b162..e5d9f89 100644 (file)
@@ -125,6 +125,7 @@ static void folder_init(Folder *folder, const gchar *name)
        folder->get_num_list = NULL;
        folder->ui_func = NULL;
        folder->ui_func_data = NULL;
+       folder->change_flags = NULL;
        folder->check_msgnum_validity = NULL;
 }
 
index 45a2879..01ca286 100644 (file)
@@ -2283,14 +2283,6 @@ static void summary_set_header(SummaryView *summaryview, gchar *text[],
                        _("(No Subject)");
 }
 
-#define CHANGE_FLAGS(msginfo) \
-{ \
-if (msginfo->folder->folder->change_flags != NULL) \
-msginfo->folder->folder->change_flags(msginfo->folder->folder, \
-                                     msginfo->folder, \
-                                     msginfo); \
-}
-
 static void summary_display_msg(SummaryView *summaryview, GtkCTreeNode *row)
 {
        summary_display_msg_full(summaryview, row, FALSE, FALSE);