CSS # selectors and UI IDs

Chris Larsen <[email protected]> Thu, 7 Apr 2016 20:13:18 -0400
Newsgroups gmane.comp.gnome.language-bindings
Message-ID <CAHdb0OES6HxUpGCPu3Zq9OvwKCeUFp3Z45nYG=1ojN6ysaXRzQ@mail.gmail.com>
--===============2616209326170139951==
Content-Type: multipart/alternative; boundary=001a1134714ce02437052fee0f4d

--001a1134714ce02437052fee0f4d
Content-Type: text/plain; charset=UTF-8

Hello Everyone,

Working on the Ruby bindings for GTK, and a question came up regarding the
relationship between CSS selectors and UI elements. On the Gnome developer
page for GtkCssProvider, it says:

Selectors work very similar to the way they do in CSS, with widget class
names taking the role of element names, and widget names taking the role of
IDs. When used in a selector, widget names must be prefixed with a '#'
character. The '*' character represents the so-called universal selector,
which matches any widget.

I take that to mean that when the GtkBuilder object parses the UI file, the
name property of the created widget object should be identical to the ID in
the UI file. Can someone please confirm if this is the case?

--001a1134714ce02437052fee0f4d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Hello Everyone,<br><br></div>Working on the Ruby=
 bindings for GTK, and a question came up regarding the relationship betwee=
n CSS selectors and UI elements. On the Gnome developer page for GtkCssProv=
ider, it says:<br><br>Selectors work very similar to the way they do in CSS=
, with widget class
names taking the role of element names, and widget names taking the role
of IDs. When used in a selector, widget names must be prefixed with a
&#39;#&#39; character. The &#39;*&#39; character represents the so-called u=
niversal
selector, which matches any widget.
<br><br></div>I take that to mean that when the GtkBuilder object parses th=
e UI file, the name property of the created widget object should be identic=
al to the ID in the UI file. Can someone please confirm if this is the case=
?<br></div>

--001a1134714ce02437052fee0f4d--

--===============2616209326170139951==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
language-bindings mailing list  [email protected]
https://mail.gnome.org/mailman/listinfo/language-bindings

--===============2616209326170139951==--