Skip to content

Commit

Permalink
can-lehmann#88 minor adjustment to callback parameters
Browse files Browse the repository at this point in the history
This doesn't really make it all that batter, it still segfaults
if you do anything, but at least this is more according to the docs.
No idea how to fix it.
  • Loading branch information
PhilippMDoerner committed Oct 10, 2023
1 parent 66c1017 commit 2175752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owlkettle/adw.nim
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ when AdwVersion >= (1, 4):
state.internalWidget = adw_spin_row_new(GtkAdjustment(nil), climbRate.cdouble, digits.cuint)

connectEvents:
proc changedCallback(widget: GtkWidget, data: ptr EventObj[proc (newValue: float)]) {.cdecl.} =
proc changedCallback(widget: GtkWidget, newValueHolder: ptr cdouble, data: ptr EventObj[proc (newValue: float)]) {.cdecl.} =
echo "Changed Signal"
var newValue: float
try:
Expand Down

0 comments on commit 2175752

Please sign in to comment.