X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba8c878f957da36c14879b747a2d54d7fe01baa8..37ed592f7106e4ba483baa6fba91a9c481048bbc:/src/gtk/choice.cpp?ds=sidebyside diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index af2b1092fd..8f25aa9632 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -127,6 +127,13 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, PostCreation(size); SetInitialSize(size); // need this too because this is a wxControlWithItems + // workaround for bug in gtk_option_menu_set_history(), it causes + // gtk_widget_size_allocate() to be called with the current + // widget->allocation values, which will be zero if a proper + // size_allocate has not occured yet + m_widget->allocation.width = m_width; + m_widget->allocation.height = m_height; + return true; }