Support background colour in wxDataViewItemAttr in wxGTK
The code handling background colour was commented out for some reason, simply enable it as it seems to be working just fine -- and update the sample to show that it does.
This commit is contained in:
@@ -2248,7 +2248,6 @@ void GtkApplyAttr(GtkCellRendererText *renderer, const wxDataViewItemAttr& attr)
|
||||
g_value_unset( &gvalue );
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (attr.HasBackgroundColour())
|
||||
{
|
||||
wxColour colour = attr.GetBackgroundColour();
|
||||
@@ -2268,7 +2267,6 @@ void GtkApplyAttr(GtkCellRendererText *renderer, const wxDataViewItemAttr& attr)
|
||||
g_object_set_property( G_OBJECT(renderer), "cell-background-set", &gvalue );
|
||||
g_value_unset( &gvalue );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
Reference in New Issue
Block a user