projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ssize_t for wxFile, unsigned char markup for color components, whitespace source...
[wxWidgets.git]
/
src
/
motif
/
textctrl.cpp
diff --git
a/src/motif/textctrl.cpp
b/src/motif/textctrl.cpp
index cb5b2b49a9964c833e241710876eb38b424d29b5..090da09f5ae193a5bab9f6587b3b7593b26e63a8 100644
(file)
--- a/
src/motif/textctrl.cpp
+++ b/
src/motif/textctrl.cpp
@@
-17,10
+17,13
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if
def __GNUG__
+#if
defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "textctrl.h"
#endif
#pragma implementation "textctrl.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
#ifdef __VMS
#define XtParent XTPARENT
#endif
#ifdef __VMS
#define XtParent XTPARENT
#endif
@@
-420,7
+423,12
@@
bool wxTextCtrl::IsModified() const
return m_modified;
}
return m_modified;
}
-// Makes 'unmodified'
+// Makes modified or unmodified
+void wxTextCtrl::MarkDirty()
+{
+ m_modified = TRUE;
+}
+
void wxTextCtrl::DiscardEdits()
{
m_modified = FALSE;
void wxTextCtrl::DiscardEdits()
{
m_modified = FALSE;