You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
screen = Gdk::Screen.default
in gir_ffi-gtk this also works but I have to use this:
screen = Gdk::Screen.get_default
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 only three constants are shown via Array here:
[:GIR_FFI_BUILDER, :GIR_INFO, :G_TYPE]
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.
The text was updated successfully, but these errors were encountered:
Hi @rubyFeedback, due to how these constants are defined in Gtk's introspection data, this constant is called Gtk::STYLE_PROVIDER_PRIORITY_APPLICATION.
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.
The text was updated successfully, but these errors were encountered: