-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Just information, but this one I will close after making it, to keep the issue tracker smaller-ish] ruby-gtk4 gem works now! #8
Comments
Thank you for opening this issue. Actually, the plan behind Glimmer DSL for GTK was to only support gtk4 originally. I ended up supporting gtk3 as a proof-of-concept just because gtk4 was not ready for prime time when I built this library. In fact, given the new gtk4 gem releases, I recently added a TODO item to upgrade Glimmer DSL for GTK to gtk4. So, I'm glad you opened this issue. I'll use it as motivation to upgrade to gtk4. I see no value in supporting gtk3 and gtk2 going forward. Glimmer DSL for GTK will be a new gem that helps spread the new gtk4 only. |
By the way, I do know kou as I made a contribution to ruby-gnome's documentation late last year that got accepted into the 3.5.0 release. In fact, both your name and my name were mentioned in the NEWS file for it:
|
I just installed it (via gem install gtk4) and am testing things. Hello world example works
now for me; did not work for me yesterday. kou added the .so file to the gem.
I am testing the other widgets.
scrolled window I could not get to work but the others seem fine. Migration guide
is a bit long so I have not yet finished.
However had, for glimmer-dsl-gtk I think it would be pretty cool if you could eventually
offer a variant where users could switch between gtk2, gtk3 and gtk4 at their choosing.
But this could come at a later time perhaps.
For ruby-gtk4 I think it would be interesting to see if you can run some of the examples.
If you need more, (I have not written many so far, only two standalone examples), I
tend to look at the python gtk4 variant. The examples often work almost 1:1.
So if you have time before your many talks coming up :D then perhaps you can
run through the examples and see which ones could work, which ones could be
improved e. g. via ruby-gtk4. The simpler examples I think should work fine. So
this could perhaps be done.
This migration guide mentions some changes:
https://docs.gtk.org/gtk4/migrating-3to4.html
Some of them are quite big.
I tested the CSS stuff though, and I have to say that CSS is one thing I like still.
I think it would be great if we could, say, define .css in one application and
re-use it across a whole different ruby-projects, not just www-related but
also GUI related. That should simplify for many users working with any
disparate code base (if someone wants to get glimmer to work in as many
different toolkits as possible. Including SDL one day!)
Anyway that is just a long winded notification which I'll close now.
PS: By the way I am not sure kou is fully aware of glimmer. I think he probably
knows indirectly via kojix2 and libui, since he gave advice to kojix2 on fiddler
stuff in libui. kou is kind of an oldschool legend even if he is not that old; he
maintained ruby-gtk many years ago already, I think, when mutoh or whatever
was his name retired. Would be interesting to see if kou could also have some
GUI-related project eventually. I am seeing kojix2 writes a lot of smaller things
in libui with your help!
The text was updated successfully, but these errors were encountered: