Closed davidbe closed 1 year ago
As the debugger points out:
Bad FFI method name attach
[Condition of type SIMPLE-ERROR]
Restarts:
0: [RETURN] Return from current handler.
1: [RETURN-AND-ABORT] Return from current handler and abort the GTK application.
2: [RETURN-VALUE] Return from current handler with specified value.
3: [RETURN-VALUE-AND-ABORT] Return from current handler with specified value and abort the GTK application.
4: [RETRY] Retry SLY mREPL evaluation request.
5: [*ABORT] Return to SLY's top level.
--more--
Backtrace:
0: (GIR::OBJECT-CLASS-FIND-BUILD-METHOD #O<GridLayout> "attach")
...
You are invoking the method attach
on GridLayout
instead of Grid
. Simply replacing make-grid-layout
with make-grid
can solve this problem.
I've experiences with gtk, but I'm new to Lisp. I've been trying to make a simple front-end using a Grid.
I guess I need to use
grid-attach
to attach a widget to the grid. But when running that code, I got aBad FFI method name attach
error. What am I doing wrong?My code is below. Thanks in advance!