summaryrefslogtreecommitdiff
path: root/src/wx/kdm_email_preferences_page.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-17 01:40:51 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-17 01:40:51 +0100
commit235483a91d4160f4b9b2e53f1a7d5c4cb5b27925 (patch)
tree6735b612a8d03988600b02fc186306459c07ff01 /src/wx/kdm_email_preferences_page.cc
parent6e8f8563f4e4e6ff04b632aff8d6ae95de945649 (diff)
Refactor EditableList to take a new pair of functors for new/edit operations.
In the future this will allow more intricate text displays in EditableLists.
Diffstat (limited to 'src/wx/kdm_email_preferences_page.cc')
-rw-r--r--src/wx/kdm_email_preferences_page.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/kdm_email_preferences_page.cc b/src/wx/kdm_email_preferences_page.cc
index d6e3b0c17..46b4a460a 100644
--- a/src/wx/kdm_email_preferences_page.cc
+++ b/src/wx/kdm_email_preferences_page.cc
@@ -77,13 +77,15 @@ KDMEmailPage::setup()
table->Add(_from, 1, wxEXPAND | wxALL);
vector<EditableListColumn> columns;
- columns.push_back(EditableListColumn(_("Address")));
+ columns.push_back(EditableListColumn(_("Address"), 1024, true));
add_label_to_sizer(table, _panel, _("CC addresses"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL);
- _cc = new EditableList<string, EmailDialog>(
+ _cc = new EditableList<string>(
_panel,
columns,
bind(&Config::kdm_cc, Config::instance()),
bind(&Config::set_kdm_cc, Config::instance(), _1),
+ EditableList<string>::add_with_dialog<EmailDialog>,
+ EditableList<string>::edit_with_dialog<EmailDialog>,
[] (string s, int) {
return s;
},