Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4790/src/gui
Modified Files:
wxSpamOptions.cpp
Log Message:
added an extra entry just to check that it works; it's not really very useful so far
Index: wxSpamOptions.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxSpamOptions.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -u -2 -r1.15 -r1.16
--- wxSpamOptions.cpp 15 May 2004 22:59:21 -0000 1.15
+++ wxSpamOptions.cpp 15 May 2004 23:16:59 -0000 1.16
@@ -207,4 +207,17 @@
virtual const wxChar *DialogLabel() const
{ return gettext_noop("E&xecutable attachment"); }
+
+ virtual size_t GetEntriesCount() const { return 2; }
+ virtual size_t BuildFieldInfo(FieldInfoArray& fields, size_t n) const
+ {
+ size_t count = SpamOption::BuildFieldInfo(fields, n);
+ wxOptionsPage::FieldInfo& info = fields[n + count];
+ info.label = gettext_noop(
+ "(beware: this will not catch all dangerous attachments!)");
+ info.flags = wxOptionsPage::Field_Message;
+ info.enable = -1;
+
+ return count + 1;
+ }
};
@@ -467,6 +480,6 @@
const wxArrayString tests = strutil_restore_array(source);
- size_t token;
- for ( token = 0; token < tests.GetCount(); token++ )
+ const size_t count = tests.GetCount();
+ for ( size_t token = 0; token < count; token++ )
{
const wxString& actual = tests[token];
@@ -501,5 +514,5 @@
{
if ( !result.empty() )
- result += ':';
+ result += _T(':');
result += option->Token();
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates