Gtk: statictext widget must set usize in case of new autosize. fixes #16127

git-svn-id: trunk@24247 -
This commit is contained in:
zeljko 2010-03-27 13:48:46 +00:00
parent 10df69f897
commit 0c98e064f9

View File

@ -1518,6 +1518,9 @@ begin
WidgetInfo^.CoreWidget := EventBox;
gtk_object_set_data(PGtkObject(EventBox), 'widgetinfo', WidgetInfo);
{$IFNDEF OldAutoSize}
gtk_widget_set_usize(PGtkWidget(Result), AParams.Width, AParams.Height);
{$ENDIF}
Allocation.X := AParams.X;
Allocation.Y := AParams.Y;
Allocation.Width := AParams.Width;