X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c72b150f5d6552b577d0e1070672af41208da7b2..8a3f08bc6f9d7d7ece178d98fe01ac3ef45e1509:/src/gtk1/listbox.cpp diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index e03436d1fa..308faa01e1 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -26,7 +26,7 @@ #include "wx/tooltip.h" #endif -#include +# include #include #include @@ -231,7 +231,7 @@ static void gtk_listitem_select_callback( GtkWidget *WXUNUSED(widget), wxListBox if (!listbox->m_hasVMT) return; if (g_blockEventsOnDrag) return; - + wxCommandEvent event(wxEVT_COMMAND_LISTBOX_SELECTED, listbox->GetId() ); event.SetEventObject( listbox ); @@ -349,7 +349,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id, PostCreation(); - SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_WINDOW ) ); + SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_LISTBOX ) ); SetForegroundColour( parent->GetForegroundColour() ); SetFont( parent->GetFont() ); @@ -361,6 +361,8 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id, wxListBox::~wxListBox() { Clear(); + if (m_strings) + delete m_strings; } void wxListBox::DoInsertItems(const wxArrayString& items, int pos)