[Vala] [Genie] Print Function

2009-06-22 Thread Nicolas
Hi All, If you are interested, this is the function for print a TextView with GtkSourceView. context : PrintContext op : PrintOperation thecompositor : SourcePrintCompositor /* * */ /*Print Function*/

Re: [Vala] [Genie] Print Function

2009-06-22 Thread Matías De la Puente
Nicolas: That's great!! thanks i filed a bug with a patch (some days ago) that fix the cheader_filename of SourcePrintCompositor. http://bugzilla.gnome.org/show_bug.cgi?id=585894 Matias ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] [Genie] Print Function

2009-06-22 Thread Nicolas
Thank you Matías, Oop's i forgot, the code: if linenumber is true thecompositor.set_print_line_numbers(1) if highlightsyntax is true thecompositor.set_highlight_syntax(true) else if highlightsyntax is false

Re: [Vala] Switch statement on GType.

2009-06-22 Thread Yu Feng
On Sat, 2009-06-20 at 09:34 -0700, Sam Danielson wrote: Under Vala 0.6 the following worked. switch (tree_store.get_column_type (n)) { case typeof(string): ... break; } In Vala 0.7 it does not -- error: Integer or string expression expected. Should it actually be