[Vala] Accessing properties of a Map.Entry from a read-only Gee map causes compiler warning

2015-11-19 Thread Nicolas Laplante
I have the following map declaration: Map transactions_by_date = new HashMap (); Then I iterate over its entries: foreach (Map.Entry entry in transactions_by_date.entries) { // ... // ... } Within this loop,

[Vala] Implicit array size for function allocating an array

2014-12-16 Thread Nicolas CARRIER
Hello, I'm trying to bind a C function which has the following prototype: int sos_addresses_to_string(const struct sos_address *addresses, char ***string_addresses, int nb); It's job is to convert an array of addresses, into an array of their string representation. So both the

[Vala] name containing a space in array liberation function

2014-12-15 Thread Nicolas CARRIER
Hello, I'm using a binding I made for a library of ours. This library uses a struct for manipulating various kind of addresses, which I have bound like (in the Sos namespace): [CCode (cname = struct sos_address, has_type_id = false, default_value = {.aaddr = { .addr = { .sa_family = 0,

[Vala] unused variable warning in generated C code

2014-12-12 Thread Nicolas CARRIER
Hello, When I compile the following code : public static int main(string[] args) { int[] b = { 2, 4, 6, 8 }; foreach (int a in b) stdout.printf(%d\n, a); return 0; } with : $ valac -C main.vala $ gcc -Wunused-variable main.c -o main $(pkg-config --cflags

Re: [Vala] unused variable warning in generated C code

2014-12-12 Thread Nicolas CARRIER
Date: Fri, 12 Dec 2014 10:54:53 +0100 From: Luca Bruno lethalma...@gmail.com On 12/12/2014 10:46, Nicolas CARRIER wrote: Hello, When I compile the following code : public static int main(string[] args) { int[] b = { 2, 4, 6, 8 }; foreach (int a in b) stdout.printf(%d\n

[Vala] error: Non-constant field initializers, but the initializer seems constant

2014-12-12 Thread Nicolas CARRIER
Hello, I have this kind of pattern in my code: namespace Plop { int my_int = -1; static void check_my_int_is_initialized() { if (my_int 0) my_int = 42; } public static int main(string[] args) {

Re: [Vala] error: Non-constant field initializers, but the initializer seems constant

2014-12-12 Thread Nicolas CARRIER
From: Luca Bruno lethalman88 gmail com To: vala-list gnome org On 12/12/2014 15:31, Nicolas CARRIER wrote: namespace Plop { int my_int = -1; static void check_my_int_is_initialized() { if (my_int 0) my_int = 42; } public static

Re: [Vala] unused variable warning in generated C code

2014-12-12 Thread Nicolas CARRIER
From: Luca Bruno lethalman88 gmail com To: vala-list gnome org On 12/12/2014 14:18, Nicolas CARRIER wrote: The problem is that when I compile vala code with the warning compilations flags our build system enables, I have a lot of warnings. This one is only one amongst others

Re: [Vala] error: Non-constant field initializers, but the initializer seems constant

2014-12-12 Thread Nicolas CARRIER
No need to, fixed in master. Nice catch, thanks. I have backported the patch for our version of vala (0.20.1) and it works like a charm. Thank you. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Generics and Contract Programming

2011-06-24 Thread Nicolas
def set_data(data : G) this.data = data def get_data() : G return this.data init var wrapper = new Wrapper of string wrapper.set_data(test) var data = wrapper.get_data() Regards, Nicolas. ___ vala-list mailing list vala

Re: [Vala] [Genie] OptionContext not setting reference

2011-06-24 Thread Nicolas
Hello again ! The problem in your program is: args = args[1:args.length] The first arg is not taken by the program, so just delete this unecessary line, and it works ! Regards, Nicolas. ___ vala-list mailing list vala-list@gnome.org http

[Vala] [Genie] Anonymous functions

2011-06-24 Thread Nicolas
(a) init f2 (f1, 5) Regards, Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] GLib Command Parsing

2011-06-19 Thread Nicolas
Hi Chris, Try this: [indent=4] version : bool = false const my_options : array of OptionEntry = {{version, 'V', 0, OptionArg.NONE, ref version, Show application's version, null}, {null}} init print Hello See you, Nicolas. ___ vala-list

[Vala] [Geani] Is Dead?

2011-05-24 Thread Nicolas
Hi Cristian, I have made many of the genie sample in valaide code site (nikobordx). Remember that many of the samples are a little bit out of date (but working, example: signal syntax has changed). The gtk samples are for gtk2 and i don't know if it's working for gtk3. See you, Nicolas

Re: [Vala] Setting image on a button?

2011-05-17 Thread Nicolas Joseph
Hello, Le 16/05/11 à 18:33, Damien Radtke a écrit : I'm trying to add an image to a button, but it doesn't display. I'm loading one of the stock images, and can get it to display fine on its own, but it doesn't show after placed on a button with set_image(). I've also looked into the

Re: [Vala] Setting image on a button?

2011-05-17 Thread Nicolas Joseph
Hello, Le 16/05/11 à 18:33, Damien Radtke a écrit : I'm trying to add an image to a button, but it doesn't display. I'm loading one of the stock images, and can get it to display fine on its own, but it doesn't show after placed on a button with set_image(). I've also looked into the

Re: [Vala] Vala to Genie

2011-02-23 Thread Nicolas
Hi, What happens if you simple declare the class like this: class GenieItem : Match And let all properties untouched. Nicolas. No success: genie-test-plugin.gs:41.12-41.20: error: syntax error, expected identifier prop construct title : string ^ Compilation failed

Re: [Vala] Genie async methods

2011-02-21 Thread Nicolas
Hi, I don't test this code but i suppose is: def search (query : Query) : async ResultSet? raises SearchError Is it working ? Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Genie async methods

2011-02-21 Thread Nicolas
Try this: def async search (query : Query) : ResultSet? raises SearchError Don't forget to build with --pkg gio-2.0 Nicolas. Nope, neither when swapped async and ResultSet. Compilation failed: 1 error(s), 1 warning(s) def search (query : Query) : async ResultSet? raises SearchError

Re: [Vala] Vala to Genie

2011-02-21 Thread Nicolas
What happens if you declare the function as static ? def static register_plugin() For the second error, what happens if you declare the class like this: class Connect : Object, Match Nicolas. Yeah! It works. Probably need to move this to Genie wiki. But I fall into another issues so need

Re: [Vala] Ctags support?

2011-02-18 Thread Nicolas Joseph
On Sat, 12 Feb 2011 16:24:48 -0600, Damien Radtke wrote: Does anyone know if there's a ctags build that supports vala? Another copy of the sources proposed by Abderrahim: http://bazaar.launchpad.net/~valide/valide/trunk/files/head:/ctags-vala/ ___

Re: [Vala] [ANNOUNCE] Vala 0.11.3 - Compiler for the GObject type system

2011-01-07 Thread Nicolas Joseph
Hi, On Wed, 05 Jan 2011 23:41:09 +0100, Jürg Billeter wrote: We are pleased to announce version 0.11.3 of Vala, a compiler for the GObject type system. Vala 0.11.3 is now available for download at: http://download.gnome.org/sources/vala/0.11/ This is a development release leading toward

Re: [Vala] Can't compile ValaIde from source...

2010-12-30 Thread Nicolas Joseph
Hi, On Thu, 16 Dec 2010 02:02:31 +0300, Alexey Savartsov asavart...@gmail.com wrote: Hi! I can't compile valaide too. I built glib/gtk+/vala etc. from sources, installed to /usr/local on Mac OS X 10.6.5 All the stuff I have: atk-1.30.0 gettext-0.17 gtk+-2.20.1 libglade-2.6.4

Re: [Vala] [Genie] dict with int keys segfaults

2010-11-29 Thread Nicolas
Hi Stefano, I tested your code with latest vala svn and libgee 0.6, and it works as expected ! Try to update vala. Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Blitzen: A Vala Application Server

2010-11-14 Thread Nicolas Joseph
Hi, Le 14/11/2010 15:30, pancake a écrit : On Sun, 14 Nov 2010 11:22:37 + (UTC) Samuel CUELLA samuel.cue...@supinfo.com wrote: Hi, Where's the source repository? I can't find any svn/git/.. For the moment, the repository is not accessible from the internet. I'll import it into the

[Vala] Problem building vapigen

2010-11-10 Thread Nicolas
/niko/Desktop/Divers/vala/vapigen » Do you have this problem too ? Regards, Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Problem building vapigen

2010-11-10 Thread Nicolas
Hi Evan, Yes i mean git. After deleting everything and refetching vala, it build ! Thank you, Nicolas. On Wed, 2010-11-10 at 18:50 +0100, Nicolas wrote: Hi, I'm trying to build last vala from svn and i connot build vapigen (./configure --enable-vapigen) I'm assuming you meant

[Vala] Problem converting c to vala/genie

2010-11-01 Thread Nicolas
); -- this is the problem The ELM_NEW is declared like this in the header file: #define ELM_NEW(t) calloc(1, sizeof(t)) How can i convert this on genie (or vala), at least it is possible ? Thanks you in advance, Nicolas. ___ vala-list mailing list vala

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Nicolas
); if (!wd) return; // delete hook - on delete of object delete object struct etc. free(wd); } Thanks to everyone in advance, Nicolas. Im not sure what you mean - are you using or porting the code in the c library? If you are using a c library in Genie/vala then you need to create

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Nicolas
Hi and thanks for your response. I'm already using this old vapi and updated it, the vapi i try to create is from the eml_widget.h. With this file, it's possible to create new elementary widget. Nicolas. You can find bindings for Elementary library at http://trac.enlightenment.org/e/browser

Re: [Vala] [ANNOUNCE] Vala 0.10.1 - Compiler for the GObject type system

2010-10-26 Thread Nicolas Joseph
Hello, Le 26/10/2010 20:33, Jürg Billeter a écrit : We are pleased to announce version 0.10.1 of Vala, a compiler for the GObject type system. Vala 0.10.1 is now available for download at: http://download.gnome.org/sources/vala/0.10/ Changes since 0.10.0 * Remove outdated GTK+ 3

Re: [Vala] [ANNOUNCE] Vala 0.10.1 - Compiler for the GObject type system

2010-10-26 Thread Nicolas Joseph
Le 26/10/2010 21:08, Jürg Billeter a écrit : On Tue, 2010-10-26 at 20:50 +0200, Nicolas Joseph wrote: The code doesn't compile: valaccodeconstant.vala:41.11-41.18: error: The expression `string' does not denote an array assert (_name[0] == '\'); Do not use valac 0.11

[Vala] Genie syntax for connect

2010-10-13 Thread Nicolas
slider_value() spin_box.set_value(slider.get_value()) def spinbox_value() slider.set_value(spin_box.get_value()) I also update the [Genie] Synchronizing Widgets in code.valaide.org See you, Nicolas. ___ vala-list mailing list vala-list

Re: [Vala] [Genie] Problem with enums in genie

2010-09-28 Thread Nicolas
init print (%d, EnumTest.value1) Thanks in advance, Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Problem with enums in genie

2010-09-27 Thread Nicolas
' denied Thanks in advance, Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] [Genie] is this a bug ?

2010-09-23 Thread Nicolas
testing = new test() testing.show_all() Gtk.main() Is this a bug ? Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Chain up TextBuffer

2010-09-12 Thread Nicolas
in the textview. Someone can explain me (with code if possible, my english is poor) how to chain up ? Thank in advance, Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Chain up TextBuffer

2010-09-12 Thread Nicolas
Thank you so much Jamie, it works. I do: super.insert_text(iter, text, length) Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] mysql bindings in genie

2010-09-10 Thread Nicolas
Hi Phil, Can you try this: valac --pkg=mysql --Xcc='-lmysqlclient' mysqltest.gs Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Need for an example of creating new item

2010-08-17 Thread Nicolas Rassat
that means? And how should I construct my Handler item? Does anyone has an example/a snippet/a source code/or anything else that could help me (I googled a lot but I can't find anything)? Thanks PS: By the way, thanks to all the dev of vala. -- Nicolas

Re: [Vala] how to declare multi-dimensional arrays in Genie?

2010-07-15 Thread Nicolas
[3, 2] = {{13, 64}, {14, 65}, {15, 66}} Is this correct ? Someone can confirm ? Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Delegate on struct

2010-07-12 Thread Nicolas HENRY
The program works as expected but this is disturbing. 2010/7/12 Jiří Zárevúcky zarevucky.j...@gmail.com: Nicolas HENRY píše v Čt 08. 07. 2010 v 01:14 +0200: Hello, I don't understand why this code produce a warning (vala 0.9.2) : public delegate void myDelegateFunc(); struct MyStruct

[Vala] Delegate on struct

2010-07-07 Thread Nicolas HENRY
Hello, I don't understand why this code produce a warning (vala 0.9.2) : public delegate void myDelegateFunc(); struct MyStruct { public myDelegateFunc my_struct_func; } void main(){ string a = test; var t = MyStruct(); t.my_struct_func = () = {

Re: [Vala] Delegate on struct

2010-07-07 Thread Nicolas HENRY
00:29 +0100, Harry Van Haaren a écrit : Hey Nicolas, Any chance you'd compile with valac --save-temps your files etc here? And then maybe post line 113 from your test.c file so we can see what's really going on there? Cheers, -Harry On Thu, Jul 8, 2010 at 12:14 AM, Nicolas HENRY ice

Re: [Vala] GTK and Property problems

2010-06-27 Thread Nicolas
Hi Andrew, It's a pleasure to help. If you want some genie samples, go to http://code.valaide.org/ and into the search engine type: genie. Nicolas. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] GTK and Property problems

2010-06-26 Thread Nicolas
) this.add(vbox) def on_mainwindow_delete_event() : bool this.hide() return true init Gtk.init (ref args) new wMain() Gtk.main() Sincerly, Nicolas. ___ vala-list mailing list vala-list@gnome.org http

Re: [Vala] New params for [ModuleInit]

2010-06-10 Thread Nicolas Joseph
vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph module.tar.gz Description: GNU Zip compressed data ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Vala team PPA: missing vala 0.8.1

2010-05-16 Thread Nicolas Joseph
Package updated, thank's! 2010/5/13 Matteo gtla...@gmail.com: On Wed, May 12, 2010 at 2:19 AM, Nicolas Joseph gege2...@redaction-developpez.com wrote: Hi, Someone can create the package for the latest version of vala, please? -- Nicolas Joseph vala 0.8.1 in the Ubuntu PPA would be much

[Vala] Val(a)IDE 0.7.0 - IDE for Vala

2010-05-12 Thread Nicolas Joseph
Hello, I am pleased to announce version 0.7.0 of Val(a)IDE. The sources and the binary packages (archlinux, debian, fedora, ubuntu and MS Windows) are available for download at:

Re: [Vala] Val(a)IDE 0.7.0 - IDE for Vala

2010-05-12 Thread Nicolas Joseph
version valac = 0.1.6 : not found error: valac version too old to be used with this tool [panc...@bitbox valide]$ valac No source file specified. [panc...@bitbox valide]$ valac --version Vala 0.8.0.124-67e2f On 05/12/10 09:00, Nicolas Joseph wrote: Hello, I am pleased to announce

[Vala] Vala team PPA: missing vala 0.8.1

2010-05-11 Thread Nicolas Joseph
Hi, Someone can create the package for the latest version of vala, please? -- Nicolas Joseph ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] requires and ensures on setters and getters

2010-05-05 Thread Nicolas HENRY
{get; private set;} } Is there an other solution using requires ? Thanks. Nicolas HENRY ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [vapigen] How to replace the abstract by virtual

2010-04-30 Thread Nicolas Joseph
Thank's, few lines below I found the solution: gtk_source_completion_provider_activate_proposal virtual=0 Work's fine (remove the abstract attribut). 2010/4/30 Abderrahim Kitouni a.kito...@gmail.com Hello, 2010/4/27, Nicolas Joseph gege2...@redaction-developpez.com: Hello, I try

[Vala] [vapigen] How to replace the abstract by virtual

2010-04-27 Thread Nicolas Joseph
Hello, I try to replace an abstract method by a virtual method with this metadata: gtk_source_completion_provider_activate_proposal abstract=0 virtual=1 But this has no effect. -- Nicolas Joseph ___ vala-list mailing list vala-list@gnome.org http

[Vala] GtkSourceCompletion segfault

2010-04-26 Thread Nicolas Joseph
: Invalid UTF-8 encoded text in name - not valid '\xe0F\xd3\u0001' Have you an idea? -- Nicolas Joseph class TestProvider : Gtk.SourceCompletionProvider, Object { Gdk.Pixbuf icon; public string name; public int priority; ListGtk.SourceCompletionItem proposals; construct { Gdk.Pixbuf

Re: [Vala] GtkSourceCompletion segfault

2010-04-26 Thread Nicolas Joseph
-- where does it come from? It's in the gtksourceview-2.0 binding: http://git.gnome.org/browse/vala/tree/vapi/gtksourceview-2.0.vapi#n415 I found some other errors, I'll propose a patch for fixed them. Thank you very much! -- Nicolas Joseph ___ vala

Re: [Vala] French tutorial

2010-04-24 Thread Nicolas Joseph
tutorial for Vala langage and other stuff. Is there people interesting in a collaborative work ? Cyrille. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph

[Vala] Maintainer for the gtksourceview-2.0 binding

2010-04-06 Thread Nicolas Joseph
Hello, There is no maintainer for the gtksourceview-2.0 binding on this page: http://live.gnome.org/Vala/BindingsStatus Someone cares? The new release (2.10) included a great new feature for my project, I can handle myself. -- Nicolas Joseph ___ Vala

Re: [Vala] A problem in writing some ValaIde plugin..

2010-03-31 Thread Nicolas Joseph
://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph terminal.tar.gz Description: GNU Zip compressed data ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Vala 0.7.10.262 pre-release

2010-03-31 Thread Nicolas Joseph
mobiililaajakaista sekä Nokia N97 yhdellä kk-maksulla vain 59,95 e/kk (24 kk sopimus). Katso http://saunalahti.fi/totaalimax ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph

Re: [Vala] A problem in writing some ValaIde plugin..

2010-03-30 Thread Nicolas Joseph
2010/3/30 Arkadi Viner arkash...@gmail.com (by the way the compiler doesn't recognize throws PluginError so I removed it for now... ) Which way? Simply copy the terminal directory in the plugins directory and execute: $ ./waf configure $ ./waf # ./waf install -- Nicolas Joseph

Re: [Vala] Can't compile ValaIde from source...

2010-03-13 Thread Nicolas Joseph
http://mail.gnome.org/mailman/listinfo/vala-list ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph Responsable de la rubrique GTK+ de developpez.com / In charge of the GTK+ section

[Vala] Fwd: Can't compile ValaIde from source...

2010-03-13 Thread Nicolas Joseph
. --                                                 Jan 'Bulb' Hudec b...@ucw.cz ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph -- Nicolas Joseph ___ Vala-list mailing

Re: [Vala] Can't compile ValaIde from source...

2010-03-13 Thread Nicolas Joseph
/valide/_build_' Build failed  - task failed (err #1):    {task: po it.po - it.mo} Help Syntax error fixed, update sources. -- Nicolas Joseph ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] bug in array construction?

2010-01-14 Thread Nicolas
Hi Denis, use this: row : array of string Regards, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Vapi generation problem

2009-12-18 Thread Nicolas
; But i need this: my_instance *test_instance; There is a way to say to vala to generate the second one ? Thanks in advance, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Vapi generation problem

2009-12-17 Thread Nicolas
; But i need this: my_instance *test_instance; There is a way to say to vala to generate the second one ? Thanks in advance, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Simple question about gchar

2009-12-15 Thread Nicolas
Hello, If someone can explain me if it's possible to create this on vala: gchar *options[] = {somethings, NULL}; it could be great, Thanks in advance, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: [Vala] Simple question about gchar

2009-12-15 Thread Nicolas
Than you Julian, In fact i already do this, but gcc say: warning: passing argument 1 from incompatible pointer type. so i had a doubt if i'm not mistaken even if my program work. Regards, Nicolas. string?[] options = {somethings, null

[Vala] [Genie] Bug in Genie ?

2009-12-13 Thread Nicolas
) print hello init var bugtest = new TestGenieBug() Regards, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Libgee problem

2009-12-09 Thread Nicolas
Hello, I need to use libgee with double. The problem is, : var map = new HashMap double, double (); Return this error: error: `double' is not a supported generic type argument, use `?' to box value types Why libgee does not support double with hashmap? Best regards, Nicolas

Re: [Vala] Libgee problem

2009-12-09 Thread Nicolas
Hi Abderrahim, Yes i tried with a ?, it build but i got a segmentation fault ! I'll try to find another solution. Thanks, Nicolas. Because vala doesn't support double in generics (the error you got). Not sure if it would help, but did you try its suggestion to use 'double?' instead

Re: [Vala] Libgee problem

2009-12-09 Thread Nicolas
? (); map.set (0.0, 0.0); map.set (1.0, 1.0); map.set (2.0, 2.0); map.set (9.0, 6.0); map.set (3.0, 3.0); map[4.0] = 4.0; map[5.0] = 5.0; foreach (double key in map.keys) { stdout.printf (map[key].to_string()); } return 0; } Nicolas. Could you post the code

Re: [Vala] Libgee problem

2009-12-09 Thread Nicolas
Alessandro, I'm developping a chart library, i really need double for value. But i found the solution, i'm using a simple array of double. Jiří, Thank you, i'm learning programming, so sorry for the crap ! ;-) Nicolas. ___ Vala-list mailing list

Re: [Vala] Libgee problem

2009-12-09 Thread Nicolas
solution, Nicolas. In case you are just learning programming (generally speaking), you should probably consider starting with some more mature language. There is still a lot of rough edges you can run into with Vala. :) ___ Vala-list mailing list Vala

[Vala] bug in new signal connect syntax

2009-12-07 Thread Nicolas
Hi Jörn, Why not using this function: private void on_row_activated(TreeView sender, TreePath treepath, TreeViewColumn column) Regards, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Vala Code Samples

2009-11-26 Thread Nicolas Joseph
samples. I think we can make testing and developing mechanism much better and easier to the current developers and newbie developers Have you visited http://code.valaide.org/ ? -- Nicolas Joseph http://www.valaide.org ___ Vala-list mailing list Vala

[Vala] [Genie] Clutter sample problem

2009-11-12 Thread Nicolas
what i have this problem ? Thanks, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Clutter sample problem

2009-11-12 Thread Nicolas
, Random.next_double () * stage.height / 2 + stage.height / 2, rotation-angle-z, rectangles[j].rotation_angle_z, opacity, 0.0) animations[j].timeline.start () j++ init Clutter.init (ref args) var demo = new ClutterDemo () demo.start () Clutter.main () Nicolas

Re: [Vala] Question about signal connection

2009-11-07 Thread Nicolas
Hi Joan, Try this: Signal.connect(monitor, changed, (GLib.Callback)handler2, monitor); Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Using MarkupParser

2009-10-27 Thread Nicolas
) reader.run() See you, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Using MarkupParser

2009-10-27 Thread Nicolas
function. Nicolas. Thanks Nicholas - actually I am Caleb72. That small piece of code was the result of about a day's work trying to understand that library - looking both at the Vala documentation and the original C library reference material. Then it was down to trial and error. By the way

[Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Nicolas
Hi, I need to convert string to array of uchar in genie. I know under vala it's (uchar[]) testing where testing is the string, so how can i do this under genie ? Thanks in advance for your response, Nicolas. ___ Vala-list mailing list Vala-list

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Nicolas
Thanks, but already tested and this: data_string : string testing : array of uchar testing = (array of uchar) data_string Return: error: syntax error, expected identifier testing = (array of uchar) data_string ^ Another idea ? Nicolas. try (array of uchar) testing

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Nicolas
Thanks Jürg, but if i've got my string as char[], i need to convert it to uchar[], so same problem no ? Nicolas. There is a string.to_utf8 method that returns a copy of the string as char[]. Jürg ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Nicolas
Thank you Jamie for your response. I really need to use this , so i hope you find a solution quickly so that I can continue developing my program. If I can help, please don't hesitate to ask, Thank you again, Nicolas. looks like a bug - I will try and get a fix soon jamie

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Nicolas
Thank you so much Jamie, that build ! Nicolas. I have just committed fix in master - if it does not work pls let me know jamie ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Problem with Gee

2009-10-05 Thread Nicolas
found is using this (in genie): list.add(value) dict.set(value, something) for o in list type = dict[o] print key is + o print value is + type Nicolas. Hi Nicolas, HashMap do not maintain order for its keys. In contradiction to that, TreeMap is a map that naturally maintains

[Vala] Problem with Gee

2009-10-04 Thread Nicolas
as map.set (four, 4) map[five] = 5; foreach (string key in map.keys) { stdout.printf (%d\n, map[key]); // same as map.get (key) } return 0; } My question is, why when i execute this, the result is: 4 3 1 2 5 And not: 1 2 3 4 5 Thanks in advance for your response. Nicolas

Re: [Vala] Problem with Gee

2009-10-04 Thread Nicolas
and it should be obvious why. Thanks everyone for your response, i'm using a list and get the value in order in the dict ! Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Forum for Vala/Genie

2009-10-01 Thread Nicolas Joseph
server[1]. [1] It's a personnal server, it already host the valaide.org domain. If you have a better domain name, we can point a forum subdomain on my server, by default I donate http://forum.valaide.org for the community: free and without ads! -- Nicolas Joseph

[Vala] [PATCH] Vala binding for Graphviz library

2009-09-29 Thread Nicolas
Hi Martin, I found on the 'valadoc' project the vapi for the graphviz library. Download the project here: git clone git://git.gnome.org/valadoc See you, Nicolas. Here is a Vala binding for the graphviz library. Hopefully it can be included in Vala GIT so that others can benefit from

[Vala] Problem with switch statment

2009-09-27 Thread Nicolas
-146.13: warning: unreachable code detected And my real function (not blah blah blah) does not work, what's wrong ? Does genie support the switch like vala ? Thanks in advance, Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org

Re: [Vala] Problem with switch statment

2009-09-27 Thread Nicolas
? Thanks in advance for your response, Nicolas. it works the same as vala except you dont need a break statement EG in vala : switch (eb.button) { case 1: do_something (); break; case 2: do_something

Re: [Vala] ListStore and SQLite

2009-09-26 Thread Nicolas
You mean, like libgda[1]? I don't think there are vala bindings for it already, but it shouldn't be too difficult to do since it's a gobject based library. Hi, For libgda, take a look at: https://bugzilla.gnome.org/show_bug.cgi?id=570372 Nicolas

[Vala] ListStore and SQLite

2009-09-21 Thread Nicolas
Hi, I made a simple program to fill a liststore with a sqlite db (name, age, sex). But, i have a problem, someone knows how to save in the db when user change a cell ? Thanks in adavance, Nicolas. This is my code: using Gtk; using Sqlite; public TreeView treeview; public ListStore

Re: [Vala] libgee on Windows

2009-09-11 Thread Nicolas Joseph
=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1 ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Nicolas Joseph ___ Vala-list mailing list Vala-list

[Vala] [Genie] Code Generator !

2009-09-04 Thread Nicolas
://www.murga-linux.com/puppy/viewtopic.php?mode=attachid=21537 Nicolas. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Need help with string

2009-09-03 Thread Nicolas
([INFO].length); stdout.printf(%s, needed_text); } } and it works perfectly. Thank you so much ! Nicolas. Hi, 2009/9/3 Nicolas c.r@wanadoo.fr: That's the problem, I have a text file, but at a certain place there is, for example, the code [INFO] and I need to read everything that comes

[Vala] Need help with string

2009-09-02 Thread Nicolas
Hi, I try to make a little program who read in a file and take only some informations (like an .ini file). My text file is like this: [INFO] blah blah blah blah blah blah Could someone tell me how to create this kind of function ? Thank you so much in advance, Nicolas

  1   2   >