From: Jose Dapena Paz Date: Wed, 5 Dec 2007 13:51:57 +0000 (+0000) Subject: * src/maemo/modest-platform.c: X-Git-Tag: git_migration_finished~1958 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=e1c8c19034a3cb13d6c467442a1dafa0b12a4c60 * src/maemo/modest-platform.c: * Small fix for the sort type dialog. We were setting a limit of 5 sort types when we have 6 (fixes NB#78350). pmo-trunk-r3879 --- diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 9127de6..006f097 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -643,7 +643,7 @@ launch_sort_headers_dialog (GtkWindow *parent_window, MODEST_HEADER_VIEW_COLUMN_COMPACT_HEADER_OUT); sort_key = checked_hildon_sort_dialog_add_sort_key (dialog, _("mcen_li_sort_sender_recipient"), - SORT_ID_NUM - 1); + SORT_ID_NUM); if (outgoing) { sort_model_ids[sort_key] = TNY_GTK_HEADER_LIST_MODEL_TO_COLUMN; sort_ids[sort_key] = MODEST_HEADER_VIEW_COLUMN_COMPACT_HEADER_OUT; @@ -653,7 +653,7 @@ launch_sort_headers_dialog (GtkWindow *parent_window, } sort_key = checked_hildon_sort_dialog_add_sort_key (dialog, _("mcen_li_sort_date"), - SORT_ID_NUM - 1); + SORT_ID_NUM); if (outgoing) { sort_model_ids[sort_key] = TNY_GTK_HEADER_LIST_MODEL_DATE_SENT_TIME_T_COLUMN; sort_ids[sort_key] = MODEST_HEADER_VIEW_COLUMN_COMPACT_SENT_DATE; @@ -664,7 +664,7 @@ launch_sort_headers_dialog (GtkWindow *parent_window, default_key = sort_key; sort_key = checked_hildon_sort_dialog_add_sort_key (dialog, _("mcen_li_sort_subject"), - SORT_ID_NUM -1); + SORT_ID_NUM); sort_model_ids[sort_key] = TNY_GTK_HEADER_LIST_MODEL_SUBJECT_COLUMN; if (outgoing) sort_ids[sort_key] = MODEST_HEADER_VIEW_COLUMN_COMPACT_HEADER_OUT; @@ -672,18 +672,18 @@ launch_sort_headers_dialog (GtkWindow *parent_window, sort_ids[sort_key] = MODEST_HEADER_VIEW_COLUMN_COMPACT_HEADER_IN; sort_key = checked_hildon_sort_dialog_add_sort_key (dialog, _("mcen_li_sort_attachment"), - SORT_ID_NUM - 1); + SORT_ID_NUM); sort_model_ids[sort_key] = TNY_GTK_HEADER_LIST_MODEL_FLAGS_COLUMN; sort_ids[sort_key] = TNY_HEADER_FLAG_ATTACHMENTS; attachments_sort_id = sort_key; sort_key = checked_hildon_sort_dialog_add_sort_key (dialog, _("mcen_li_sort_size"), - SORT_ID_NUM - 1); + SORT_ID_NUM); sort_model_ids[sort_key] = TNY_GTK_HEADER_LIST_MODEL_MESSAGE_SIZE_COLUMN; sort_ids[sort_key] = 0; sort_key = checked_hildon_sort_dialog_add_sort_key (dialog, _("mcen_li_sort_priority"), - SORT_ID_NUM - 1); + SORT_ID_NUM); sort_model_ids[sort_key] = TNY_GTK_HEADER_LIST_MODEL_FLAGS_COLUMN; sort_ids[sort_key] = TNY_HEADER_FLAG_PRIORITY_MASK; priority_sort_id = sort_key;