[API] gtk_label_set_pattern does not work, the label cannot be set pattern

Bug #146113 reported by yanglei
4
Affects Status Importance Assigned to Milestone
Moblin UI Framework
Confirmed
Medium
Bob Spencer

Bug Description

Bug detailed description:
--------------------------
GtkWidget * label=gtk_label_new("test);
gtk_label_set_pattern(GTK_LABEL(label), "____");

This should display a label with underlin text "test", but cannot see the underline in MID stack.

Reproduce steps:
----------------
write app to show label

Current result:
----------------
label text has no underline

Expected result:
----------------
show label with underline text

Basic root-causing log:
----------------------

Tags: hw-all
Revision history for this message
Horace (horace-li) wrote :

This is a GTK bug, that gtklabel didn't set pango attributes when calling gtk_label_set_pattern, only effective_attrs is set. To provide a workaround on adding underline to specified text string, please call gtk_label_set_attributes with customized PangoAttributes.

I would suggest this bug priority as low since we have an alternative way to add underline.

Changed in moblin-ui-framework:
status: Triaged → Confirmed
yanglei (lei-a-yang)
Changed in moblin-ui-framework:
milestone: none → m9
Margie (margie-foster)
Changed in moblin-ui-framework:
milestone: m9 → fix-later
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.