Skip to content

Commit d4b98b5

Browse files
committed
lazutils: GetLCLWidgetType falls back to build platform not gtk2
lazbuild links no widgetset, so its CreateDefaults hit the hardcoded gtk2 fallback and baked GTK into fresh build profiles - showing GTK as the Build Lazarus widget type on Windows. on Linux the build platform is gtk2 too, so no change there.
1 parent 77a3231 commit d4b98b5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

components/lazutils/lazversion.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ function GetLCLWidgetType: TLCLPlatform;
112112
if Assigned(OnLCLWidgetType) then
113113
Result := OnLCLWidgetType()
114114
else
115-
Result := lpGtk2;
115+
// no running widgetset (e.g. lazbuild): fall back to the platform this
116+
// binary was built for, not a hardcoded gtk2
117+
Result := GetBuildLCLWidgetType;
116118
end;
117119

118120
function GetLCLWidgetTypeName: string;

0 commit comments

Comments
 (0)