Re: [Vala] General Information about this list & Vala

2019-12-16 Thread rastersoft
Hi! Welcome! El 16/12/19 a las 19:01, giacomo alberini via vala-list escribió: Hi all, dear Vala coders! First of all, I'd like to introduce myself, my name's Giacomo, I'm from Italy and I'm a passionate developer with a strong focus on open source and Linux. I started to code in Vala

Re: [Vala] valaDevelop

2019-05-10 Thread rastersoft
I'm afraid that I have to disagree with you: you didn't provide any kind of source code. Yes, you published the generated .c files, but those aren't the source code, I can't use that to fix a bug or add new features (well, I can try, but doing that would be nearly as hard as fixing a binary

Re: [Vala] Interpreting exit status

2019-05-05 Thread rastersoft
I presume that I have to use GLib.Subprocess instead of GLib.Process... Ok. Thanks! El 5/5/19 a las 20:08, Al Thomas via vala-list escribió: > On Sunday, 5 May 2019, 15:36:38 BST, rastersoft wrote: > I have a little problem: I'm launching a process using GLib.Process.spawn

[Vala] Interpreting exit status

2019-05-05 Thread rastersoft
Hi all: I have a little problem: I'm launching a process using GLib.Process.spawn_async, and use g_child_add_watch() to receive the exit status value. The problem is that I need to interpret the value sent by the application, not only "error/no error". I found that the value is stored in the

Re: [Vala] Launched version 1.14 of Autovala

2019-04-08 Thread rastersoft
I mean: you probably have valac-0.46, but there isn't a soft link to it called "valac". El 8/4/19 a las 10:46, rastersoft escribió: Mmm... that's odd... what do you receive when you launch "valac --version"? I suspect you don't have a link to the binary... El 8/4/19

Re: [Vala] Launched version 1.14 of Autovala

2019-04-08 Thread rastersoft
Mmm... that's odd... what do you receive when you launch "valac --version"? I suspect you don't have a link to the binary... El 8/4/19 a las 9:06, Wolfgang Mauer escribió: Ok, found... > Native Vala compiler: valac (valac unknown version) I'm using libvala-0.46 ;-) Am 08.04.19 um 09:02

Re: [Vala] Launched version 1.14 of Autovala

2019-04-07 Thread rastersoft
Mmmm... yes, in theory it could be used, yes. El 7/4/19 a las 19:20, Wolfgang Mauer escribió: So Autovala could be used by valaDevelop to create all necessary files for an "external build"? Am 07.04.19 um 18:14 schrieb rastersoft: Hi all: I just launched version 1.14.0 o

[Vala] Launched version 1.14 of Autovala

2019-04-07 Thread rastersoft
Hi all: I just launched version 1.14.0 of Autovala, the project manager for Vala that simplifies and automates the creation of the CMake and Meson files for a Vala (and/or C) project. This version fixes several bugs with Meson when the installation path is not the standard one, and also

Re: [Vala] valaDevelop

2019-03-23 Thread rastersoft
Yes, it allows static linking as long as you provide, at least, the object files to allow the user to link the program with newer versions of the library. El 23/3/19 a las 0:38, Nor Jaidi Tuah escribió: Remember that libvala is distributed under LGPL license, so although you can link it

Re: [Vala] valaDevelop

2019-03-22 Thread rastersoft
Hi Wolfgang: Remember that libvala is distributed under LGPL license, so although you can link it dinamically without problems with any code, free or privative, if you do it statically you must allow the users to recompile it against any version, which means to distribute the source code or,

Re: [Vala] introduce valaDevelop

2019-02-22 Thread rastersoft
Hi: Looks nice. Is it expandible using modules? I was thinking about integrating Autovala... Also, where is the source code? El 22/2/19 a las 16:16, Wolfgang Mauer escribió: Hi all i would like to proudly introduce my new IDE "valaDevelop"(developed for beginners, but also for advanced)

[Vala] New version of Autovala

2019-02-10 Thread rastersoft
it was needed). As usual, you can download it from my home page http://www.rastersoft.com/programas/autovala.html , where you can find packages for Debian, Ubuntu, Fedora and Arch. Also you have the Git repository at https://gitlab.com/rastersoft/autovala Of course, remember that if you have

[Vala] Meson sets odd destination folder for Vala

