#include "mainwindow.h"
#include "foldersel.h"
#include "manage_window.h"
-#include "headers.h"
+#include "customheader.h"
#include "utils.h"
#include "gtkutils.h"
#include "alertpanel.h"
gint column,
GdkEvent *event);
-static void prefs_headers_dest_radio_button_toggled (void);
-static void prefs_headers_notrecv_radio_button_toggled (void);
-
static void prefs_headers_key_pressed (GtkWidget *widget,
GdkEventKey *event,
gpointer data);
g_strchomp(buf);
ch = custom_header_read_str(buf);
if (ch) {
- if (strcmp(ch->account_name, ac->account_name) == 0)
+ if (ch->account_id == ac->account_id)
ac->customhdr_list =
g_slist_append(ac->customhdr_list, ch);
else
g_strchomp(buf);
ch = custom_header_read_str(buf);
if (ch) {
- if (strcmp(ch->account_name, ac->account_name) != 0)
+ if (ch->account_id != ac->account_id)
all_hdrs =
g_slist_append(all_hdrs, ch);
else
ch = g_new0(CustomHeader, 1);
- ch->account_name = g_strdup(ac->account_name);
+ ch->account_id = ac->account_id;
ch->name = g_strdup(entry_text);
GdkEvent *event)
{
CustomHeader *ch;
- CustomHeader default_ch = { "", NULL };
+ CustomHeader default_ch = { 0, "", NULL };
ch = gtk_clist_get_row_data(clist, row);
if (!ch)