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
- wxHTML: add support for table borders width (Laurent Humbertclaude).
- Added wxMouseEventsManager.
- Building OpenGL library is now enabled by default.
- 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.
- 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.
virtual void DoSetExpanderColumn();
virtual void DoSetIndent();
virtual void DoSetExpanderColumn();
virtual void DoSetIndent();
+ virtual void DoApplyWidgetStyle(GtkRcStyle *style);
+
private:
friend class wxDataViewCtrlDCImpl;
friend class wxDataViewColumn;
private:
friend class wxDataViewCtrlDCImpl;
friend class wxDataViewColumn;
G_CALLBACK (wxdataview_selection_changed_callback), this);
}
G_CALLBACK (wxdataview_selection_changed_callback), this);
}
+// ----------------------------------------------------------------------------
+// visual attributes stuff
+// ----------------------------------------------------------------------------
+
// static
wxVisualAttributes
wxDataViewCtrl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
// static
wxVisualAttributes
wxDataViewCtrl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
return GetDefaultAttributesFromGTKWidget(gtk_tree_view_new);
}
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