Re: [Vala] How to change the widget color



Hi:

You need to take into account that vala is only a kind-of preprocessor
that converts Vala language into C, so using devhelp and Gtk+ [1]
documentation works perfectly fine.

You need to use GtkCssProvider to do this. gtk_widget_override family
of functions are deprecated.

1. Obtain your widget GtkStyleContext
2. Attach a custom CSS class
3. Load some CSS sinppets with the customization you want using
GtkCssProvider API.

Cheers

[1]: https://developer.gnome.org/gtk3/stable


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]