[Vala] Gtk.FontChooser problem



I'm trying to adapt the second Pango/Cairo sample
(http://live.gnome.org/Vala/PangoCairoSample) to my needs. I'm stuck
at setting the font with a FontButton (i.e. getting the
FontDescription from the FontChooser interface), though:

CharacterRenderer.vala:20.32-20.59: error: The name `get_font_desc'
does not exist in the context of `Gtk.FontChooser'
                playout.set_font_description(m_font_chooser.get_font_desc());

I don't understand it. It's all according to what's in the Valadoc:

http://valadoc.org/#!api=gtk+-3.0/Gtk.FontChooser

What am I doing wrong? I'm compiling with --pkg gtk+-3.0 --pkg cairo
--pkg pango --pkg gee-1.0.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]