mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 11:47:32 +01:00
LCL-GTK3: Fix calling button handler. Issue #37804, patch from Anton Kavalenka.
git-svn-id: trunk@63919 -
This commit is contained in:
parent
5d132a7330
commit
36dd059fc3
@ -1224,6 +1224,7 @@ begin
|
|||||||
// GDK_BUTTON_RELEASE:
|
// GDK_BUTTON_RELEASE:
|
||||||
7:
|
7:
|
||||||
begin
|
begin
|
||||||
|
if not (csClickEvents in TGtk3Widget(Data).LCLObject.ControlStyle) then
|
||||||
Result := TGtk3Widget(Data).GtkEventMouse(Widget , Event);
|
Result := TGtk3Widget(Data).GtkEventMouse(Widget , Event);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -6923,7 +6924,13 @@ end;
|
|||||||
|
|
||||||
function TGtk3Window.GetTitle: String;
|
function TGtk3Window.GetTitle: String;
|
||||||
begin
|
begin
|
||||||
Result:=PGtkWindow(FWidget)^.get_title();
|
if Gtk3IsGtkWindow(fWidget) then
|
||||||
|
Result:=PGtkWindow(fWidget)^.get_title()
|
||||||
|
{else
|
||||||
|
if Gtk3IsWIdget(fWidget) then
|
||||||
|
Result:='widget'}
|
||||||
|
else
|
||||||
|
Result:=''
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TGtk3Window.SetIcon(AValue: PGdkPixBuf);
|
procedure TGtk3Window.SetIcon(AValue: PGdkPixBuf);
|
||||||
@ -6957,7 +6964,8 @@ end;
|
|||||||
|
|
||||||
procedure TGtk3Window.SetTitle(const AValue: String);
|
procedure TGtk3Window.SetTitle(const AValue: String);
|
||||||
begin
|
begin
|
||||||
PGtkWindow(FWidget)^.set_title(PGChar(AValue));
|
if Gtk3IsGtkWindow(fWidget) then
|
||||||
|
PGtkWindow(FWidget)^.set_title(PGChar(AValue))
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function Gtk3WindowState(AWidget: PGtkWidget; AEvent: PGdkEvent; AData: gPointer): GBoolean; cdecl;
|
function Gtk3WindowState(AWidget: PGtkWidget; AEvent: PGdkEvent; AData: gPointer): GBoolean; cdecl;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user