can-lehmann / owlkettle

A declarative user interface framework based on GTK 4
https://can-lehmann.github.io/owlkettle/README
MIT License
375 stars 13 forks source link

Fix some examples #152

Closed wada3n closed 9 months ago

wada3n commented 9 months ago

H, I'm new to Nim and GTK, I'm also a big fan of working through examples to learn new programming languages. I think it's a great way to get a feel for the syntax and semantics of a language. I'm writing to request a fix for some examples . BTW I'm a big fan of your work on this library, and I think it's a great resource for Nim gui developers.

I've noticed a few errors in the examples : 1- examples/widgets/adw/entry_row.nim,

Error: undeclared identifier: 'EntryRow' candidates (edit distance, scope distance); see '--spellSuggest': (3, 9): 'Entry' (3, 9): 'EntryError'

2- examples/widgets/adw/switch_row.nim

Error: undeclared identifier: 'SwitchRow' candidates (edit distance, scope distance); see '--spellSuggest': (3, 9): 'Switch'

Thank you for your time and consideration.

can-lehmann commented 9 months ago

Did you compile with -d:adwminor=2/-d:adwminor=4 respectively?

wada3n commented 9 months ago

Yep,it worked 😄 As I said I am a beginner, so excuse my ignorance. I have now looked at the code and found its related to Adwaita 1.x version. Thank you very much again.