so after that I started by replace GtkApplicationWindow by HdyApplicationWindow in window.ui and replacing Gtk.ApplicationWindow by Hdy.ApplicationWindow in window.vala
but it doesnt work also, but that what I noticed if any one can help
in gnome clocks (also other projects like gnome calculator and gnome contacts) they doesnt use
using Gtk;
using Handy; // I also tried `Hdy` and `libhandy`
in main.vala , I get error when I use it (by the way I tried to dont use it but also I get error coz class Hdy.ApplicationWindow seems like doesnt exist)
when I build my project it make directory in subprojects with name libhandy and download library to it, but when I build gnome clocks it does not make this
in meson.build. and then mention the handy_dep in the list of dependencies like Zander mentioned.
Not needed if you don’t use subproject
Correct
Not needed, those lines are ignored.
n gnome clocks (also other projects like gnome calculator and gnome contacts) they doesnt use
Hdy. But you don’t have to do that, that would just allow you to use ApplicationWindow instead of Hdy.ApplicationWindow.
when I build my project it make directory in subprojects with name libhandy and download library to it, but when I build gnome clocks it does not make this
Then there’s a problem with the flatpak manifest. Maybe a typo somewhere, e.g. a missing comma?
thanks for all of you, and this example on gitlab was very helpful and I learnd another things from example coz using of headerbar in libhandy has a little diffrence on gtk
The headerbar usage difference is just a thing specific to HdyWindow/HdyApplicationWindow. Basically, it has no separate titlebar and you just pack a headerbar inside, which is its main feature compared to GtkWindow really