Hi,
I'm using this function:
newfont = new FontSelectionDialog("Select font:")
var response = newfont.run()
if response is ResponseType.OK
font_desc = new FontDescription()
font_desc.from_string(newfont.get_font_name())
text_view.modify_font(font_desc)
newfont.destroy()
if response is ResponseType.CANCEL
newfont.destroy()
My problem is "font_desc" always return "Normal", what's wrong with my
code ?
Thanks in advance,
Nicolas.
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list