From f0b31a4b7a564ef5d9a44605f4a3dbca62ba0a4c Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 7 Mar 2009 14:09:01 +0000 Subject: [PATCH] wxDATAVIEW_CELL_ACTIVATABLE translates Editable under OS X. Maybe we should remove the distinction. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/dataview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osx/carbon/dataview.cpp b/src/osx/carbon/dataview.cpp index 8a35b22c56..89c9c75dd5 100644 --- a/src/osx/carbon/dataview.cpp +++ b/src/osx/carbon/dataview.cpp @@ -133,7 +133,8 @@ static bool InitializeColumnDescription(DataBrowserListViewColumnDesc& columnDes } if (columnPtr->IsSortable()) columnDescription.propertyDesc.propertyFlags |= kDataBrowserListViewSortableColumn; - if (columnPtr->GetRenderer()->GetMode() == wxDATAVIEW_CELL_EDITABLE) + if ((columnPtr->GetRenderer()->GetMode() == wxDATAVIEW_CELL_EDITABLE) || + (columnPtr->GetRenderer()->GetMode() == wxDATAVIEW_CELL_ACTIVATABLE)) columnDescription.propertyDesc.propertyFlags |= kDataBrowserPropertyIsEditable; if ((columnDescription.propertyDesc.propertyType == kDataBrowserCustomType) || (columnDescription.propertyDesc.propertyType == kDataBrowserDateTimeType) || @@ -489,7 +490,7 @@ void wxDataViewRenderer::SetMode(wxDataViewCellMode mode) DataBrowserPropertyFlags flags; verify_noerr(macDataViewListCtrlPtr->GetPropertyFlags(dataViewColumnPtr->GetPropertyID(),&flags)); - if (mode == wxDATAVIEW_CELL_EDITABLE) + if ((mode == wxDATAVIEW_CELL_EDITABLE) || (mode == wxDATAVIEW_CELL_ACTIVATABLE)) flags |= kDataBrowserPropertyIsEditable; else flags &= ~kDataBrowserPropertyIsEditable; -- 2.45.2