mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 13:39:11 +02:00
Gtk2: fixed crash with spin button under gtk2 < 2.12. issue #18554
git-svn-id: trunk@29157 -
This commit is contained in:
parent
746802f909
commit
619744bfed
@ -454,7 +454,9 @@ function gtkchanged_spinbox(widget: PGtkWidget; data: gPointer): GBoolean; cdecl
|
|||||||
begin
|
begin
|
||||||
Result := CallBackDefaultReturn;
|
Result := CallBackDefaultReturn;
|
||||||
if LockOnChange(PgtkObject(Widget),0) > 0 then exit;
|
if LockOnChange(PgtkObject(Widget),0) > 0 then exit;
|
||||||
if GTK_IS_SPIN_BUTTON(Widget) then
|
// prior to gtk2-2.12 there's bug with signalling of spin button
|
||||||
|
// which leads to crash.See issue #18554
|
||||||
|
if GTK_IS_SPIN_BUTTON(Widget) and (gtk_minor_version >= 12) then
|
||||||
gtk_spin_button_update(PGtkSpinButton(Widget));
|
gtk_spin_button_update(PGtkSpinButton(Widget));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user