]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
allow a - at the beginning of a menu item (would become a separator by default)
[wxWidgets.git] / src / gtk / control.cpp
index 41f5cc4ea1737f5e7794e4ab4a323be70585be2f..f8ea0c9dc335709e6d3f88b020528f65b7eb248b 100644 (file)
@@ -66,6 +66,7 @@ void wxControl::SetLabel( const wxString &label )
         }
         m_label << *pc;
     }
+    InvalidateBestSize();    
 }
 
 wxString wxControl::GetLabel() const
@@ -85,7 +86,9 @@ wxSize wxControl::DoGetBestSize() const
     (* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(m_widget) )->size_request )
         (m_widget, &req );
 
-    return wxSize(req.width, req.height);
+    wxSize best(req.width, req.height);
+    CacheBestSize(best);
+    return best;
 }