[Vala] [Genie] Help me please !
- From: Nicolas <c r n a wanadoo fr>
- To: vala-list gnome org
- Subject: [Vala] [Genie] Help me please !
- Date: Mon, 15 Jun 2009 18:22:42 +0200
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]