"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mail/message-list.c" between
evolution-3.40.2.tar.xz and evolution-3.40.3.tar.xz

About: Evolution is a personal information management application that provides integrated mail, calendaring and address book functionality (GNOME desktop).

message-list.c  (evolution-3.40.2.tar.xz):message-list.c  (evolution-3.40.3.tar.xz)
skipping to change at line 320 skipping to change at line 320
LAST_SIGNAL LAST_SIGNAL
}; };
static guint signals[LAST_SIGNAL] = {0, }; static guint signals[LAST_SIGNAL] = {0, };
static const gchar *status_map[] = { static const gchar *status_map[] = {
N_("Unseen"), N_("Unseen"),
N_("Seen"), N_("Seen"),
N_("Answered"), N_("Answered"),
N_("Forwarded"), N_("Forwarded"),
N_("Multiple Unseen Messages"), N_("Answered"), /* and unread */
N_("Multiple Messages") N_("Forwarded") /* and unread */
}; };
static const gchar *status_icons[] = { static const gchar *status_icons[] = {
"mail-unread", "mail-unread",
"mail-read", "mail-read",
"mail-replied", "mail-replied",
"mail-forward", "mail-forward",
"stock_mail-unread-multiple", "mail-replied", /* and unread */
"stock_mail-open-multiple" "mail-forward" /* and unread */
}; };
static const gchar *score_map[] = { static const gchar *score_map[] = {
N_("Lowest"), N_("Lowest"),
N_("Lower"), N_("Lower"),
N_("Low"), N_("Low"),
N_("Normal"), N_("Normal"),
N_("High"), N_("High"),
N_("Higher"), N_("Higher"),
N_("Highest"), N_("Highest"),
skipping to change at line 716 skipping to change at line 716
gint retval; gint retval;
g_return_val_if_fail (address1 != NULL, 1); g_return_val_if_fail (address1 != NULL, 1);
g_return_val_if_fail (address2 != NULL, -1); g_return_val_if_fail (address2 != NULL, -1);
retval = g_ascii_strcasecmp ((gchar *) address1, (gchar *) address2); retval = g_ascii_strcasecmp ((gchar *) address1, (gchar *) address2);
return retval; return retval;
} }
static gint
mail_status_compare (gconstpointer pstatus1,
gconstpointer pstatus2,
gpointer cmp_cache)
{
gint status1 = GPOINTER_TO_INT (pstatus1);
gint status2 = GPOINTER_TO_INT (pstatus2);
gboolean is_unread1 = status1 == 0 || status1 == 4 || status1 == 5;
gboolean is_unread2 = status2 == 0 || status2 == 4 || status2 == 5;
if ((is_unread1 ? 1 : 0) == (is_unread2 ? 1 : 0))
return e_int_compare (pstatus1, pstatus2);
return is_unread1 ? -1 : 1;
}
static gchar * static gchar *
filter_size (gint size) filter_size (gint size)
{ {
gfloat fsize; gfloat fsize;
if (size < 1024) { if (size < 1024) {
return g_strdup_printf ("%d", size); return g_strdup_printf ("%d", size);
} else { } else {
fsize = ((gfloat) size) / 1024.0; fsize = ((gfloat) size) / 1024.0;
if (fsize < 1024.0) { if (fsize < 1024.0) {
skipping to change at line 1826 skipping to change at line 1842
const gchar *str; const gchar *str;
guint32 flags; guint32 flags;
session = message_list_get_session (message_list); session = message_list_get_session (message_list);
g_return_val_if_fail (msg_info != NULL, NULL); g_return_val_if_fail (msg_info != NULL, NULL);
switch (col) { switch (col) {
case COL_MESSAGE_STATUS: case COL_MESSAGE_STATUS:
flags = camel_message_info_get_flags (msg_info); flags = camel_message_info_get_flags (msg_info);
if (flags & CAMEL_MESSAGE_ANSWERED) if (!(flags & CAMEL_MESSAGE_SEEN) && (flags & CAMEL_MESSAGE_ANSWE
RED) != 0)
return GINT_TO_POINTER (4);
else if (!(flags & CAMEL_MESSAGE_SEEN) && (flags & CAMEL_MESSAGE_
FORWARDED) != 0)
return GINT_TO_POINTER (5);
else if (flags & CAMEL_MESSAGE_ANSWERED)
return GINT_TO_POINTER (2); return GINT_TO_POINTER (2);
else if (flags & CAMEL_MESSAGE_FORWARDED) else if (flags & CAMEL_MESSAGE_FORWARDED)
return GINT_TO_POINTER (3); return GINT_TO_POINTER (3);
else if (flags & CAMEL_MESSAGE_SEEN) else if (flags & CAMEL_MESSAGE_SEEN)
return GINT_TO_POINTER (1); return GINT_TO_POINTER (1);
else else
return GINT_TO_POINTER (0); return GINT_TO_POINTER (0);
case COL_FLAGGED: case COL_FLAGGED:
return GINT_TO_POINTER ((camel_message_info_get_flags (msg_info) & CAMEL_MESSAGE_FLAGGED) != 0); return GINT_TO_POINTER ((camel_message_info_get_flags (msg_info) & CAMEL_MESSAGE_FLAGGED) != 0);
case COL_SCORE: { case COL_SCORE: {
skipping to change at line 2327 skipping to change at line 2347
ECell *cell; ECell *cell;
extras = e_table_extras_new (); extras = e_table_extras_new ();
e_table_extras_add_icon_name (extras, "status", "mail-unread"); e_table_extras_add_icon_name (extras, "status", "mail-unread");
e_table_extras_add_icon_name (extras, "score", "stock_score-higher"); e_table_extras_add_icon_name (extras, "score", "stock_score-higher");
e_table_extras_add_icon_name (extras, "attachment", "mail-attachment"); e_table_extras_add_icon_name (extras, "attachment", "mail-attachment");
e_table_extras_add_icon_name (extras, "flagged", "emblem-important"); e_table_extras_add_icon_name (extras, "flagged", "emblem-important");
e_table_extras_add_icon_name (extras, "followup", "stock_mail-flag-for-fo llowup"); e_table_extras_add_icon_name (extras, "followup", "stock_mail-flag-for-fo llowup");
e_table_extras_add_compare (extras, "address_compare", address_compare); e_table_extras_add_compare (extras, "address_compare", address_compare);
e_table_extras_add_compare (extras, "mail-status", mail_status_compare);
cell = e_cell_toggle_new (status_icons, G_N_ELEMENTS (status_icons)); cell = e_cell_toggle_new (status_icons, G_N_ELEMENTS (status_icons));
e_cell_toggle_set_icon_descriptions (E_CELL_TOGGLE (cell), status_map, G_ N_ELEMENTS (status_map)); e_cell_toggle_set_icon_descriptions (E_CELL_TOGGLE (cell), status_map, G_ N_ELEMENTS (status_map));
e_table_extras_add_cell (extras, "render_message_status", cell); e_table_extras_add_cell (extras, "render_message_status", cell);
g_object_unref (cell); g_object_unref (cell);
cell = e_cell_toggle_new ( cell = e_cell_toggle_new (
attachment_icons, G_N_ELEMENTS (attachment_icons)); attachment_icons, G_N_ELEMENTS (attachment_icons));
e_table_extras_add_cell (extras, "render_attachment", cell); e_table_extras_add_cell (extras, "render_attachment", cell);
g_object_unref (cell); g_object_unref (cell);
 End of changes. 5 change blocks. 
5 lines changed or deleted 28 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)