After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766763 - Create GTK theme CSS nodes and classes for GtkLabel markup elements
Create GTK theme CSS nodes and classes for GtkLabel markup elements
Status: RESOLVED DUPLICATE of bug 657194
Product: gtk+
Classification: Platform
Component: Widget: GtkLabel
3.20.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-05-22 07:21 UTC by Michael Gratton
Modified: 2016-05-22 07:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Gratton 2016-05-22 07:21:23 UTC
As of 3.20, GtkLabel create both a "selection" and "link" nodes for theming using CSS, but no others. 

It would be useful if it also created a node for every elements found in the label's markup such as span, so apps to be able to apply GTK CSS widget theme to substrings in the label.

For example, calling:

> gtk_label_set_markup("<span class="warn">danger</span> normal")

Would create a "span" node with the class "danger" under the label's node, which then could then be themed using:

> label > span.warn { color: @warning_color }
Comment 1 Emmanuele Bassi (:ebassi) 2016-05-22 07:46:25 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 657194 ***