X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..9d208085a75dd9d59e038dd0e3c66185020ebedf:/include/wx/gtk/choice.h diff --git a/include/wx/gtk/choice.h b/include/wx/gtk/choice.h index 17ae9edeb2..a00f825872 100644 --- a/include/wx/gtk/choice.h +++ b/include/wx/gtk/choice.h @@ -83,7 +83,7 @@ public: protected: wxList m_clientList; // contains the client data for the items - void ApplyWidgetStyle(); + void DoApplyWidgetStyle(GtkRcStyle *style); virtual int DoAppend(const wxString& item); virtual int DoInsert(const wxString& item, int pos); @@ -104,6 +104,12 @@ private: // allocate it if it's needed (hence using pointer) wxSortedArrayString *m_strings; +public: + // this circumvents a GTK+ 2.0 bug so that the selection is + // invalidated properly + int m_selection_hack; + +private: DECLARE_DYNAMIC_CLASS(wxChoice) };