mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 15:41:45 +02:00
LCL-GTK2: A minor optimization.
This commit is contained in:
parent
982aca90c7
commit
8241d6c315
@ -253,7 +253,8 @@ begin
|
||||
// define extra events we're interrested in
|
||||
//if TheWinControl<>nil then DbgOut(' ',TheWinControl.Name,':',TheWinControl.ClassName,' ',DbgS(TheWinControl.Handle));
|
||||
//DebugLn(' Widget=',DbgS(Widget),' Fixed=',DbgS(GetFixedWidget(Widget)),' Main=',DbgS(GetMainWidget(Widget)));
|
||||
if (TheWinControl<>nil) then begin
|
||||
if TheWinControl<>nil then
|
||||
begin
|
||||
//DebugLn(['gtkRealizeAfterCB ',GetWidgetDebugReport(Widget)]);
|
||||
{$IFDEF DebugGDK}BeginGDKErrorTrap;{$ENDIF}
|
||||
|
||||
@ -273,17 +274,12 @@ begin
|
||||
end;
|
||||
//DebugLn('BBB1 ',DbgS(NewEventMask),8),' ',DbgS(Cardinal(gdk_window_get_events(Widget^.Window)));
|
||||
{$IFDEF DebugGDK}EndGDKErrorTrap;{$ENDIF}
|
||||
end;
|
||||
|
||||
if TheWinControl<>nil then
|
||||
begin
|
||||
TheWinControl.CNPreferredSizeChanged;
|
||||
TGtkPrivateWidgetClass(TheWinControl.WidgetSetClass.WSPrivate).UpdateCursor(WinWidgetInfo);
|
||||
ConnectInternalWidgetsSignals(MainWidget,TheWinControl);
|
||||
|
||||
if (TheWinControl is TCustomPage)
|
||||
and not ((TheWinControl.Parent <> nil) and (TheWinControl.Parent is TTabControl))
|
||||
then
|
||||
if (TheWinControl is TCustomPage) and not (TheWinControl.Parent is TTabControl) then
|
||||
UpdateNotebookPageTab(nil,TheWinControl);
|
||||
|
||||
if TheWinControl is TCustomForm then
|
||||
|
Loading…
Reference in New Issue
Block a user