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:
@@ -413,6 +413,7 @@ All (GUI):
|
||||
- wxHTML: add support for table borders width (Laurent Humbertclaude).
|
||||
- Added wxMouseEventsManager.
|
||||
- Building OpenGL library is now enabled by default.
|
||||
- Fixed wxDataViewCtrl::Set{Foreground,Background}Colour().
|
||||
- Improve wxTreeCtrl::ScrollTo() in generic version (Raanan Barzel).
|
||||
- Added wxFont::[Make]{Bold,Italic,Smaller,Larger} and Scale[d]() methods.
|
||||
- Added wxDC::CopyAttributes() and use it in wxBufferedDC.
|
||||
|
@@ -447,6 +447,8 @@ protected:
|
||||
virtual void DoSetExpanderColumn();
|
||||
virtual void DoSetIndent();
|
||||
|
||||
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
|
||||
|
||||
private:
|
||||
friend class wxDataViewCtrlDCImpl;
|
||||
friend class wxDataViewColumn;
|
||||
|
@@ -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