fixed detection of listbox background
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -168,9 +168,9 @@ wxColour wxSystemSettings::GetSystemColour( int index )
|
|||||||
def = gtk_widget_get_default_style();
|
def = gtk_widget_get_default_style();
|
||||||
if (def)
|
if (def)
|
||||||
{
|
{
|
||||||
int red = def->bg[GTK_STATE_NORMAL].red;
|
int red = def->base[GTK_STATE_NORMAL].red;
|
||||||
int green = def->bg[GTK_STATE_NORMAL].green;
|
int green = def->base[GTK_STATE_NORMAL].green;
|
||||||
int blue = def->bg[GTK_STATE_NORMAL].blue;
|
int blue = def->base[GTK_STATE_NORMAL].blue;
|
||||||
g_systemListBoxColour =
|
g_systemListBoxColour =
|
||||||
new wxColour( red >> SHIFT,
|
new wxColour( red >> SHIFT,
|
||||||
green >> SHIFT,
|
green >> SHIFT,
|
||||||
@@ -179,7 +179,6 @@ wxColour wxSystemSettings::GetSystemColour( int index )
|
|||||||
else
|
else
|
||||||
g_systemListBoxColour = new wxColour(*wxWHITE);
|
g_systemListBoxColour = new wxColour(*wxWHITE);
|
||||||
gtk_widget_destroy( widget );
|
gtk_widget_destroy( widget );
|
||||||
|
|
||||||
}
|
}
|
||||||
return *g_systemListBoxColour;
|
return *g_systemListBoxColour;
|
||||||
}
|
}
|
||||||
|
@@ -168,9 +168,9 @@ wxColour wxSystemSettings::GetSystemColour( int index )
|
|||||||
def = gtk_widget_get_default_style();
|
def = gtk_widget_get_default_style();
|
||||||
if (def)
|
if (def)
|
||||||
{
|
{
|
||||||
int red = def->bg[GTK_STATE_NORMAL].red;
|
int red = def->base[GTK_STATE_NORMAL].red;
|
||||||
int green = def->bg[GTK_STATE_NORMAL].green;
|
int green = def->base[GTK_STATE_NORMAL].green;
|
||||||
int blue = def->bg[GTK_STATE_NORMAL].blue;
|
int blue = def->base[GTK_STATE_NORMAL].blue;
|
||||||
g_systemListBoxColour =
|
g_systemListBoxColour =
|
||||||
new wxColour( red >> SHIFT,
|
new wxColour( red >> SHIFT,
|
||||||
green >> SHIFT,
|
green >> SHIFT,
|
||||||
@@ -179,7 +179,6 @@ wxColour wxSystemSettings::GetSystemColour( int index )
|
|||||||
else
|
else
|
||||||
g_systemListBoxColour = new wxColour(*wxWHITE);
|
g_systemListBoxColour = new wxColour(*wxWHITE);
|
||||||
gtk_widget_destroy( widget );
|
gtk_widget_destroy( widget );
|
||||||
|
|
||||||
}
|
}
|
||||||
return *g_systemListBoxColour;
|
return *g_systemListBoxColour;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user