Movie / source list view: use the Pango.AttrFontDesc constructor
authorPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 24 Nov 2009 09:25:54 +0000 (10:25 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 24 Nov 2009 09:52:09 +0000 (10:52 +0100)
pango_attr_font_desc_new is contained in the upstream bindings as
constructor for the Pango.AttrFontDesc class, so use that instead.

src/movie-list-view.vala
src/source-list-view.vala
vapi/pango.vapi

index 4f3eabd..56bcaff 100644 (file)
@@ -78,7 +78,7 @@ public class MovieListView : PannableArea {
                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);
index 6ef3974..d243000 100644 (file)
@@ -63,7 +63,7 @@ public class SourceListView : PannableArea {
                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);
index 4844d91..ede0818 100644 (file)
@@ -863,8 +863,6 @@ namespace Pango {
        [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);