lcl: gtk2: fixed LM_CONTEXTMENU for TCustomControl

git-svn-id: trunk@40541 -
This commit is contained in:
mattias 2013-03-13 10:15:15 +00:00
parent 17eb1a44d9
commit 69cb36d62a
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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);