]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
added src/mac/carbon/display.cpp to project
[wxWidgets.git] / src / common / wincmn.cpp
index 0cb93c366559b6bd169fedbf1e7b3f48e3945260..d39583bbb8e2e2ab604fafa37f24c109d5cd8a25 100644 (file)
@@ -2570,9 +2570,11 @@ wxAccStatus wxWindowAccessible::GetName(int childId, wxString* name)
     // This will eventually be replaced by specialised
     // accessible classes, one for each kind of wxWidgets
     // control or window.
+#if wxUSE_BUTTON
     if (GetWindow()->IsKindOf(CLASSINFO(wxButton)))
         title = ((wxButton*) GetWindow())->GetLabel();
     else
+#endif
         title = GetWindow()->GetName();
 
     if (!title.IsEmpty())