Gr3q / types-cjs

Typescript declarations for CJS - Cinnamon JavaScript
MIT License
5 stars 2 forks source link

get_clutter_text should return Clutter.Text #18

Closed jonath92 closed 2 years ago

jonath92 commented 2 years ago

The title says pretty much everything. The get_clutter_text function of the imports.gi.St.Label should return a Clutter.Text instead of Clutter.Actor: https://github.com/Gr3q/types-cjs/blob/538162f28a1de8cf034739163ecd69057d83bcd7/St-1.0.d.ts#L632

As a workaround, it is possible to use simply the clutter_textprop directly as it is there correct: https://github.com/Gr3q/types-cjs/blob/538162f28a1de8cf034739163ecd69057d83bcd7/St-1.0.d.ts#L624