Summary: | Make enum RecvProtocol (prefs_account.h) extensible | ||||||
---|---|---|---|---|---|---|---|
Product: | Claws Mail (GTK 2) | Reporter: | Avinash Sonawane <rootkea> | ||||
Component: | Other | Assignee: | users | ||||
Status: | NEW --- | ||||||
Severity: | enhancement | ||||||
Priority: | P3 | ||||||
Version: | 3.17.0 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Avinash Sonawane
2018-06-13 09:40:32 UTC
Created attachment 1941 [details]
Rework recvtype in wizard.c
Attached patch makes "recvtype" store combobox index of desired default option, and the actual protocol number is pulled from the relevant row's data pointer in the combobox. That way we do not care whether the actual wanted default protocol has number 0 or not.
This is probably the simplest solution to this problem. A more proper solution (one that would ultimately likely simplify a lot more than just this) would be to modify our pref system to use GValue type for the default value in the PrefParam struct, but that's a rather complex change.
|