void set_attributes( PangoAttrList list );

Sets the Pango attributes for the label to those defined by list. The attributes set by list will be ignored if either use_underline or user_markup is true.

Example 82. Setting a List of Pango Attributes for a GtkLabel

// Create a window to hold the label.
$window = new GtkWindow();
// Set up the window to close cleanly.
$window->connect_simple('destroy', array('Gtk', 'main_quit'));

// Create a label
$label = new GtkLabel('Bold Label');

// Create a Pango attribute list.
$list = new PangoAttrList();

// Create a bold Pango weight attribute.
$attr = new PangoAttrInt(Pango::ATTR_WEIGHT, Pango::WEIGHT_BOLD);

// Add the attribute to the list.

// Set the attributes for the label.

// Add the label to the window.

// Show the window and start the main loop.

See also: get_attributes()