From: Ricardo Mones Date: Mon, 17 Mar 2014 22:23:50 +0000 (+0100) Subject: Support completion-related hidden prefs X-Git-Tag: 0.7.11~14 X-Git-Url: http://git.claws-mail.org/?p=clawsker.git;a=commitdiff_plain;h=8ad34242ad2e619fe06adc15fd32f33fb02b2958 Support completion-related hidden prefs Preferences are ‘address_search_wildcard’ and ‘folder_search_wildcard’ added in Claws Mail commit b59ac7ec8e8cfacd3566714be6aa2cf3b233546f --- diff --git a/clawsker b/clawsker index a5b875c..f15340f 100755 --- a/clawsker +++ b/clawsker @@ -61,6 +61,7 @@ sub _ { dnd_frame => _('Drag \'n\' drop'), ssl_frame => _('Secure Sockets Layer'), msgs_frame => _('Messages'), + swc_frame => _('Completion'), stripes_frame => _('Coloured stripes'), sbar_frame => _('Scroll bars'), mlist_frame => _('Message List'), @@ -143,6 +144,10 @@ sub _ { h_beh_pp_unsel => _('Controls how pasting using middle-click changes the selected text and insertion point.'), l_beh_inline_at => _('Show inline attachments'), h_beh_inline_at => _('Allows hiding inline attachments already shown in mail structure view'), + l_beh_addr_swc => _('Address search in compose window matches any'), + h_beh_addr_swc => _('On Tab-key completion, address text will match any part of the string or only the from the start'), + l_beh_fold_swc => _('Folder search in folder selector matches any'), + h_beh_fold_swc => _('On folder name completion text will match any part of the string or only from the start'), l_col_emphasis => _('X-Mailer header'), h_col_emphasis => _('The colour used for the X-Mailer line when its value is Claws Mail.'), @@ -945,6 +950,24 @@ sub new_gui_page() { '1', undef, ], + addr_swc => [ + 'address_search_wildcard', + $xl::s{l_beh_addr_swc}, + $xl::s{h_beh_addr_sw1}, + 'bool', + '3.9.3.18', + '0', + undef, + ], + fold_swc => [ + 'folder_search_wildcard', + $xl::s{l_beh_fold_swc}, + $xl::s{h_beh_fold_sw1}, + 'bool', + '3.9.3.18', + '0', + undef, + ], ); sub new_behaviour_page() { @@ -979,7 +1002,12 @@ sub new_behaviour_page() { &new_check_button_for (\%pr::beh, 'inline_at')), $xl::s{msgs_frame}, 'not-packed'), FALSE, FALSE, FRAME_SPC); - + $bf->pack_start (&new_subpage_frame ( + &new_vbox_pack ( + &new_check_button_for (\%pr::beh, 'addr_swc'), + &new_check_button_for (\%pr::beh, 'fold_swc')), + $xl::s{swc_frame}, 'not-packed'), + FALSE, FALSE, FRAME_SPC); return $bf; }