]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 16:43:30 +0000 (16:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 16:43:30 +0000 (16:43 +0000)
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

docs/changes.txt
include/wx/gtk/dataview.h
src/gtk/dataview.cpp

index b7f057c3db2c0505ce14c16c420e5e3eb1826eb9..a4f77f279bfd2785d88fe436682c3515b8c1cacd 100644 (file)
@@ -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.
index dacccb9f1897813bdb353dd9343271df49f03571..486da22cdc6dfbbd949fc43051c9dc775945942a 100644 (file)
@@ -447,6 +447,8 @@ protected:
     virtual void DoSetExpanderColumn();
     virtual void DoSetIndent();
 
+    virtual void DoApplyWidgetStyle(GtkRcStyle *style);
+
 private:
     friend class wxDataViewCtrlDCImpl;
     friend class wxDataViewColumn;
index 15855368b10e981f25e610aa7d518d86d63d8f9a..7f03b9f81343364fe45ec858df026fbee498c5e3 100644 (file)
@@ -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