Set the column for wxEVT_DATAVIEW_ITEM_ACTIVATED in wxGTK
The column is available in the GTK+ callback, so just pass it along to avoid gratuitous inconsistency with the generic version. Also update the sample to show the column value for these events.
This commit is contained in:
@@ -4461,10 +4461,11 @@ wxdataview_selection_changed_callback( GtkTreeSelection* WXUNUSED(selection), wx
|
||||
|
||||
static void
|
||||
wxdataview_row_activated_callback( GtkTreeView* WXUNUSED(treeview), GtkTreePath *path,
|
||||
GtkTreeViewColumn *WXUNUSED(column), wxDataViewCtrl *dv )
|
||||
GtkTreeViewColumn *column, wxDataViewCtrl *dv )
|
||||
{
|
||||
wxDataViewItem item(dv->GTKPathToItem(path));
|
||||
wxDataViewEvent event(wxEVT_DATAVIEW_ITEM_ACTIVATED, dv, item);
|
||||
wxDataViewEvent
|
||||
event(wxEVT_DATAVIEW_ITEM_ACTIVATED, dv, dv->GTKColumnToWX(column), item);
|
||||
dv->HandleWindowEvent( event );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user