app/widgets/gimpdockable.c moved utility function for setting attributes
2008-03-19 Sven Neumann <sven@gimp.org> * app/widgets/gimpdockable.c * app/widgets/gimpwidgets-utils.[ch]: moved utility function for setting attributes on a PangoLayout out of gimpdockable.c. * app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): use a bold font and paint the layout with transparency. svn path=/trunk/; revision=25116
This commit is contained in:
committed by
Sven Neumann
parent
ebdd875ce7
commit
a355f1777b
@ -1072,3 +1072,21 @@ gimp_get_message_stock_id (GimpMessageSeverity severity)
|
||||
|
||||
g_return_val_if_reached (GIMP_STOCK_WARNING);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_pango_layout_set_weight (PangoLayout *layout,
|
||||
PangoWeight weight)
|
||||
{
|
||||
PangoAttrList *attrs;
|
||||
PangoAttribute *attr;
|
||||
|
||||
attrs = pango_attr_list_new ();
|
||||
|
||||
attr = pango_attr_weight_new (PANGO_WEIGHT_SEMIBOLD);
|
||||
attr->start_index = 0;
|
||||
attr->end_index = -1;
|
||||
pango_attr_list_insert (attrs, attr);
|
||||
|
||||
pango_layout_set_attributes (layout, attrs);
|
||||
pango_attr_list_unref (attrs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user