I am trying to use css in a GTK c project. To load the file, I have
GFile *myCssFile = "mystyle.css";
The warning comes from compiling with Gtk+-3.0. I'm using
pkg-config --cflags gtk+-3.0
In addition I get warning
warning: passing argument 1 of 'g_file_new_for_path' from incompatible pointer type[-Wincompatible-pointer-types]
This warning comes from :
gtk_css_provider_load_from_file(provider, g_file_new_for_path(myCssFile), &error); where provider is defined: GtkCssProvider *provider;
I'm using Geany for my project.
None of my CSS statements have any effect.
Any thoughts? I'm not very fluent with CSS nor with Linux on Raspberry Pi. I feel fairly confident with programming in C though.