2019-02-10 Thread rastersoft
Hi all: I'm using meson to compile my vala projects, and now I want to create a library, but I'm unable to install the .gir file. It creates it inside "meson/src/25a6634@@TestLibrary@sha", but when it wants to install them, it presumes it is created at "meson/src". -- Nos leemos

[Vala] Can't compile GIR file generated by Vala

2019-02-09 Thread rastersoft
Hi all: I created a simple library with this code: usingGLib; // using GIO; usingPosix; namespaceFreedesktopPortals{ publicGLib.UnixFDListcreateUnixFDList(GLib.Filefile, boolwritable) { varfdList =newGLib.UnixFDList(); varfileFd =Posix.open(file.get_path(), writable

[Vala] Parameter variables in async functions aren't preserved

2019-02-07 Thread rastersoft
Hi all: I did an async function and after a yield I tried to use one of the parameter variables, but they contain garbage after that call (at least in the case of an string array). An example: async void a_test(string[] a_list) {     // here a_list contains the right data     yield

[Vala] GDBus doubt

2018-10-20 Thread rastersoft
Hi all: (I rewrote the message to try to preserve the code format) I want to use the freedesktop portal DBus interface (https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.OpenURI.xml) to open a file with another application. I created this test code:

[Vala] GDBus doubt

2018-10-20 Thread rastersoft
Hi all: I want to use the freedesktop portal (https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.OpenURI.xml) to open a file with another application. I created this test code: usingGLib; // using GIO; usingPosix; intmain(string[] args) { varloop

Re: [Vala] Newbie need help

2018-10-01 Thread rastersoft
Hi: Check out my project "autovala", that greatly simplifies creating the CMake and Meson files for a project. http://www.rastersoft.com/programas/autovala.html With it, you can use any text editor while keeping the advantages of an IDE for the build part. El 30/9/18 a las 21:57, Wolfgang

[Vala] string format with numbered parameters

2018-05-20 Thread rastersoft
Hi all: I want to know if it is possible to use "numbered parameters" to format an string. I mean: let's say I have this translatable string: var str = _("The disk %s, with size %s, is ready").printf(disk_uid, disk_size); But imagine that in language XXX it is more correct to put first the

Re: [Vala] Stacked arrays in Vala

2018-05-07 Thread rastersoft
El 07/05/18 a las 08:43, Abderrahim Kitouni escribió: Hi, Le dim. 6 mai 2018 à 19:33, rastersoft <ras...@rastersoft.com <mailto:ras...@rastersoft.com>> a écrit : An extra tip about the problem: I tried to use uint8[,] Property; and it seems to work as long as

Re: [Vala] Stacked arrays in Vala

2018-05-06 Thread rastersoft
ntPoints { owned get; }     public abstract async void Mount(GLib.HashTable<string, Variant>options, outstringmount_path) throwsGLib.IOError, GLib.DBusError;     public abstract async void Unmount(GLib.HashTable<string, Variant>options) throwsGLib.IOError, GLib.DBusError; } El 06/05/18 a la

Re: [Vala] Stacked arrays in Vala

2018-05-06 Thread rastersoft
usError; } El 06/05/18 a las 23:31, Jiří Janoušek escribió: I've never tried that, but how about `[DBus (signature="aay")] Variant foo`? https://wiki.gnome.org/Projects/Vala/Manual/Attributes#DBus_Attribute Best regards, Jiri Janousek On Sun, 6 May 2018 at 20:33, rastersoft <ras...@

Re: [Vala] Stacked arrays in Vala

2018-05-06 Thread rastersoft
An extra tip about the problem: I tried to use     uint8[,] Property; and it seems to work as long as the outmost array has zero or one entries; if there are two or more entries, it gives trash. El 06/05/18 a las 17:50, rastersoft escribió: Hi all: I'm trying to use a DBus interface

[Vala] Stacked arrays in Vala

2018-05-06 Thread rastersoft
Hi all: I'm trying to use a DBus interface that returns an array of arrays of uint8 ("aay" in dbus syntax). The problem is that I don't know how to create the interface in Vala, because if I try to use:     uint8[][] Property; it says "error: Stacked arrays are not supported" Can someone

Re: [Vala] avoid "method never used" warning for methods linked to Glade files in private class

2018-05-01 Thread rastersoft
Hi: Yes, still have they. El 02/05/18 a las 00:08, Al Thomas escribió: > On Tuesday, 1 May 2018, 17:49:09 BST, rastersoft <ras...@rastersoft.com> wrote: > When the class is public everything is fine, but when I declare it as > private (which I need for several reasons) I re

