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:
@@ -75,20 +75,20 @@ protected:
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
|
||||
bool useBase = false,
|
||||
int state = -1);
|
||||
int state = 0);
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNew_t,
|
||||
bool useBase = false,
|
||||
int state = -1);
|
||||
int state = 0);
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromStr_t,
|
||||
bool useBase = false,
|
||||
int state = -1);
|
||||
int state = 0);
|
||||
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromAdj_t,
|
||||
bool useBase = false,
|
||||
int state = -1);
|
||||
int state = 0);
|
||||
|
||||
// Widgets that use the style->base colour for the BG colour should
|
||||
// override this and return true.
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user