Don't do the run-time check for GTK+ 2 under GTK+ 3

...because it fails.
This commit is contained in:
Artur Wieczorek
2017-08-01 22:27:15 +02:00
parent 446d707064
commit d3adf5e464

View File

@@ -42,7 +42,9 @@
static unsigned int GetEntryTextLength(GtkEntry* entry) static unsigned int GetEntryTextLength(GtkEntry* entry)
{ {
#if GTK_CHECK_VERSION(2, 14, 0) #if GTK_CHECK_VERSION(2, 14, 0)
#ifndef __WXGTK3__
if ( gtk_check_version(2, 14, 0) == NULL ) if ( gtk_check_version(2, 14, 0) == NULL )
#endif // !GTK+ 3
{ {
return gtk_entry_get_text_length(entry); return gtk_entry_get_text_length(entry);
} }