Closed jonath92 closed 2 years ago
Currently you must return a number when connecting to a property change with notify::[property]:
notify::[property]
widget.connect('notify::hover, () => { widget.change_style_pseudo_class('active', widget.hover) return 1 // why this line needed? )
In the tutorial they are returning nothing: https://gjs.guide/guides/gobject/basics.html#property-change-notification ...
Yeah, I already commented on your PR, it is a mistake (typo) on my part, I will fix this tomorrow.
close as fixed
Currently you must return a number when connecting to a property change with
notify::[property]
:In the tutorial they are returning nothing: https://gjs.guide/guides/gobject/basics.html#property-change-notification ...