X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9abe166a3073d9e9ceb0110429a45adc6517d76f..6c3d9ced08ebea44948d2e129bcef5e1752a4544:/src/gtk1/control.cpp diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index bbd5ac2fd8..c150c147ee 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -13,7 +13,7 @@ #include "wx/control.h" -#include "gtk/gtkfeatures.h" +#include //----------------------------------------------------------------------------- // wxControl @@ -58,3 +58,12 @@ wxString wxControl::GetLabel() const } +wxSize wxControl::DoGetBestSize() const +{ + GtkRequisition req; + (* GTK_WIDGET_CLASS( GTK_OBJECT(m_widget)->klass )->size_request ) + (m_widget, &req ); + + return wxSize(req.width, req.height); +} +