Re: [Vala] avoid "method never used" warning for methods linked to Glade files in private class

2018-05-01 Thread rastersoft
Hi: No, no... the methods are public; the class is what is private. And I'm using "connect_signals", so the source doesn't seem to use the method, but it is used. El 01/05/18 a las 19:47, Andres Fernandez escribió: El mar., 1 may. 2018 13:49, rastersoft <ras...@r

[Vala] avoid "method never used" warning for methods linked to Glade files in private class

2018-05-01 Thread rastersoft
Hi all: I need to create a class with several methods that are used as callbacks for buttons and other widgets, but they are defined in a Glade file. When the class is public everything is fine, but when I declare it as private (which I need for several reasons) I receive a "method ''

[Vala] GTK_CHECK_VERSION in Vala

2018-04-25 Thread rastersoft
Hello: I want to do this conditional compilation in my code: #ifGTK_CHECK_VERSION(3, 22, 0) this.menu.popup_at_pointer(event); #else this.menu.popup(null, null, null, 2, Gtk.get_current_event_time()); #endif Unfortunately, GTK_CHECK_VERSION doesn't work in Vala. Is there an alternative to do

Re: [Vala] Date format

2018-03-28 Thread rastersoft
Hi: > Also, what > I really want is the date in the format "March 5, 2018", not "03/05/18", > but it seems that only %c does that, but adds a lot of extra data that I > don't want like the time zone. As Christian Hergert suggests, DateTime is very useful. This works for me: void main () {  

Re: [Vala] Date format

2018-03-28 Thread rastersoft
Hi: Is it possible to print from a GLib.Date only the date, without the day of week, neither the time, nor timezone? Nearly a decade ago, I created GDateTime for GLib to give people a modern API for dealing with these types of problems. In fact I'm already using GDateTime, sorry. But I still

Re: [Vala] Date format

2018-03-28 Thread rastersoft
El 28/03/18 a las 02:46, Nor Jaidi Tuah escribió: Is it possible to print from a GLib.Date only the date, without the day of week, neither the time, nor timezone? https://valadoc.org/glib-2.0/GLib.Date.strftime.html Pass "%x" for the format string. I used that, but the year is printed with

[Vala] Date format

2018-03-27 Thread rastersoft
Hi all: I'm writting a program that shows dates in the screen. The problem I have is that I want to show them in the local format, but there is only one way: with full day of week, time and timezone. Is it possible to print from a GLib.Date only the date, without the day of week, neither

Re: [Vala] Doubt with "hasemitter"

2018-03-10 Thread rastersoft
Just an extra note: it seems that if I don't use "connect_signals" from the builder object, but connect it directly with .clicked.connect(function_name) works fine... El 11/03/18 a las 01:28, rastersoft escribió: Hello: I had some odd problems with a button callback: when it

[Vala] Doubt with "hasemitter"

2018-03-10 Thread rastersoft
Hello: I had some odd problems with a button callback: when it is clicked and try to operate with "this", I receive a core dump. I discovered something odd: the documentation in Valadoc shows the button callback as     [ HasEmitter ]     public virtual signal void *clicked* () I created

[Vala] Another new version of autovala

2018-03-01 Thread rastersoft
much, much more. You can download it from my home page, at http://www.rastersoft.com , or check it from github at https://github.com/rastersoft/autovala . You have plenty documentation both in the wiki at github and in several manpages for autoval

[Vala] New version of Autovala

2018-03-01 Thread rastersoft
les needed in the project to a versioning system (like git, svn...), helps in the creation of packages for debian/ubuntu, fedora and derivatives, and Arch, and much, much more. You can download it from my home page, at http://www.rastersoft.com , or check it from github at https://github.com/rastersof

Re: [Vala] How to check if string is empty

2017-01-17 Thread rastersoft
Hi: El 17/01/17 a las 10:24, Ulink escribió: > But I think str.length==0 and str=="" are no high performance solutions, > especially for big/long strings. That's true for the first one, but the second is as fast as str[0] == 0, because as soon as one byte doesn't fit, the function ends. -- Nos

Re: [Vala] How to check if string is empty

