Re: [Vala] Name clashes in generated C code

2010-12-29 Thread Jan Hudec
On Tue, Dec 28, 2010 at 15:32:07 -0800, Anatol Pomozov wrote: I am sure using [CCode] is ok for libraries as well if cprefix value does not change very often. The reason to try to avoid [CCode] for libraries is that users of the library will expect the code to follow some naming convention,

[Vala] Potential memory leak?

2010-12-29 Thread Alexander Krivács Schrøder
Hi. I have a question. If you look at the documentation for the gtk_source_completion_proposal_get_text () C function: http://library.gnome.org/devel/gtksourceview/2.9/GtkSourceCompletionProposal.html#gtk-source-completion-proposal-get-text It says The returned string must be freed with

Re: [Vala] Potential memory leak?

2010-12-29 Thread Jürg Billeter
On Wed, 2010-12-29 at 20:45 +0100, Abderrahim Kitouni wrote: Hello, في ر، 29-12-2010 عند 18:34 +0100 ، كتب Alexander Krivács Schrøder: Hi. I have a question. If you look at the documentation for the gtk_source_completion_proposal_get_text () C function:

Re: [Vala] string - bytes conversion in Vala

2010-12-29 Thread Anatol Pomozov
Hi On Thu, Dec 23, 2010 at 12:37 AM, Anatol Pomozov anatol.pomo...@gmail.com wrote: Hi, I manipulate with strings in my application such as storing/reading to/from binary files. And I need to convert a string to/from array of bytes. What is the best way of doing it in Vala? Looking into

Re: [Vala] string - bytes conversion in Vala

2010-12-29 Thread Anatol Pomozov
On Wed, Dec 29, 2010 at 3:51 PM, Anatol Pomozov anatol.pomo...@gmail.com wrote: Hi On Thu, Dec 23, 2010 at 12:37 AM, Anatol Pomozov anatol.pomo...@gmail.com wrote: Hi, I manipulate with strings in my application such as storing/reading to/from binary files. And I need to convert a string