}
m_label << *pc;
}
+ InvalidateBestSize();
}
wxString wxControl::GetLabel() 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;
}
if ( style && style->font_desc )
{
wxNativeFontInfo info;
- info.description = style->font_desc;
+ info.description = pango_font_description_copy(style->font_desc);
attr.font = wxFont(info);
}
else
return attr;
}
-void wxControl::ApplyWidgetStyle(bool forceStyle)
-{
- GtkRcStyle *style = CreateWidgetStyle(forceStyle);
- if ( style )
- {
- DoApplyWidgetStyle(style);
- gtk_rc_style_unref(style);
- }
-}
-
-void wxControl::DoApplyWidgetStyle(GtkRcStyle *style)
-{
- gtk_widget_modify_style(m_widget, style);
-}
-
-
#endif // wxUSE_CONTROLS