]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/control.cpp
wxPostScriptDC::DrawText now uses descent to determine baseline (instead of rough...
[wxWidgets.git] / src / gtk1 / control.cpp
index bbd5ac2fd8e5bd86b269943f5faea7df1eb7deb4..c150c147eec3f1dcd0b3f8c3cef857de35e411f4 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "wx/control.h"
 
-#include "gtk/gtkfeatures.h"
+#include <gtk/gtk.h>
 
 //-----------------------------------------------------------------------------
 // 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);
+}
+