Opened 3 years ago

Closed 10 months ago

#13478 closed defect (fixed)

wxDataViewEvent::GetEventObject() returns NULL

Reported by: evstevemd Owned by:
Priority: normal Milestone:
Component: wxGTK Version: stable-latest
Keywords: wxDataViewEvent Cc:
Blocked By: Blocking:
Patch: no

Description

Each time I try it returns NULL. I checked the code below in debugger, GetItem() works fine but not GetEventObject.

void MainFrame::testBrowser(wxDataViewEvent& e){

wxObject* obj = e.GetEventObject?();
wxDataViewItem node = e.GetItem?();

}

I use wxGTK SVN version and event I'm catching is
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED

Change History (2)

comment:1 Changed 3 years ago by roebling

Right, please make a patch adding event.SetEventObject() in the signal handlers in src/gtk/dataview.cpp around
lines 4260++

comment:2 Changed 10 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [75138]) Set event object for wxEVT_DATAVIEW_SELECTION_CHANGED events in wxGTK.

The event object was always NULL for these events before as we didn't set it
at all.

Closes #13478.

Note: See TracTickets for help on using tickets.