2017-01-16 Thread rastersoft
Hi: > ``` > static bool is_empty(string str) { > return str[0] == '\0' || str == null; > } > ``` > > However, running my code, I get the following message repeatedly in my > terminal: ** (main.exe:2288): CRITICAL **: is_empty: assertion 'str != > NULL' failed > > What am I doing wrong? You

[Vala] Meson support in Autovala

2017-01-16 Thread rastersoft
Hi all: Just a note to comment that there is a branch in Autovala with support for Meson. I will wait for, at least, one positive comment in github before merging it in master, just in case. If you want to try it, just download the "meson" branch from https://github.com/rastersoft/aut

Re: [Vala] Genie Wiki and logo

2017-01-02 Thread rastersoft
Just a note to comment that the current stable version of Autovala now supports Genie code too. El 24/12/16 a las 17:30, webie...@gmail.com escribió: > Hello, I present my wiki about Genie in Spanish: Genie Doc at > http://genie.webierta.skn1.com > > In addition, I propose a logo for Genie,

Re: [Vala] xgettext and genie

2016-12-16 Thread rastersoft
you know a way of specifying to use Vala syntax for .gs files? Or to use Vala syntax when it doesn't recognize an extension type? Thanks. El 16/12/16 a las 21:54, Al Thomas escribió: >> - Original Message - >> From: rastersoft <ras...@rastersoft.com> >> Sent: Frid

[Vala] xgettext and genie

2016-12-16 Thread rastersoft
Hi all: An user asked about using autovala with genie, so I'm working on adding support for it. My question is: how can I extract the translatable strings with xgettext from a genie source file? xgettext has support for vala, but the manpage says nothing about genie, and when trying, it tries

Re: [Vala] debugging symbols when compiling in two stages

2016-09-21 Thread rastersoft
Fixed. It was a mistake of the user. There are no bugs in vala regarding this. El 20/09/16 a las 09:38, rastersoft escribió: > Hi all: > > I'm using CMAKE to build my vala binaries, and found something odd: if I > compile a binary directly with "valac -g ...", it contains

[Vala] debugging symbols when compiling in two stages

2016-09-20 Thread rastersoft
Hi all: I'm using CMAKE to build my vala binaries, and found something odd: if I compile a binary directly with "valac -g ...", it contains a lot of debug info; but if I compile it with "valac -g -C ...", and then use "gcc -g ..." to create the binaries (which is what my CMAKE scripts do), there

Re: [Vala] spawn like a terminal

2016-09-20 Thread rastersoft
Hi: Finally I just used a VTE widget, launching the binary directly inside, or injecting text with feed(). El 20/09/16 a las 02:20, Nor Jaidi Tuah escribió: >> It seems that pipetty from https://github.com/kilobyte/kbtin does >> what >> you want, take a look and try to port it to vala. >> > If

[Vala] spawn like a terminal

2016-09-15 Thread rastersoft
Hi all: I want to launch a process and receive its output. But this process (a "make" that runs valac and gcc) seems to detect whether it is running in a terminal or using pipes, and in the second case it refuses to send ANSI color codes. I want to receive that codes and show them in the text.

[Vala] Code style refactor

2016-09-11 Thread rastersoft
Hi all: Is there a source code style refactor for Vala? If not, where can I find documentation about libvala api? Thanks. -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com http://www.rastersoft.com

Re: [Vala] The future of Vala

2016-09-09 Thread rastersoft
Hi: I was hoping to see at least one answer to this, but now I'm really scared. I really love Vala, so the possibility of missing it is really horrible :( El 08/09/16 a las 19:34, Timm Bäder escribió: > Hey, > > this is probably just a mail for Jürg and maybe Luca, but if you have a > relevant

Re: [Vala] The future of Vala

2016-09-09 Thread rastersoft
Hi: I was hoping to see at least one answer to this, but now I'm really scared. I really love Vala, so the perspective of missing it is really horrible :( El 08/09/16 a las 19:34, Timm Bäder escribió: > Hey, > > this is probably just a mail for Jürg and maybe Luca, but if you have a > relevant

Re: [Vala] Array as big as an enum

2016-08-31 Thread rastersoft
El 31/08/16 a las 17:20, Al Thomas escribió: > - Original Message - > >> From: Evan Nemerson <e...@coeus-group.com> >> Sent: Tuesday, 30 August 2016, 17:11 >> Subject: Re: [Vala] Array as big as an enum >> >> On Mon, 2016-08-29 at 23:47 +0200,

Re: [Vala] Array as big as an enum

