mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-05 06:38:22 +02:00
lcl: gtk2: fixed LM_CONTEXTMENU for TCustomControl
git-svn-id: trunk@40541 -
This commit is contained in:
parent
17eb1a44d9
commit
69cb36d62a
@ -285,7 +285,6 @@ type
|
||||
procedure AppTerminate; override;
|
||||
procedure AppSetTitle(const {%H-}ATitle: string); override;
|
||||
|
||||
// copied from GtkInt
|
||||
procedure _SetCallbackEx(const AMsg: LongInt; const AGTKObject: PGTKObject; const ALCLObject: TObject; Direct: Boolean);
|
||||
procedure SetCallbackEx(const AMsg: LongInt; const AGTKObject: PGTKObject; const ALCLObject: TObject; Direct: Boolean);
|
||||
procedure SetCommonCallbacks(const AGTKObject: PGTKObject; const ALCLObject: TObject);
|
||||
|
@ -826,7 +826,7 @@ begin
|
||||
end;
|
||||
|
||||
LM_CONTEXTMENU:
|
||||
ConnectSenderSignal(gCore, 'popup-menu', @gtk2PopupMenuCB);
|
||||
ConnectSenderSignal(gObject, 'popup-menu', @gtk2PopupMenuCB); // TCustomControl needs gObject, not gCore nor gFixed
|
||||
|
||||
else
|
||||
_SetCallbackEx(AMsg, AGTKObject, ALCLObject, Direct);
|
||||
|
Loading…
Reference in New Issue
Block a user