Pango.AttrList attr_list = new Pango.AttrList ();
var style = Gtk.rc_get_style_by_paths (this.get_settings (), "SmallSystemFont", null, typeof (void));
if (style != null) {
- Pango.Attribute attr_font_desc = Pango.attr_font_desc_new (style.font_desc.copy ());
+ var attr_font_desc = new Pango.AttrFontDesc (style.font_desc.copy ());
attr_list.insert ((owned) attr_font_desc);
} else {
Pango.Attribute attr_font_scale = Pango.attr_scale_new (Pango.Scale.SMALL);
Pango.AttrList attr_list = new Pango.AttrList ();
var style = Gtk.rc_get_style_by_paths (this.get_settings (), "SmallSystemFont", null, typeof (void));
if (style != null) {
- Pango.Attribute attr_font_desc = Pango.attr_font_desc_new (style.font_desc.copy ());
+ var attr_font_desc = new Pango.AttrFontDesc (style.font_desc.copy ());
attr_list.insert ((owned) attr_font_desc);
} else {
Pango.Attribute attr_font_scale = Pango.attr_scale_new (Pango.Scale.SMALL);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_stretch_new (Pango.Stretch stretch);
[CCode (cheader_filename = "pango/pango.h")]
- public static Pango.Attribute attr_font_desc_new (Pango.FontDescription desc);
- [CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_strikethrough_color_new (uint16 red, uint16 green, uint16 blue);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_strikethrough_new (bool strikethrough);