LCL-GTK2: Partly revert r53653 #273d60e1e3, check for gtk_minor_version again. Issue #32196

git-svn-id: branches/fixes_1_8@55814 -
This commit is contained in:
mattias 2017-09-08 17:50:15 +00:00
parent aaea97f7c8
commit 1efd1d4582

View File

@ -461,9 +461,13 @@ begin
gtk_editable_set_position(PGtkEditable(Widget), GStart);
end else
begin
g_object_set_data(PGObject(Widget),'lcl-gtkentry-pasted-data',Widget);
g_idle_add(@GtkEntryDelayCursorPos, Widget);
exit;
if gtk_minor_version < 17 then
begin
g_object_set_data(PGObject(Widget),'lcl-gtkentry-pasted-data',Widget);
g_idle_add(@GtkEntryDelayCursorPos, Widget);
exit;
end else
gtk_editable_set_position(PGtkEditable(Widget), GStart + 1);
end;
end;
end;