On Sat, 2004-04-10 at 07:28, Russell Shaw wrote:
Hi,
This code won't change the size of a gtk_label text:
PangoAttrList *attr_list;
PangoAttribute *attr;
label=gtk_label_new("title");
attr_list=pango_attr_list_new();
attr=pango_attr_size_new(20000);
pango_attr_list_insert(attr_list,attr);
gtk_label_set_attributes(GTK_LABEL(label),attr_list);
What now?
Use gtk_widget_modify_font, or gtk_label_set_markup() those
are easier. But if you want to using AttrList, you need to
set the range of each attribute you add (you modify the fields
directly.)
Regards,
Owen
Attachment:
signature.asc
Description: This is a digitally signed message part