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:
parent
714b4a3d30
commit
c79146df7e
@ -609,7 +609,11 @@ bool wxTextCtrl::Create( wxWindow *parent,
|
||||
{
|
||||
// GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4
|
||||
#ifdef __WXGTK24__
|
||||
wrap = GTK_WRAP_WORD_CHAR;
|
||||
if ( !gtk_check_version(2,4,0) )
|
||||
{
|
||||
wrap = GTK_WRAP_WORD_CHAR;
|
||||
}
|
||||
else
|
||||
#else
|
||||
wrap = GTK_WRAP_WORD;
|
||||
#endif
|
||||
|
@ -609,7 +609,11 @@ bool wxTextCtrl::Create( wxWindow *parent,
|
||||
{
|
||||
// GTK_WRAP_WORD_CHAR seems to be new in GTK+ 2.4
|
||||
#ifdef __WXGTK24__
|
||||
wrap = GTK_WRAP_WORD_CHAR;
|
||||
if ( !gtk_check_version(2,4,0) )
|
||||
{
|
||||
wrap = GTK_WRAP_WORD_CHAR;
|
||||
}
|
||||
else
|
||||
#else
|
||||
wrap = GTK_WRAP_WORD;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user