X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d038ec59c7978070bd7641df0d8b5af04f7dd53..239eaa415414c5d978072af89772b12e74309e1d:/src/gtk/listbox.cpp?ds=inline diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 7f0809b592..efa0d15491 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -21,14 +21,19 @@ #include "wx/intl.h" #include "wx/checklst.h" #include "wx/settings.h" + +// FIXME: Use GtkTreeView/GtkListModel instead? +#include +#ifdef GTK_DISABLE_DEPRECATED +#undef GTK_DISABLE_DEPRECATED +#endif + #include "wx/gtk/private.h" #if wxUSE_TOOLTIPS #include "wx/tooltip.h" #endif -#include -#include #include //----------------------------------------------------------------------------- @@ -913,7 +918,7 @@ void wxListBox::SetString( int n, const wxString &string ) #endif // wxUSE_CHECKLISTBOX str += string; - gtk_label_set( label, wxGTK_CONV( str ) ); + gtk_label_set_text( label, wxGTK_CONV( str ) ); } else {