Open rubyFeedback opened 2 years ago
Hi @rubyFeedback, due to how these constants are defined in Gtk's introspection data, this constant is called Gtk::STYLE_PROVIDER_PRIORITY_APPLICATION
.
Such constant names can be found in /usr/share/gir-1.0/Gtk-3.0.gir
.
Hi,
I am experimenting with gir_ffi-gtk right now.
One thing I want to get to work is CSS support. I have a lot of CSS that allows me to tweak a lot, starting this from the www era before I used ruby, and then also for ruby-gtk3 lateron.
I had this code in ruby-gtk3:
in gir_ffi-gtk this also works but I have to use this:
Not a big change/difference so this is fine.
I solved this issue, but now I have another problem.
In ruby-gtk3 I would use this to initialize a new style context:
But the last part, aka:
is not known by gir_ffi-gtk.
It is a constant.
So my next idea was to use pp:
But only three constants are shown via Array here:
No PRIORITY_APPLICATION. Perhaps the name is different or I have to use constants differently - I really don't know right now. Or perhaps there is a bug with gir_ffi-gtk so I report this here just in case. Others may also find this via a google search.