indicate whether this is a selection or a deselection in wxCommandEvent generated by a multiselection wxListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -243,7 +243,9 @@ static void gtk_listitem_deselect_callback( GtkWidget *widget, wxListBox *listbo
|
||||
gtk_listitem_select_cb( widget, listbox, FALSE );
|
||||
}
|
||||
|
||||
static void gtk_listitem_select_cb( GtkWidget *widget, wxListBox *listbox, bool is_selection )
|
||||
static void gtk_listitem_select_cb( GtkWidget *widget,
|
||||
wxListBox *listbox,
|
||||
bool is_selection )
|
||||
{
|
||||
if (g_isIdle) wxapp_install_idle_handler();
|
||||
|
||||
@@ -255,9 +257,8 @@ static void gtk_listitem_select_cb( GtkWidget *widget, wxListBox *listbox, bool
|
||||
wxCommandEvent event(wxEVT_COMMAND_LISTBOX_SELECTED, listbox->GetId() );
|
||||
event.SetEventObject( listbox );
|
||||
|
||||
// MSW doesn't do that either
|
||||
// event.SetExtraLong( (long) is_selection );
|
||||
|
||||
// indicate whether this is a selection or a deselection
|
||||
event.SetExtraLong( is_selection );
|
||||
|
||||
if ((listbox->GetWindowStyleFlag() & wxLB_SINGLE) != 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user