mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 11:18:10 +02:00
LCL-GTK2: Prevent a crash in OpenBSD, related to tooltips. Issue #41244, patch by Alfred Glänzer.
This commit is contained in:
parent
1bcd352773
commit
3185572fdf
@ -8132,13 +8132,11 @@ begin
|
||||
else
|
||||
If CompareText(WName,LazGtkStyleNames[lgsStatusBar])=0 then begin
|
||||
lgs:=lgsStatusBar;
|
||||
AddToStyleWindow:=true;
|
||||
StyleObject^.Widget := gtk_statusbar_new;
|
||||
end
|
||||
else
|
||||
If CompareText(WName,LazGtkStyleNames[lgsCalendar])=0 then begin
|
||||
lgs:=lgsCalendar;
|
||||
AddToStyleWindow:=true;
|
||||
StyleObject^.Widget := gtk_calendar_new;
|
||||
end
|
||||
else
|
||||
@ -8185,6 +8183,7 @@ begin
|
||||
WidgetName := 'gtk-tooltip-lcl';
|
||||
StyleObject^.Owner := Tp;
|
||||
Tp := nil;
|
||||
AddToStyleWindow:=false;
|
||||
end
|
||||
else
|
||||
If CompareText(WName,LazGtkStyleNames[lgsHScale])=0 then begin
|
||||
|
Loading…
Reference in New Issue
Block a user