git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50753
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
AssociateModel( store );
store->DecRef();
AssociateModel( store );
store->DecRef();
+#if !defined(__WXGTK20__) || defined(wxUSE_GENERICDATAVIEWCTRL)
wxDataViewColumn *col = AppendIconTextColumn( "", 0, wxDATAVIEW_CELL_INERT, 40 );
wxDataViewColumn *col = AppendIconTextColumn( "", 0, wxDATAVIEW_CELL_INERT, 40 );
-#if !defined(__WXGTK20__)
wxSize cient_size = GetClientSize();
col->SetWidth( size.x );
wxSize cient_size = GetClientSize();
col->SetWidth( size.x );
+#else
+ AppendIconTextColumn( "", 0, wxDATAVIEW_CELL_INERT, 40 );
GetStore()->ItemChanged( event.GetItem() );
}
GetStore()->ItemChanged( event.GetItem() );
}
-void wxDataViewTreeCtrl::OnSize( wxSizeEvent &WXUNUSED(event) )
+void wxDataViewTreeCtrl::OnSize( wxSizeEvent &event )
-#if !defined(__WXGTK20__)
+#if !defined(__WXGTK20__) || defined(wxUSE_GENERICDATAVIEWCTRL)
wxSize size = GetClientSize();
wxDataViewColumn *col = GetColumn( 0 );
if (col) col->SetWidth( size.x );
#endif
wxSize size = GetClientSize();
wxDataViewColumn *col = GetColumn( 0 );
if (col) col->SetWidth( size.x );
#endif
}
#endif // wxUSE_DATAVIEWCTRL
}
#endif // wxUSE_DATAVIEWCTRL