mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:39:30 +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
|
||||
Result := CallBackDefaultReturn;
|
||||
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));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user