StefanSalewski / gintro

High level GObject-Introspection based GTK3/GTK4 bindings for Nim language
MIT License
294 stars 20 forks source link

Feature request: libhandy support #89

Open FedericoCeratto opened 3 years ago

FedericoCeratto commented 3 years ago

Hello and thanks for developing gintro. Libhandy[1] is gaining popularity on phones (Librem, PinePhone) and tablets. Would you consider adding wrappers/helpers for libhandy as an optional dependency?

[1] https://gitlab.gnome.org/GNOME/libhandy/ https://gnome.pages.gitlab.gnome.org/libhandy/ https://repology.org/project/libhandy/versions

Thanks

StefanSalewski commented 3 years ago

Yes, I also considered adding it. Unfortunately I have currently no mobile device with GTK support, so I may not be able to test it at all. How soon do you need it?

FedericoCeratto commented 3 years ago

Not urgent. Also, libhandy is desiged to generate UIs that work well on small touchscreens and laptops with large touchscreens but also on desktops, e.g. https://gnome.pages.gitlab.gnome.org/libhandy/visual-index.html - so it can be tested on any desktop :)

StefanSalewski commented 3 years ago

OK, I have added libhandy. Was basically only one more line in the generator script.

Note that libhandy is not yet available for GTK4.

I tested with the latest libhandy version from

https://gitlab.gnome.org/GNOME/libhandy/

much older versions may not work yet. I converted the example.py Python example to Nim, it is available in examples/gtk3/handy.nim

Currently I can not provide more examples or tutorials.

Let us know when there are issues.

FedericoCeratto commented 3 years ago

Not only the libhandy demo compiled and ran on the first attempt, but it did so on the arm64 Debian-based PinePhone from https://www.pine64.org/ Thanks!

gavr123456789 commented 3 years ago

Is there any plans for GIR support?
There many third party widgets written in Vala/C
1 2 3 4 5 6