Re: [Vala] How to change the widget color
- From: Erick Pérez Castellanos <erickpc gnome org>
- To: vala-list gnome org
- Subject: Re: [Vala] How to change the widget color
- Date: Wed, 11 Mar 2015 15:08:13 -0400
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]