use 0 (== GTK_STATE_NORMAL) for state parameter default

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2012-02-27 17:49:33 +00:00
parent 622226dc73
commit fac46b97d6
2 changed files with 4 additions and 7 deletions

View File

@@ -229,9 +229,6 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
return wxWindow::GetClassDefaultAttributes(wxWINDOW_VARIANT_NORMAL);
}
if (state == -1)
state = GTK_STATE_NORMAL;
// get the style's colours
attr.colFg = wxColour(style->fg[state]);
if (useBase)