Fixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.
Implement DoApplyWidgetStyle() in wxGTK version of wxDataViewCtrl to propagate the main window style to the GtkTreeView which is what the user mostly sees. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4643,6 +4643,10 @@ void wxDataViewCtrl::GtkEnableSelectionEvents()
|
||||
G_CALLBACK (wxdataview_selection_changed_callback), this);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// visual attributes stuff
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// static
|
||||
wxVisualAttributes
|
||||
wxDataViewCtrl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
@@ -4650,9 +4654,12 @@ wxDataViewCtrl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_tree_view_new);
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::DoApplyWidgetStyle(GtkRcStyle *style)
|
||||
{
|
||||
wxDataViewCtrlBase::DoApplyWidgetStyle(style);
|
||||
gtk_widget_modify_style(m_treeview, style);
|
||||
}
|
||||
|
||||
#endif
|
||||
// !wxUSE_GENERICDATAVIEWCTRL
|
||||
#endif // !wxUSE_GENERICDATAVIEWCTRL
|
||||
|
||||
#endif
|
||||
// wxUSE_DATAVIEWCTRL
|
||||
#endif // wxUSE_DATAVIEWCTRL
|
||||
|
Reference in New Issue
Block a user