mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 17:58:18 +02:00
gtk2: small fix for gtkEntry 'changed' , gtk2 bug is fixed in >= 2.17 not >= 2.15
git-svn-id: trunk@24050 -
This commit is contained in:
parent
e3390558b1
commit
e00a729df4
@ -509,7 +509,7 @@ begin
|
||||
begin
|
||||
{mark as invalid event for gtkchanged_editbox, so
|
||||
it doesn't update cursor pos or we have a mess.}
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 15) then
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 17) then
|
||||
begin
|
||||
Info := GetWidgetInfo(Widget, False);
|
||||
include(Info^.Flags, wwiInvalidEvent);
|
||||
@ -2231,7 +2231,7 @@ begin
|
||||
EventTrace('Cut to clip', data);
|
||||
if (Widget=nil) then ;
|
||||
{$IFDEF GTK2}
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 15) then
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 17) then
|
||||
begin
|
||||
if (Widget <> nil) and (GTK_IS_ENTRY(Widget)) then
|
||||
begin
|
||||
@ -2264,7 +2264,7 @@ begin
|
||||
EventTrace('Paste from clip', data);
|
||||
if (Widget=nil) then ;
|
||||
{$IFDEF GTK2}
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 15) then
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 17) then
|
||||
begin
|
||||
if (Widget <> nil) and (GTK_IS_ENTRY(Widget)) then
|
||||
begin
|
||||
|
@ -3387,7 +3387,7 @@ begin
|
||||
if GTK_IS_ENTRY(gObject) then
|
||||
begin
|
||||
ConnectSenderSignal(gObject,'backspace', @gtkchanged_editbox_backspace);
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 15) then
|
||||
if (gtk_major_version = 2) and (gtk_minor_version < 17) then
|
||||
ConnectSenderSignal(gObject,'delete-from-cursor', @gtkchanged_editbox_delete);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user