+// ---------------------------------------------------------
+// wxDataViewColumn
+// ---------------------------------------------------------
+
+IMPLEMENT_ABSTRACT_CLASS(wxDataViewColumn, wxDataViewColumnBase)
+
+wxDataViewColumn::wxDataViewColumn( const wxString &title, wxDataViewCtrl *ctrl,
+ wxDataViewColumnType kind, int flags ) :
+ wxDataViewColumnBase( title, ctrl, kind, flags )
+{
+ GtkCellRenderer *renderer = NULL;
+
+ if (kind == wxDATAVIEW_COL_TEXT)
+ {
+ renderer = gtk_cell_renderer_text_new();
+ } else
+ if (kind == wxDATAVIEW_COL_CHECK)
+ {
+ renderer = gtk_cell_renderer_toggle_new();
+ } else
+ if (kind == wxDATAVIEW_COL_ICON)
+ {
+ renderer = gtk_cell_renderer_pixbuf_new();
+ }
+ else
+ return;
+
+ GtkTreeViewColumn *column =
+ gtk_tree_view_column_new_with_attributes( wxGTK_CONV(title), renderer, "text", 0, NULL );
+
+ // bind to data here... not above.
+
+ m_column = (void*) column;
+}
+
+wxDataViewColumn::~wxDataViewColumn()
+{
+}
+
+void wxDataViewColumn::SetTitle( const wxString &title )
+{
+ wxDataViewColumnBase::SetTitle( title );
+
+ GtkTreeViewColumn *column = (GtkTreeViewColumn *)m_column;
+ gtk_tree_view_column_set_title( column, wxGTK_CONV(title) );
+}
+