Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23445/src/gui

Modified Files:
        wxMimeDialog.cpp 
Log Message:
use MIME-specific commands for opening attachments

Index: wxMimeDialog.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMimeDialog.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -u -2 -r1.5 -r1.6
--- wxMimeDialog.cpp    16 Jan 2006 20:32:27 -0000      1.5
+++ wxMimeDialog.cpp    6 Mar 2006 00:25:13 -0000       1.6
@@ -134,5 +134,13 @@
    m_labelCommand->SetConstraints(c);
 
-   m_txtCommand = new wxPTextEntry(_T("/Prompts/MimeHandler"), this, wxID_ANY);
+   // we want to default to /Prompts/MimeHandler/Type/Subtype but also fall
+   // back to /Prompts/MimeHandler/Type and even /Prompts/MimeHandler hence we
+   // pass two extra colons at the end to tell wxPTextEntry to recurse upwards
+   m_txtCommand = new wxPTextEntry
+                      (
+                        _T("/Prompts/MimeHandler/") + mimetype + _T("::"),
+                        this,
+                        wxID_ANY
+                      );
    c = new wxLayoutConstraints;
    c->centreY.SameAs(m_labelCommand, wxCentreY);



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to