On Fri, Jan 15, 2010 at 21:11:14 +0800, xiaohu wrote:
> I have below vala code:
>
> public void on_iconview_selection_changed (IconView iconview)
> {
> unowned List list = iconview.get_selected_items ();
^^^
Obviously the list must be owned to have vala free it.
pancake píše v Pá 15. 01. 2010 v 08:42 +0100:
> Is there a way to define them? I need it to solve some warnings for
> the vapis describing some C functions accepting const char* as argument.
>
> As I see in the compiler source is that it is not supported. Only for
> struct or class definitions
Am Freitag, den 15.01.2010, 12:16 +0100 schrieb Jan Hudec:
> Of course. You can't just add 'owned' to a delegate parameter and think
> things will work -- it changes the corresponding C signature by adding
> the destroy notify callback.
>
Hello Jan
I didn't realize the incompatibility in the begi
I have below vala code:
public void on_iconview_selection_changed (IconView iconview)
{
unowned List list = iconview.get_selected_items ();
if (list == null || list.length () == 0)
return;
var model = iconview.get_model ();
TreeIter iter;
if (mode
On Thu, January 14, 2010 01:12, JM wrote:
> Hi Ĺukas
> Thanks for your reply! This somehow does not work as soon as I add
> another thread.
>
> class HHH : Object {
> private ThreadFunc f;
> public void run() {
> string test = "test";
> try {
>
On Thu, January 14, 2010 21:22, JM wrote:
> Hi all
> Looks like closures and threads are incompatible right now.
> This is the ccode generated from vala.
Of course. You can't just add 'owned' to a delegate parameter and think
things will work -- it changes the corresponding C signature by adding