CSS example does not compile today #1530
-
Hi, CSS example does not compile today ? https://github.com/gtk-rs/gtk4-rs/blob/master/examples/css/main.rs
I have tried it in the past, it worked. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK, I have found the glitch, I answer to myself ! replace "provider.load_from_string" by "provider.load_from_data" works, but that is because my GTK install is obsolete. load_from_string seems to be a new code in gtk : https://docs.gtk.org/gtk4/method.CssProvider.load_from_string.html in fact, my GTK (on WIN11) is obsolete, I have to update it, Il setup with MSYS, thus I must do : "pacman -Syu" to update GTK to 4.12 so when i put in toml
it works with load_from_string ! |
Beta Was this translation helpful? Give feedback.
OK, I have found the glitch, I answer to myself !
replace "provider.load_from_string" by "provider.load_from_data" works, but that is because my GTK install is obsolete.
load_from_string seems to be a new code in gtk : https://docs.gtk.org/gtk4/method.CssProvider.load_from_string.html
in fact, my GTK (on WIN11) is obsolete, I have to update it, Il setup with MSYS, thus I must do : "pacman -Syu" to update GTK to 4.12
so when i put in toml
it works with load_from_string !