2016-08-29 Thread rastersoft
Sorry, I found how to do that: int[] blah = new int[LAST_ELEMENT]; El 29/08/16 a las 23:45, rastersoft escribió: > Hi all: > > I have an enum with several elements, and I need to create an array with > the same number of elements. In C I define a last element with a know

[Vala] Array as big as an enum

2016-08-29 Thread rastersoft
Hi all: I have an enum with several elements, and I need to create an array with the same number of elements. In C I define a last element with a known name (eg: "LAST_ELEMENT"), and use "int blah[LAST_ELEMENT];" to create the array. How can I do that in Vala? Thanks. -- Nos leemos

[Vala] Difference between setting "vapidir" and adding a .vapi file (was "Global key shortcuts")

2016-08-20 Thread rastersoft
nomeBuilder that I'm writing). In both cases the libraries are available system-wide. So... why does this happen? And what is the difference between just specifying a .vapi file or putting a --vapidir parameter? Thanks. El 20/08/16 a las 04:43, Michael Gratton escribió: > On Sat, Aug 20, 2016 at 4

[Vala] Global key shortcuts

2016-08-19 Thread rastersoft
Hi all: I'm working on a program that needs to respond to an specific key always, so when I press it, it will show its window. How can I do it from Vala? Is it possible to do that in a way compatible with wayland? (let's say: register a DBus method to be called when that key is pressed, or

[Vala] Problem with valadoc at valadate

2016-08-16 Thread rastersoft
Hi: First, thanks for the people who made the mirror of valadoc at valadate. Unfortunately there is a little problem: every time I try to open a link to a method/property/class/whatever, but not in the same window/tab but in a new one, I receive a 404 not found. Example: from

Re: [Vala] Just a news I've read about popularity langage

2016-07-22 Thread rastersoft
URL, please? El 22/07/16 a las 14:18, Ben Iofel escribió: > I'm sure the guys at elementary.io would love to help with marketing. They > started a new vala site and new vala documentation page > > On Fri, Jul 22, 2016, 7:47 AM Felipe Lavratti wrote: > >> As an embedded

Re: [Vala] Vala and GLib license

2016-07-12 Thread rastersoft
I suspect that Jens talks about creating a "translation layer" that offers to the unmodified GLib all the system calls that it expects, like "fopen, printf" and so on. El 11/07/16 a las 17:42, Aleksandr Palamar escribió: > Jens, do you mean something like linking GLib to your ownn closed source

Re: [Vala] Vala and GLib license

2016-07-12 Thread rastersoft
Mmmm... that's a tricky question: you only need to grant access to the modified sources to the people to whom you distributed the binaries. This is: if you create a game with a modified GLIB library, and you sell that binary game only to me, you must grant access to the modified sources only to

Re: [Vala] valadoc.org Offline?

2016-05-30 Thread rastersoft
Will you marry me? :) (thanks) El 30/05/16 a las 22:57, Chris Daley escribió: > Hi all, > > For anyone needing some Valadoc love while the server is offline, I've > rebuilt if from the Github repo and put it up at > http://valadoc.valadate.org > > It's not perfect and it may go up and down

[Vala] Sign with RSA

2015-09-10 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi all: Is it possible to use a RSA private key (created with ssh-keygen) to sign something from Vala? This is, not only if there is a library for that, but also if there is a VAPI for it. Thanks. - -- Nos leemos RASTER

Re: [Vala] Colors in valac output

2015-09-03 Thread rastersoft
Ok, sorry... valac-0.28 already has it. I was using 0.26. On 03/09/15 16:33, rastersoft wrote: > Hi all: > > Is it possible to enable the use of colors in the vala compiler? It > would be very handy if the 'Warning' texts are marked in yellow, and the > 'Error' ones in red, allo

[Vala] Colors in valac output

2015-09-03 Thread rastersoft
Hi all: Is it possible to enable the use of colors in the vala compiler? It would be very handy if the 'Warning' texts are marked in yellow, and the 'Error' ones in red, allowing to rapidly spot them. -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com

[Vala] vector extensions for Vala

