Re: [Vala] query

2016-09-09 Thread Adam Tauno Williams
On Fri, 2016-09-09 at 22:10 +, Al Thomas wrote:
> As I do to get the permissions on a file?
> > I'm doing a code editor , I wonder if there is a library that 
> > allows to obtain the classes, methods and functions declared in a 
> > file for several different languages.

Have you looked at what Builder does?


> I think you should look at Universal Ctags and parsing the output
> from that:
> https://github.com/universal-ctags/ctags
> 
> For Vala you should look at Anjuta ctags. I'm not sure if Universal
> Ctags has
> modified the tags format slightly:
> https://git.gnome.org/browse/anjuta/tree/plugins/symbol-db/anjuta-tag
> s


-- 
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] query

2016-09-09 Thread Al Thomas
- Original Message -

> From: Flavio Danesse 
> Sent: Friday, 9 September 2016, 22:45
> Subject: [Vala] query

> As I do to get the permissions on a file?

> I'm doing a code editor , I wonder if there is a library that allows to
> obtain the classes, methods and functions declared in a file for several

> different languages.

I think you should look at Universal Ctags and parsing the output from that:
https://github.com/universal-ctags/ctags

For Vala you should look at Anjuta ctags. I'm not sure if Universal Ctags has
modified the tags format slightly:
https://git.gnome.org/browse/anjuta/tree/plugins/symbol-db/anjuta-tags
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Query !!

2015-10-22 Thread Flavio Danesse
Sorry , I solved it by replacing the function:

Gdk.Pixbuf.from_data
Gdk.Pixbuf.with_unowned_data

Thanks and sorry for the trouble .

2015-10-22 19:57 GMT-03:00 Flavio Danesse :

> See if someone can help me with this :
>
> The following example compiles fine , but to run it throws an error :
>
> Rape segment (` core ' generated)
>
> private unowned uint8[] array;
>
> this.pixbuf = new Gdk.Pixbuf.from_file(path);
>
> this.array = this.pixbuf.get_pixels();
>
> Gdk.Pixbuf pix = new Gdk.Pixbuf.from_data(
> this.array, Gdk.Colorspace.RGB, this.pixbuf.has_alpha,
> this.pixbuf.bits_per_sample, this.pixbuf.width,
> this.pixbuf.height, this.pixbuf.rowstride, null);
>
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list