Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22
- From: Richard Shann <richard rshann plus com>
- To: Emmanuele Bassi <ebassi gmail com>
- Cc: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22
- Date: Sun, 07 May 2017 19:39:28 +0100
On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote:
On 7 May 2017 at 16:52, Richard Shann <richard rshann plus com> wrote:
I have a test program that pops up a label with a customized
background
and foreground color. This works in 3.12 using the syntax
"GtkLabel {background-color: #FFFF00;}"
and
"GtkLabel {color: #FF00FF;}"
but fails in 3.22
The selector for labels is "label" since GTK+ 3.20.
Thank you very much for this. Is there a function to get the selector
for a widget? Sort of gchar *gtk_widget_get_css_selector (GtkWidget *w)
thing? Looking through a few widgets it seems the rule is chop off the
Gtk prefix and lower case what remains ... is that guaranteed?
Richard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]