2015-08-25 Thread rastersoft
Hi: Are plans to implement vector extensions (to take advantage of SSE instructions) in Vala? Just a thin layer over gcc vector extensions would be quite easy... https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html -- Nos leemos RASTER(Linux user #228804)

[Vala] Unmount disk using udisks2 objects in vala

2015-04-02 Thread rastersoft
Hi all: I'm working with the udisks2 classes in Vala, and have the problem that I need to format a disk, but to do so, first I must unmount it. It seems that the only place where is an unmount method is in the Filesystem class, but I can't find how to create that class from a Block or Device

Re: [Vala] state of the art in vala code-completion?

2015-03-15 Thread rastersoft
Hi Nick: AFAIK, the best code-completion for Vala is Guanako, inside Valama editor. https://github.com/Valama/valama El 14/03/15 a las 08:07, Nick Watts escribió: Hi everyone, I've just subscribed to the list, but I've been following vala development for some time. Lately I've found myself

Re: [Vala] acr 0.9.9

2014-12-12 Thread rastersoft
Hi: It looks like something similar to my project Autovala. Maybe we can merge both, allowing autovala to generate both cmake and autoconf/automake scripts... El 12/12/14 a las 02:00, pancake escribió: I'm almost ready to release a new version of ACR. My own autoconf replacement tool.

Re: [Vala] Perfect Vala IDE

2014-12-02 Thread rastersoft
Hi: If you use Autovala, you can use the plugins for Gedit or Scratch-Text-Editor. El 02/12/14 a las 18:59, Dmitry Golovin escribió: Hello all! I don't want to start another vim vs emacs holywar. I want to know if there exist an all-in-one IDE (like Eclipse) for Vala. I tried valama, but

[Vala] Automatic metadata generation NOW ALSO FOR RPM PACKAGES in AutoVala

2014-11-27 Thread rastersoft
time, are invited to test it and send bug reports and bugfixes (I work mainly with Elementary OS, so I had to do the tests with a Fedora-based chroot environment). The branch is available at github: https://github.com/rastersoft/autovala/tree/autopackage Thanks! I uploaded a branch

[Vala] Automatic metadata generation for debian packages in AutoVala

2014-11-25 Thread rastersoft
want people to test it and send me comments and suggestions. It is the branch called AUTOPACKAGE, available at github: https://github.com/rastersoft/autovala/tree/autopackage And yes, it should be quite straightforward to add support for other package systems like .rpm. Thanks. -- Nos

[Vala] Adding unitary test support to Autovala

2014-11-17 Thread rastersoft
Hi all: I'm working on adding unitary test support to autovala, but have some doubts that I want to comment here, to ensure that the implementation is right. The first one is how to define each unitary test; my original idea was: one file, one test, so inside a folder called unitests will

[Vala] Get pointer to a function from a string with its name

2014-08-13 Thread rastersoft
Hi all: I'm developing a proof of concept and I need to get a pointer to a function given its name in a string. I want to do something like Gtk.Builder, where you store in the XML a callback name, and in runtime it search the executable and gets a pointer to that function. In C it seems

[Vala] New version of Autovala

2014-06-08 Thread rastersoft
/rastersoft/autovala -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com http://www.rastersoft.com ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

[Vala] set relief style in a toolbutton

2014-06-03 Thread rastersoft
Hi all: I'm using a toolbar with some toolbuttons and menutoolbuttons, and I'm unable of setting the relief style for them. I want them to look like a button, not just flat. I revised the whole API available in Valadoc but I'm unable to find how to do it. For classic buttons there is

[Vala] New version of Autovala

2014-06-02 Thread rastersoft
compatible with other Linux distributions. More info and a screenshot is available at my personal home page: http://www.rastersoft.com/programas/autovala.html The code is at the Github repository: https://github.com/rastersoft/autovala -- Nos leemos RASTER(Linux user

[Vala] New version of Autovala, now with GEdit plugin

2014-05-22 Thread rastersoft
. As usual, you can download Autovala from the git repository in github: https://github.com/rastersoft/autovala Also here you can see an screen capture of Gedit with the plugin enabled: http://www.rastersoft.com/programas/autovala.html Enjoy it!!! -- Nos leemos

Re: [Vala] A brand new build system

2014-05-16 Thread rastersoft
Hi: I'm the author of autovala. Currently it is a command-line only tool, but I'm working on a gedit plugin that will integrate autovala inside, allowing for a much better workflow. Anyway, about being it much powerful, remember that nearly all is done automagically by autovala, and,

Re: [Vala] A brand new build system

2014-05-16 Thread rastersoft
The idea is to ensure that the autovala library (which contains all the intelligence) allows to create plugins for whatever system you want. Anyway, if Sublime Text is not very complex, I'll give it a look... On 16/05/14 18:54, geovanisouz...@gmail.com wrote: @Rastersoft, Thanks for joining

[Vala] constructor in peas plugin

2014-05-11 Thread rastersoft
Hi all: I'm creating a plugin for Gedit using Vala, and found that the constructor is not called. Is this a bug, or a feature? I attach the first part of my code. Maybe the owned get; construct; in the Gedit.window property is the reason? namespace AutovalaPlugin { public class

[Vala] More problems with vala-dbus-binding-tool

2014-02-23 Thread rastersoft
Hi again: I fixed the problem in the last message: I forgot to add --gdbus. Now I have a problem with the C code: when I extract the interfaces with for org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager (using org.freedesktop.DBus.Introspectable.Introspect), I compile it with

Re: [Vala] More problems with vala-dbus-binding-tool

2014-02-23 Thread rastersoft
Here it is. El 23/02/14 14:10, Luca Bruno escribió: Paste the generated vapi. On Sun, Feb 23, 2014 at 1:16 PM, rastersoft ras...@rastersoft.com wrote: Hi again: I fixed the problem in the last message: I forgot to add --gdbus. Now I have a problem with the C code: when I extract

[Vala] Errors when compiling code generated by dbus-binding-tool

2014-02-21 Thread rastersoft
Hi all: I'm trying to compile some interfaces created with dbus-binding-tool but I'm unable to do so. I receive mainly these errors: error: The type name `DBus.Error' could not be found error: The type name `DBus.ObjectPath' could not be found error: The type name `DBus.Connection' could not

[Vala] bug in IOChannel.read_line and add_watch

2014-02-02 Thread rastersoft
Hi all: I found a bug in IOChannel.read_line: when the line to read ends in \r and there are no more characters after it, the iochannel can't read more chars, nor send more IN DATA AVAILABLE events from an add_watch. In fact, it seems to lock the gtk main loop. I attach a code that triggers

Re: [Vala] bug in IOChannel.read_line and add_watch

2014-02-02 Thread rastersoft
Hi! Yes, after checking the c code generated, I found it, so I filled a bug at bugzilla. Thanks anyway for the tip! El 02/02/14 15:53, Maciej Piechotka escribió: On Sun, 2014-02-02 at 14:10 +0100, rastersoft wrote: Hi all: Hi, I found a bug in IOChannel.read_line: when the line to read

[Vala] several pkg-config libraries for a single VAPI file

2014-01-14 Thread rastersoft
Hi all: I'm working on a vapi file for xcb_render, and I need to put into it one function from xcb_renderutils. The problem is that each one needs a different library (xcb-render and xcb-renderutils). Is it possible to make valac to pass both to pkg-config from a single VAPI file? Thanks.

Re: [Vala] difference between using IntegerType and inheriting

2014-01-06 Thread rastersoft
{ } or as: [SimpleType] [CCode (cname = xcb_atom_t, has_type_id = false)] public struct Atom : uint32 { } ? Thanks. El 05/01/14 22:39, Luca Bruno escribió: You inherit all the methods from uint32? ;) On Sun, Jan 5, 2014 at 9:51 PM, rastersoft ras...@rastersoft.com wrote

