Re: [Vala] Array.length

2010-12-07 Thread Arley Consuegra Rosello
6, 2010 at 4:20 PM, Arley Consuegra Rosello aconsue...@uci.cu wrote: I'm have de following code. public class HelloVala: GLib.Object { public static int main (string[] args) { string cadena = uno,dos,tres,cuatro; stdout.printf(Cantidad de elementos %i\n,cadena.split(,).length); return

Re: [Vala] GIO get_contens

2010-12-02 Thread Arley Consuegra Rosello
-0500, Arley Consuegra Rosello wrote: Hello, I was looking the basic gio sample there a file is read line by line. Exist some way to read the without using a while loop? php have a funtion get_contens that is what I need. In gio reference manual I found g_data_input_stream_read_upto_finish

Re: [Vala] Adding my custom object to libGee.List...

2010-06-20 Thread Arley Consuegra Rosello
Sorry I donĀ“t have been see the answer that was posted before - Mensaje original - De: Arley Consuegra Rosello aconsue...@uci.cu Para: Arkadi Viner arkash...@gmail.com CC: vala-list@gnome.org Enviados: Domingo, 20 de Junio 2010 22:13:45 (GMT-0500) Auto-Detected Asunto: Re: [Vala] Adding

[Vala] signal activate

2010-03-04 Thread Arley Consuegra Rosello
Hello, the signal 'activate' from MenuItem don't expect any argument, this say http://valadoc.org/gtk+-2.0/Gtk.MenuItem.activate.html but in the doc of Gtk apear GtkMenuItem *menuitem, gpointer user_data like argument. Some times when I use these signal without parameter work fine, example

[Vala] ComboBoxEntry+GtkBuilder

2010-03-03 Thread Arley Consuegra Rosello
Hello, I'm trying to get the text in a ComboBoxEntry created with glade (GtkBuilder format) In the glade file I add a ListStore (with a gchararray column) to the ComboBoxEntry . *Code* var url_repo = builder.get_object (url_repo) as

Re: [Vala] ComboBoxEntry+GtkBuilder (Solved)

2010-03-03 Thread Arley Consuegra Rosello
Sorry I'm stupid. Secondly, are you sure some text is selected when you code runs? If nothing is selected, nothing will be returned. Thank to the advice I solved my problem. I was running url_repo.get_active_text(); before write any data in the ComboBoxEntry.

[Vala] signal row-activated

2010-02-23 Thread Arley Consuegra Rosello
Hello, I'm testing the GtkTreeView but the signal row-activated don't want work, the program says segmentation fails below the code of the fuction that must be called by the signal row-activated _datosRepo is a TreeStore . . . [CCode (instance_pos = -1)] protected void

Re: [Vala] signal row-activated

2010-02-23 Thread Arley Consuegra Rosello
Thanks, problem solved. Is posible that in the future the compiler can detect if the signal is connected by Gtk.Builder and the the first parameter (signal source) to be omitted? pd : Sorry my English is very bad. ___ Vala-list mailing list

[Vala] Take data from a TreeStore

2010-02-23 Thread Arley Consuegra Rosello
Hello again. I'm testing the GtkTreeView with GtkTreeStore but don't find in the doc how to get value of an selected row. With Gtkmm I found an example in http://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/treeview/tree/examplewindow.cc . . . void

[Vala] How to bind a C library(libsvn)

2009-11-26 Thread Arley Consuegra Rosello
Someone can explain me how to bind a C library that is not based in gobject. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] ssh and system programs

2009-05-12 Thread Arley Consuegra Rosello
Hello I'm beging with Vala and want to know how to run aplications of the system with Vala. Example: In c++ I could use system (some thing ) or exec , etc. I want too, read a file using ssh. Tthere are some library to do that? pd:I don't write very well in English sorry.