replace m_insertCallback with a virtual function, contrary to the old comments a virtual works just fine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3439,14 +3439,9 @@ wxdataview_row_collapsed_callback( GtkTreeView* WXUNUSED(treeview), GtkTreeIter*
|
||||
// wxDataViewCtrl
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// InsertChild for wxDataViewCtrl
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static void wxInsertChildInDataViewCtrl( wxWindowGTK* parent, wxWindowGTK* child )
|
||||
void wxDataViewCtrl::AddChildGTK(wxWindowGTK* child)
|
||||
{
|
||||
wxDataViewCtrl * dvc = (wxDataViewCtrl*) parent;
|
||||
GtkWidget *treeview = dvc->GtkGetTreeView();
|
||||
GtkWidget* treeview = GtkGetTreeView();
|
||||
|
||||
// Insert widget in GtkTreeView
|
||||
if (GTK_WIDGET_REALIZED(treeview))
|
||||
@@ -3607,8 +3602,6 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
return false;
|
||||
}
|
||||
|
||||
m_insertCallback = wxInsertChildInDataViewCtrl;
|
||||
|
||||
m_widget = gtk_scrolled_window_new (NULL, NULL);
|
||||
g_object_ref(m_widget);
|
||||
|
||||
|
Reference in New Issue
Block a user