[Vala] rank modifier

2014-01-05 Thread rastersoft
Hi all: What is the utility of the RANK modifier in the IntegerType and FloatingType VAPI attributes? Thanks. -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com http://www.rastersoft.com ___

[Vala] difference between using IntegerType and inheriting

2014-01-05 Thread rastersoft
Hi again: Another doubt I have is: what is the difference between doing: [SimpleType] [IntegerType (rank = 9)] [CCode (cname = c_name, has_type_id = false)] public struct StructName { } and [SimpleType] [CCode (cname = c_name, has_type_id = false)] public

[Vala] var + unowned

2013-12-31 Thread rastersoft
Hi all: I'm creating a VAPI, and one of the constructors is defined as: public static unowned Icccm new(Xcb.Connection conn) { unowned Xcb.Icccm.Icccm retval = (Xcb.Icccm.Icccm)conn; return retval; } The idea is to create an Icccm object that is, in fact, a

Re: [Vala] VAPI tutorial

2013-12-28 Thread rastersoft
Why isn't that document linked in the Vala's page? (at least, I didn't found it). It looks very useful. El 28/12/13 04:59, Andre Masella escribió: Probably best to link to the legacy VAPI guide: https://wiki.gnome.org/Projects/Vala/LegacyBindings On 27 December 2013 15:43, rastersoft ras

[Vala] VAPI tutorial

2013-12-27 Thread rastersoft
Hi all: I wrote a little VAPI writing tutorial to help people to start writing VAPI files for libraries. I put it at https://wiki.gnome.org/Projects/Vala/WrittingVAPIs Of course it is incomplete, and is possible that it has mistakes, so I accept all kind of suggestions and fixes. -- Nos

[Vala] add methods to a compact class from outside the main definition in a VAPI file

2013-12-17 Thread rastersoft
Hi all: I'm working on the XCB VAPI files, and I have a problem. XCB is subdivided in several parts: the core X protocol, utility functions and extensions. The core protocol creates a compact class, Connection, which represents a xcb_connection_t structure, and all the functions for the XCB

Re: [Vala] add methods to a compact class from outside the main definition in a VAPI file

2013-12-17 Thread rastersoft
methods. Remember, you can nest namespaces, so you can do something like namespace Icccm { public static void foo (Xcb.Icccm self); } -Evan On Tue, 2013-12-17 at 23:50 +0100, rastersoft wrote: Hi all: I'm working on the XCB VAPI files, and I have a problem. XCB

Re: [Vala] Problem creating VAPI file for XcbIcccm (extra data)

2013-12-13 Thread rastersoft
That was the solution: mark the fields as unowned. Thanks!!! El 13/12/13 09:18, Luca Bruno escribió: On 12/12/2013 23:52, rastersoft wrote: BTW: The whole VAPI file is this: using Xcb; [CCode (lower_case_cprefix = xcb_icccm_, cheader_filename = xcb/xcb_icccm.h)] namespace XcbIcccm

[Vala] Problem creating VAPI file for XcbIcccm

2013-12-12 Thread rastersoft
Hi all: I'm creating a VAPI file for xcb_icccm and I have a problem: I defined the function xcb_icccm_get_wm_class_from_reply as: [CCode (cname = xcb_icccm_get_wm_class_from_reply)] public void get_wm_class_from_reply(out WmClassFromReply reply, GetPropertyReply input);

[Vala] Problem creating VAPI file for XcbIcccm (extra data)

2013-12-12 Thread rastersoft
WmClassFromReply reply, GetPropertyReply input); } El 12/12/13 23:20, rastersoft escribió: Hi all: I'm creating a VAPI file for xcb_icccm and I have a problem: I defined the function xcb_icccm_get_wm_class_from_reply as: [CCode (cname = xcb_icccm_get_wm_class_from_reply)] public void

