digitalmars.D - Gkt4 + Adwaita
- slawtul (17/17) Feb 23 2023 Hi guys,
- Dejan Lekic (5/8) Feb 23 2023 It already works... well, "kind of". There is GTK4 branch in GtkD
- slawtul (5/13) Feb 23 2023 Hi thanks, for reply.
- Dejan Lekic (4/9) Feb 23 2023 Gtk3 branch is quite stable for quite some time. As Ian
- slawtul (3/13) Feb 23 2023 I know Tilix - I even use it everyday. It's a pity the project is
- Dejan Lekic (3/6) Feb 23 2023 Here is an example with Gtk3: https://imgur.com/nXcI7E9.png
- Iain Buclaw (3/7) Feb 23 2023 I had a quick look at Tilix, but it's still using GTK3 it seems.
Hi guys, Was anyone here trying to marry dlang, gtk4 and adwaita lib? Do you have some examples? In C++ it's easy - however I would like to use D lang obviously ``` #include <adwaita.h> #include <gtkmm.h> #include <ui/include/Window.h> int main(int argc, char *argv[]) { auto app = Gtk::Application::create("my.app"); adw_style_manager_set_color_scheme(adw_style_manager_get_default(), ADW_COLOR_SCHEME_PREFER_LIGHT); return app->make_window_and_run<Window>(argc, argv); } ```
Feb 23 2023
On Thursday, 23 February 2023 at 09:51:34 UTC, slawtul wrote:Hi guys, Was anyone here trying to marry dlang, gtk4 and adwaita lib? Do you have some examples?It already works... well, "kind of". There is GTK4 branch in GtkD (https://gtkd.org) that needs some love. Branch: https://github.com/gtkd-developers/GtkD/tree/gtk4 . With that you can write Gtk4+Adwaita applications in D.
Feb 23 2023
On Thursday, 23 February 2023 at 10:16:35 UTC, Dejan Lekic wrote:On Thursday, 23 February 2023 at 09:51:34 UTC, slawtul wrote:Hi thanks, for reply. __that needs some love__ - this statement worries me a litte bit. Anyways, I will try it but if I encounter too many issues - I will stay with c++ unfortunately.Hi guys, Was anyone here trying to marry dlang, gtk4 and adwaita lib? Do you have some examples?It already works... well, "kind of". There is GTK4 branch in GtkD (https://gtkd.org) that needs some love. Branch: https://github.com/gtkd-developers/GtkD/tree/gtk4 . With that you can write Gtk4+Adwaita applications in D.
Feb 23 2023
On Thursday, 23 February 2023 at 11:57:17 UTC, slawtul wrote:Hi thanks, for reply. __that needs some love__ - this statement worries me a litte bit. Anyways, I will try it but if I encounter too many issues - I will stay with c++ unfortunately.Gtk3 branch is quite stable for quite some time. As Ian mentioned, Tilix is based on it for an example - quite popular project built with D and GtkD (stable, Gtk3 branch).
Feb 23 2023
On Thursday, 23 February 2023 at 12:24:02 UTC, Dejan Lekic wrote:On Thursday, 23 February 2023 at 11:57:17 UTC, slawtul wrote:I know Tilix - I even use it everyday. It's a pity the project is less and less maintained.Hi thanks, for reply. __that needs some love__ - this statement worries me a litte bit. Anyways, I will try it but if I encounter too many issues - I will stay with c++ unfortunately.Gtk3 branch is quite stable for quite some time. As Ian mentioned, Tilix is based on it for an example - quite popular project built with D and GtkD (stable, Gtk3 branch).
Feb 23 2023
On Thursday, 23 February 2023 at 09:51:34 UTC, slawtul wrote:Hi guys, Was anyone here trying to marry dlang, gtk4 and adwaita lib? Do you have some examples?Here is an example with Gtk3: https://imgur.com/nXcI7E9.png ![DIDE 0.1.0](https://imgur.com/nXcI7E9.png "DIDE 0.1.0")
Feb 23 2023
On Thursday, 23 February 2023 at 09:51:34 UTC, slawtul wrote:Hi guys, Was anyone here trying to marry dlang, gtk4 and adwaita lib? Do you have some examples? In C++ it's easy - however I would like to use D lang obviouslyI had a quick look at Tilix, but it's still using GTK3 it seems. https://github.com/gnunn1/tilix
Feb 23 2023