lcl: gtk2: less hints

git-svn-id: trunk@54270 -
This commit is contained in:
mattias 2017-02-25 12:26:50 +00:00
parent 63b12d5281
commit 673bc11392
4 changed files with 5 additions and 5 deletions

View File

@ -572,7 +572,7 @@ begin
end;
end;
function Translate (Name,Value : AnsiString; Hash : Longint; arg:pointer) : AnsiString;
function Translate (Name,Value : AnsiString; {%H-}Hash : Longint; arg:pointer) : AnsiString;
var
po: TPOFile;
begin

View File

@ -2721,14 +2721,14 @@ end;
function gtkPasteFromClip( widget: PGtkWidget; data: gPointer) : GBoolean; cdecl;
var
Mess : TLMessage;
Info: PWidgetInfo;
//Info: PWidgetInfo;
begin
EventTrace('Paste from clip', data);
// we must update cursor pos with delay otherwise selStart is wrong.issue #7243
if (Widget <> nil) and (GTK_IS_ENTRY(Widget)) then
begin
Info := GetWidgetInfo(Widget, False);
//Info := GetWidgetInfo(Widget, False);
//Include(Info^.Flags, wwiInvalidEvent);
// happy end is inside gtkchanged_editbox() above.
g_object_set_data(PGObject(Widget),'lcl-delay-cm_textchanged', data);

View File

@ -157,7 +157,7 @@ function gtkMouseBtnPress(widget: PGtkWidget; event: pgdkEventButton;
data: gPointer): GBoolean; cdecl;
function gtkMouseBtnPressAfter(widget: PGtkWidget; event: pgdkEventButton;
data: gPointer): GBoolean; cdecl;
function ControlGetsMouseUpBefore(AControl: TControl): boolean;
function ControlGetsMouseUpBefore({%H-}AControl: TControl): boolean;
function DeliverMouseUpMessage(widget: PGtkWidget; event: pgdkEventButton;
AWinControl: TWinControl): boolean;
function gtkMouseBtnRelease(widget: PGtkWidget; event: pgdkEventButton;

View File

@ -1048,7 +1048,7 @@ begin
bVisible := AWinControl.HandleObjectShouldBeVisible;
if bVisible then
gtk_window_set_type_hint(PGtkWindow(AWinControl.Handle), GDK_WINDOW_TYPE_HINT_TOOLTIP);
gtk_window_set_type_hint({%H-}PGtkWindow(AWinControl.Handle), GDK_WINDOW_TYPE_HINT_TOOLTIP);
Gtk2WidgetSet.SetVisible(AWinControl, bVisible);
InvalidateLastWFPResult(AWinControl, AWinControl.BoundsRect);
end;