Gtk2: do not show selection when GtkEntry is unfocused.

git-svn-id: trunk@36097 -
This commit is contained in:
zeljko 2012-03-16 20:58:04 +00:00
parent 809abca886
commit 2dbd330280

View File

@ -1016,8 +1016,9 @@ begin
DebugLn('');
{$ENDIF}
// do not release capture widget here, as this will interfere
//ReleaseCaptureWidget(Widget);
// do not show selection when widget is unfocused
if GtkWidgetIsA(Widget, gtk_type_entry) then
gtk_editable_select_region(PGtkEditable(Widget), 0, 0);
Result:=CallBackDefaultReturn;
end;