do runtime check for GTK+ 2.4 and not only compile-time

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-28 00:42:24 +00:00
parent 714b4a3d30
commit c79146df7e
2 changed files with 10 additions and 2 deletions

View File

@ -609,7 +609,11 @@ bool wxTextCtrl::Create( wxWindow *parent,
{ {
// GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4 // GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4
#ifdef __WXGTK24__ #ifdef __WXGTK24__
wrap = GTK_WRAP_WORD_CHAR; if ( !gtk_check_version(2,4,0) )
{
wrap = GTK_WRAP_WORD_CHAR;
}
else
#else #else
wrap = GTK_WRAP_WORD; wrap = GTK_WRAP_WORD;
#endif #endif

View File

@ -609,7 +609,11 @@ bool wxTextCtrl::Create( wxWindow *parent,
{ {
// GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4 // GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4
#ifdef __WXGTK24__ #ifdef __WXGTK24__
wrap = GTK_WRAP_WORD_CHAR; if ( !gtk_check_version(2,4,0) )
{
wrap = GTK_WRAP_WORD_CHAR;
}
else
#else #else
wrap = GTK_WRAP_WORD; wrap = GTK_WRAP_WORD;
#endif #endif