From 59250767ccbd8e1e3cd2ab114f10267c5900b3e9 Mon Sep 17 00:00:00 2001 From: Sean DeNigris Date: Mon, 5 Aug 2024 22:06:57 -0400 Subject: [PATCH] [Port]: GT Actions Hook - Move from gtActions to gtActionsInContext: (#360) ... where real work seems to happen now --- source/Magritte-GToolkit/Object.extension.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Magritte-GToolkit/Object.extension.st b/source/Magritte-GToolkit/Object.extension.st index d5d5d14c..82c3e758 100644 --- a/source/Magritte-GToolkit/Object.extension.st +++ b/source/Magritte-GToolkit/Object.extension.st @@ -23,11 +23,11 @@ Object >> descriptionInspect: aDescription [ ] { #category : #'*Magritte-GToolkit' } -Object >> gtActions [ +Object >> gtActionsInContext: aPhlowContext [ "Hack to extend GToolkit's actions. The GT mechanism is in ProtoObject, which is the only class we miss by hooking in here" | magritteGToolkitActions | magritteGToolkitActions := self magritteActions collect: [ :desc | desc gtActionOf: self ]. - ^ super gtActions, magritteGToolkitActions + ^ (super gtActionsInContext: aPhlowContext), magritteGToolkitActions ] { #category : #'*Magritte-GToolkit' }