diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 675eafd62e..abfebd1375 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -51,7 +51,7 @@ static void wxGtkTextInsert(GtkWidget *text, const char *txt, size_t len) { -#ifndef __WXGTK__ +#ifndef __WXGTK20__ GdkFont *font = attr.HasFont() ? attr.GetFont().GetInternalFont() : NULL; diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 675eafd62e..abfebd1375 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -51,7 +51,7 @@ static void wxGtkTextInsert(GtkWidget *text, const char *txt, size_t len) { -#ifndef __WXGTK__ +#ifndef __WXGTK20__ GdkFont *font = attr.HasFont() ? attr.GetFont().GetInternalFont() : NULL;