X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-retrieve-combo-box.c;h=f7f034c3930639c671a8ca23c9a7d2530756218e;hb=564e10a66fdd0e9bfcdbd3ab98c10cb1b66f6633;hp=e7fde865dd590fb680743a088c7c50e72a590c22;hpb=3f42b5ae96903964c4eddb9dcebd223ef5925d6b;p=modest diff --git a/src/widgets/modest-retrieve-combo-box.c b/src/widgets/modest-retrieve-combo-box.c index e7fde86..f7f034c 100644 --- a/src/widgets/modest-retrieve-combo-box.c +++ b/src/widgets/modest-retrieve-combo-box.c @@ -85,7 +85,7 @@ enum MODEL_COLS { MODEL_COL_CONF_NAME = 1 /* a string */ }; -void modest_retrieve_combo_box_fill (ModestRetrieveComboBox *combobox, ModestProtocol protocol); +void modest_retrieve_combo_box_fill (ModestRetrieveComboBox *combobox, ModestTransportStoreProtocol protocol); static void modest_retrieve_combo_box_init (ModestRetrieveComboBox *self) @@ -124,7 +124,7 @@ modest_retrieve_combo_box_new (void) * #combobox: The combo box. * @protocol: IMAP or POP. */ -void modest_retrieve_combo_box_fill (ModestRetrieveComboBox *combobox, ModestProtocol protocol) +void modest_retrieve_combo_box_fill (ModestRetrieveComboBox *combobox, ModestTransportStoreProtocol protocol) { ModestRetrieveComboBoxPrivate *priv = RETRIEVE_COMBO_BOX_GET_PRIVATE (combobox); @@ -138,18 +138,19 @@ void modest_retrieve_combo_box_fill (ModestRetrieveComboBox *combobox, ModestPro MODEL_COL_CONF_NAME, MODEST_ACCOUNT_RETRIEVE_VALUE_HEADERS_ONLY, MODEL_COL_NAME, _("mcen_fi_advsetup_retrievetype_headers"), -1); - gtk_list_store_append (liststore, &iter); - gtk_list_store_set (liststore, &iter, - MODEL_COL_CONF_NAME, MODEST_ACCOUNT_RETRIEVE_VALUE_MESSAGES, - MODEL_COL_NAME, _("mcen_fi_advsetup_retrievetype_messages"), -1); - /* Only IMAP should have this option, according to the UI spec: */ if (protocol == MODEST_PROTOCOL_STORE_IMAP) { gtk_list_store_append (liststore, &iter); gtk_list_store_set (liststore, &iter, - MODEL_COL_CONF_NAME, MODEST_ACCOUNT_RETRIEVE_VALUE_MESSAGES_AND_ATTACHMENTS, - MODEL_COL_NAME, _("mcen_fi_advsetup_retrievetype_messages_attachments"), -1); + MODEL_COL_CONF_NAME, MODEST_ACCOUNT_RETRIEVE_VALUE_MESSAGES, + MODEL_COL_NAME, _("mcen_fi_advsetup_retrievetype_messages"), -1); } + + + gtk_list_store_append (liststore, &iter); + gtk_list_store_set (liststore, &iter, + MODEL_COL_CONF_NAME, MODEST_ACCOUNT_RETRIEVE_VALUE_MESSAGES_AND_ATTACHMENTS, + MODEL_COL_NAME, _("mcen_fi_advsetup_retrievetype_messages_attachments"), -1); } /**