[Vala] passing string length in VAPI file

2013-12-06 Thread rastersoft
Hi all: I'm completing the XCB api for Vala, but I have a problem: there are several functions that receive a string and its length, like: xcb_intern_atom (xcb_connection_t *_conn_, uint8_t _only_if_exists_, uint16_t _name_len_, const char *_name_); Currently I'm doing it this way, by

[Vala] XCB api seems incomplete

2013-12-05 Thread rastersoft
Hi all: I'm porting a little window manager wrote in C to vala, and it uses XCB. But it seems that the XCB Vapi is pretty incomplete. Is someone working on it, or should I try to complete it and send it upwards? Thanks. -- Nos leemos RASTER(Linux user #228804)

[Vala] XKB and KeySyms

2013-09-05 Thread rastersoft
Hello: I'm creating an on-screen keyboard, and I need to send synthetic keypresses to the XWindow server. I can use XTest (which is available in Vala), but in order to find the correspondence between a character and a keycode I need XKB support, which seems to be not available in Vala

[Vala] Dynamic load in execution time

2013-08-24 Thread rastersoft
Hi all: I was wondering if Vala allows (or will allow in a near future) to load a .so during execution time (not in load time, like currently does) and access its methods and classes as usual, instead of having to work with function pointers and so on. I ask this because I want to adapt a

Re: [Vala] Dynamic load in execution time

2013-08-24 Thread rastersoft
I think it will be enough. Thanks! El 24/08/13 19:17, Evan Nemerson escribió: On Sat, 2013-08-24 at 13:22 +0200, rastersoft wrote: Hi all: I was wondering if Vala allows (or will allow in a near future) to load a .so during execution time (not in load time, like currently does) and access

  1   2   >