Re: [Vala] static linking with Vala

2010-01-29 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan Hudec escribió: Hi Jan: Is possible to statically link a Vala program? I need it to compile code for a Multimedia hard disk for which I don't have all the libraries. There is no global statically vs. dynamically link. The compiler will link

[Vala] Python bindings for Vala code

2010-02-06 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: Is possible to do Python bindings for Vala classes? This is, accessing vala classes from Python. Yes, I know that it should be as easy than doing it for a GObject class, but what I mean is if there is a tutorial or similar, and, what's more

Re: [Vala] Python bindings for Vala code

2010-02-07 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arc Riley escribió: Hi: [problems with GObject introspection and PyGI] Sorry to those who are putting a lot of work into PyGObject/PyGIR/PyBank/PyNameOfTheMonth but its harmful to mislead project developers in suggesting they should use

[Vala] using the notification area/systray

2011-07-10 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm working on a program in Vala and I need to paint an icon on the notification area (or system tray). I've been searching for an specific API in Vala, but haven't found it. Is there something that simplifies it? Thanks. - -- Nos leemos

[Vala] support for elif

2011-07-16 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: Have you considered to support elif in Vala as syntax sugar for else if ..., like in python? Thanks. - -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com http://www.rastersoft.com

[Vala] Using gettext

2011-07-26 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm creating a program using Valide and Vala, and I want to use gettext. Unfortunately, I receive this error: In file included from /home/raster/workspace/cronopete/cronopete.vala.c:33:0: /usr/include/glib-2.0/glib/gi18n-lib.h:29:2: error:

[Vala] volatile

2011-07-27 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm working with threads, and I need to declare a boolean private variable as volatile. I tried with private volatile bool myvar, and valide seems to recognize the syntax, but the compilation returns an error. Thanks. - -- Nos leemos

Re: [Vala] volatile

2011-07-29 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 28/07/11 10:25, Maciej Marcin Piechotka escribió: Hi: Remember that the marking variable as volatile in C does not make it atomic. You still need something like: volatile int i = 0; // if (i) if (GLib.AtomicInt.get(ref i) != 0) .. // i

[Vala] int64 generics

2011-08-02 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I need to create an ArrayList with int64 values. Using var mylist = new ArrayListint64(); returns an error: int64 is not a supported generic type argument, use ? to box value types I box it with var mylist = new

Re: [Vala] GSettings uses memory backend

2011-08-11 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 11/08/11 12:28, Sébastien Wilmet escribió: On Thu, Aug 11, 2011 at 10:39:26AM +0200, rastersoft wrote: I'm trying to use gsettings in my vala code, but it insists in use the memory backend (GLib-GIO-Message: Using the 'memory' GSettings

[Vala] detect mounted volumes

2011-08-13 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I need to detect when a new USB disk has been mounted or unmounted. Currently I use VolumeMonitor.get() to acquire a VolumeMonitor instance and list the volumes (using get_root().get_path() to get the mounting path), but I want to do it in a

Re: [Vala] detect mounted volumes

2011-08-13 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi: Yes, using mount_added.connect_after and mount_removed.connect_after did the trick. Thanks! El 13/08/11 14:16, Luca Bruno escribió: On Sat, Aug 13, 2011 at 01:53:04PM +0200, rastersoft wrote: Hi all: I need to detect when a new USB disk

[Vala] Getting access to objects using an ObjectPath

2011-08-15 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm starting with DBus over Vala, and I'm having problems in getting access to some elements. I want to work with the UDisk system, so I started to connecto to org/freedesktop/Udisks and get all the devices. This returns an array of

Re: [Vala] Getting access to objects using an ObjectPath

2011-08-15 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I found the problem: I have to use org.freedesktop.UDisks in both get_proxy_sync, because is the same program/connection who answers to all objects. El 15/08/11 11:51, rastersoft escribió: Hi all: I'm starting with DBus over Vala, and I'm having

Re: [Vala] Vala logo proposals

2011-08-15 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi: The logo text is great, but I dislike the logo symbols... What about a V letter in speed, like the feathers in the first wing? Something like this: http://www.rastersoft.com/vala_fast_v.png I'm not a good graphic designer, but I think you

[Vala] extract translatable strings from VALA files

2011-08-24 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I've been able to extract the translatable strings from VALA files using xgettext -o po/untitled.pot -L c# -k_ *.vala Unfortunately, when I want to use intltool-update with a POTFILES.in file (setting before each VALA file the string

[Vala] asynchronous call with DBus

2011-08-27 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm working with DBus and Vala, and I've been able to call to a method in UDisks; but now I want to do that call in an asynchronous manner, because it needs some time to be completed (format a disk). I tried something like this: [DBus

Re: [Vala] Was GNOME Panel applet example removed?

2011-08-30 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi: El 30/08/11 15:39, Quikee escribió: It was removed when examples were converted to GTK 3 and Gnome 3 and Gnome Panel is deprecated in Gnome 3 so it was removed. Exact message when it happened is: remove panel applet sample (panel applets and

[Vala] gtk_clutter_init

2011-09-02 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: How can I call gtk_clutter_init()? I tried several combinations but I've been unable to do it. Thanks. - -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com http://www.rastersoft.com

[Vala] live.gnome.org is down

2011-09-06 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all The server live.gnome.org is down, and so all the pages about Vala. Does someone know when will it be active again? Thanks. - -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com

[Vala] embed gtk 2.0 widget in clutter actor

2011-09-24 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm creating an app with clutter, and I want to embed a GTK+2 widget inside it; unfortunately, if I try to use gtkclutter-1.0 VAPI, it insists in use GTK+3; and gtkclutter-0.10 seems to not support GtkClutter.Actor. Is there a way of doing

[Vala] can't receive scroll event in object's method

2011-09-27 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm trying to receive the scroll event in an object, but I'm unable to do it. If I do: [...] this.mybox = new EventBox(); mybox.add_events (Gdk.EventMask.SCROLL_MASK); mybox.scroll_event.connect(do_scroll);

Re: [Vala] can't receive scroll event in object's method

2011-09-28 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks, finally it works! El 28/09/11 09:38, Iñigo Serna escribió: Hello, On 27 September 2011 21:13, rastersoft ras...@rastersoft.com wrote: I'm trying to receive the scroll event in an object, but I'm unable to do it. If I do

[Vala] Monodevelop, vala and GTK

2011-10-01 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: Up to now I am using Valide to develop in Vala; but since this IDE seems to not being actively developed anymore, I want to switch to other IDE. I was considering Monodevelop, but when I want to add the packages I need for my project (Gtk,

[Vala] Compiling VTG under Ubuntu 11.10

2011-10-15 Thread rastersoft
Hi all: I updated my system to Ubuntu 11.10, and now I can't use VTG. There's no package for it, and I can't compile the source code from git. If I install only libvala-0.14, the configure script returns an error, saying that libvala is older than libvala-0.12. If I install libvala-0.12, then

Re: [Vala] Compiling VTG under Ubuntu 11.10

2011-10-16 Thread rastersoft
Hi: I found your patches, and I applied it, but it still complains. Now the problem is with libafrodite: error: Package `afrodite-0.14' not found in specified Vala API directories or GObject-Introspection GIR directories Compilation failed: 1 error(s), 0 warning(s) The bug is because it's

Re: [Vala] Compiling VTG under Ubuntu 11.10

2011-10-16 Thread rastersoft
Hi: That link points to a sample plugin, not to Vala Toys... :? El 16/10/11 17:47, bsquared escribió: rastersoftras...@rastersoft.com writes: Hi: I found your patches, and I applied it, but it still complains. Now the problem is with libafrodite: error: Package `afrodite-0.14' not found

[Vala] Date format

2011-10-24 Thread rastersoft
Hi all: I want to print a date in the format dd/mm/ or mm/dd/, acording to the current locale. Unfortunately, strftime only seems to support %x, which prints the year as a two-digits number, instead of four digits. How can I get the current date format to be able to print it in the

Re: [Vala] Date format

2011-10-25 Thread rastersoft
to know if is there a straightforward way of doing this. Thanks. El 25/10/11 15:35, Reid Thompson escribió: On Mon, 2011-10-24 at 22:33 +0200, rastersoft wrote: I want to print a date in the format dd/mm/ or mm/dd/, acording slightly modified from http://live.gnome.org/Vala/TimeSample

Re: [Vala] Date format

2011-10-25 Thread rastersoft
be a misunderstanding over the time and date format. reid On Tue, 2011-10-25 at 22:06 +0200, rastersoft wrote: Thanks, but that doesn't solve my problem. I already got access to that, and tested format(%x); unfortunately, it puts the year as a two-digit number. I want the same than format(%x) but with four-digit

[Vala] using a GLib.Icon in an IconView

2011-10-31 Thread rastersoft
Hi all: I'm working with a Gtk.IconView, and need to put standard icons in it. I have several ThemedIcons, and want to use them there, but IconView expects a Gdk.Pixbuf. How can I do that? I've been unable to find how to render a GLib.Icon in a Gdk.Pixbuf. Thanks. -- Nos leemos

Re: [Vala] How to ignore exceptions?

2011-10-31 Thread rastersoft
I don't think that try { ... } is a good idea, but try { ... }; is. Just removing the catch can result in involuntary errors, but if you have to choose between a ; or a catch, the probability of forgetting it is greatly reduced. El 31/10/11 23:22, pancake escribió: Hi On

Re: [Vala] How to ignore exceptions?

2011-10-31 Thread rastersoft
Yes, I like it! El 01/11/11 00:46, Fabian Deutsch escribió: Maybe nocatch { ... } would make that case even clearer. Am Dienstag, den 01.11.2011, 00:43 +0100 schrieb rastersoft: I don't think that try { ... } is a good idea, but try { ... }; is. Just removing the catch

[Vala] list_style_properties

2011-11-03 Thread rastersoft
Hi all: I'm trying to read the widget's current style, and wanted to use the method widget.list_style_properties(uint n_props). The problem is that the definition in GTK official documentation http://developer.gnome.org/gtk/2.24/GtkWidget.html#gtk-widget-class-list-style-properties states

[Vala] get the fg, bg colors

2011-11-07 Thread rastersoft
Hi all: I've been trying to get the RC info from a window, to be able to replicate the background color of an iconview in other parts with Cairo, but I've been unable to do it. I always receive a core dump. How can I get access to it? (foreground color, background color, text color, and so

[Vala] Memory leak with Gdk.Pixbuf.add_alpha

2011-11-16 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I think I found a memory leak with Gdk.Pixbuf.add_alpha. This function returns a copy of the specified pixbuf, adding an alpha channel. But it seems that Vala increments the count reference too, so it never gets freed. I made my tests with

Re: [Vala] About Vala's IDE

2011-12-06 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! There was a project called Valide, written in Vala (https://launchpad.net/valide). Unfortunately it seems to be stalled :( El 06/12/11 10:32, Pigex.Zhang escribió: Dear All: Is there has a plan with vala's professional IDE ?I tried some

Re: [Vala] Vala 0.16

2011-12-31 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try to do: sudo ldconfig El 31/12/11 20:16, David Gomes escribió: vala: error while loading shared libraries: libvala-0.16.so.0: cannot open shared object file: No such file or directory. Guys, I built Vala 0.16 from source on Ubuntu

[Vala] poppler and gtk3

2012-03-24 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm trying to use poppler with gtk3 and vala, but when I use --pkg poppler-glib, vala adds gtk2 too, with the obvious conflict. How can I do it? Thanks. - -- Nos leemos RASTER(Linux user #228804) ras...@rastersoft.com

[Vala] Interfaces and asynchronous methods

2012-08-13 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to define an interface with an async method, but I receive this error in the line where I try to invoke it in an object that implements it: backup.vala:246.14-246.43: error: invocation of void method not allowed as expression Are

Re: [Vala] Interfaces and asynchronous methods

2012-08-14 Thread rastersoft
escribió: On Mon, Aug 13, 2012 at 4:03 PM, rastersoft ras...@rastersoft.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to define an interface with an async method, but I receive this error in the line where I try to invoke it in an object that implements

Re: [Vala] d-bus timeout when formating disk

2012-08-27 Thread rastersoft
escribió: On Sun, Aug 26, 2012 at 11:15 PM, rastersoft ras...@rastersoft.com wrote: Hi all: I'm using UDISKS and D-BUS to formate a hard disk. Unfortunately, the time needed to format the drive is bigger than the default timeout for an async call, so I always receive an exception with a d

Re: [Vala] Volatile keyword in Vala(please answer)

2012-08-28 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's supposed that a volatile variable can change magically (this is, being modified by another thread, a device driver...), so the compiler has to take that into account when doing optimizations. A crude example in C: volatile int v=1;

Re: [Vala] Bug in async methods?

2012-10-22 Thread rastersoft
. -- Jim On Mon, Oct 22, 2012 at 2:47 PM, rastersoft ras...@rastersoft.com wrote: Hi all: I was working with async methods, and found something odd: if I call an async method, but, for whatever reason, I never call YIELD inside, the end callback function is never called. I attach an example

Re: [Vala] Bug in async methods?

2012-10-22 Thread rastersoft
are designed to use MainLoop to schedule code execution. You don't *have* to use them to do asynchronous work, but they are certainly convenient. -- Jim On Mon, Oct 22, 2012 at 3:19 PM, rastersoft ras...@rastersoft.com wrote: Yes, you are right: I created a main loop, called run

Re: [Vala] Bug in async methods?

2012-10-22 Thread rastersoft
keywords are designed to use MainLoop to schedule code execution. You don't *have* to use them to do asynchronous work, but they are certainly convenient. -- Jim On Mon, Oct 22, 2012 at 3:19 PM, rastersoft ras...@rastersoft.com wrote: Yes, you are right: I created a main loop, called run

[Vala] Register object in SYSTEM bus

2012-11-07 Thread rastersoft
(DBusConnection conn) { GLib.stdout.printf (Registering bus\n); try { var l=conn.register_objectdbus_class (/com/rastersoft/gamed, new dbus_class()); GLib.stdout.printf (Registered bus %d\n,(int)l); } catch (IOError e) { GLib.stderr.printf (Could not register

Re: [Vala] Register object in SYSTEM bus

2012-11-07 Thread rastersoft
as root? Cheers, Matthias 2012/11/7 rastersoft ras...@rastersoft.com: Hi all: I'm trying to register an object in dbus'SYSTEM bus, but I'm unable to do so. I try with: [DBus (name = com.rastersoft.gamed)] public class dbus_class: Object { public void set_priority(int new_priority

Re: [Vala] Register object in SYSTEM bus

2012-11-07 Thread rastersoft
! Have you created a DBus interface file? Are you running that stuff as root? Cheers, Matthias 2012/11/7 rastersoft ras...@rastersoft.com: Hi all: I'm trying to register an object in dbus'SYSTEM bus, but I'm unable to do so. I try with: [DBus (name = com.rastersoft.gamed)] public class

Re: [Vala] Register object in SYSTEM bus

2012-11-07 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi: Ok, finally I found it. They are at /etc/dbus-1/system.d Thanks! El 08/11/12 00:06, rastersoft escribió: Hi again: I'm unable to find documentation about how to create a DBus interface file. Is it the XML that describes the interfaces? I

[Vala] monodevelop-vala

2012-11-11 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to compile the last version of monodevelop-vala under Ubuntu 12.10, but was unable, even after modifying the configure file to use version 0.14 of vala. Does somebody know if this project is still alive? Thanks. - -- Nos leemos

[Vala] GSettings and not-available schemas

2012-12-16 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm working with GSettings. I want to read org.gnome.desktop.background and want to ensure that my code works even when the schema is not installed (let's say, if the user is using KDE). When I try to access an inexistent schema, I receive

Re: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

2012-12-28 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oh, yeah! Thanks El 28/12/12 13:12, tarn...@tarnyko.net escribió: Hi folks, I'm very happy to announce today's release of Val(a)IDE 0.7.2. Val(a)IDE is a small but fast IDE for the Vala language. It provides syntax highlighting,

Re: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

2012-12-28 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi: Just a little question: have you added this patch I sent a year ago? https://bugs.launchpad.net/valide/+bug/817136 Thanks El 28/12/12 18:13, tarn...@tarnyko.net escribió: Luca, Yes, it's the same codebase. I branched it without pushing back

Re: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

2012-12-28 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And another question: are you going to fix the code to allow it to compile with vala 0.18? I downloaded the trunk from your repo, and still asks for vala 0.12 :( El 28/12/12 21:02, rastersoft escribió: Hi: Just a little question: have you added

Re: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

2012-12-29 Thread rastersoft
not to touch that part for my first update... BTW, on Debian/Ubuntu at least, I'm pretty sure you can install several compiler versions concurrently. Have you considered using 0.12 for the compilation and execution of the IDE only ? Regards, Tarnyko rastersoft writes: -- Nos leemos RASTER

[Vala] vala 0.12 and vala 0.16

2012-12-31 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I want to work with the new valide (which needs vala 0.12), but at the same time I need vala 0.16. But packages in ubuntu/elementary have a conflict, I can't have both at the same time. Why does this happen? Why version 0.12 is incompatible

[Vala] realpath compiles incorrectly

2013-03-12 Thread rastersoft
Hi all: I'm trying to use Posix.realpath, but I'm unable, because Vala seems to compile it incorrectly. I receive this message: .vala.c:920:2: error: too many argument for function ‘realpath’ I put in my code: string tmp; tmp=Posix.realpath(this.config_path); And it is compiled to _tmp35_ =

Re: [Vala] realpath compiles incorrectly

2013-03-13 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jonas: Your prototype works fine. I'll fill a bug report in bugzilla. Thanks! El 13/03/13 17:44, Jonas Kulla escribió: 2013/3/13 rastersoft ras...@rastersoft.com Hi all: I'm trying to use Posix.realpath, but I'm unable, because Vala seems

[Vala] Autovala: new program for developers

2013-03-29 Thread rastersoft
. It also creates automatically the .gir and .vapi files for libraries. You have a longer and more precise description in the README file, in the github repository: https://github.com/rastersoft/autovala It is still an alpha version, but fully usable. It still lacks some minor things, like

[Vala] Valadoc and FileAttribute

2013-04-01 Thread rastersoft
Hi all: I'm trying to use Valadoc, but it returns this error: |configuration.vala:305.47-305.59: error: The name `FileAttribute' does not exist in the context of `AutoVala.configuration.find_configuration' generate.vala:169.51-169.63: error: The name `FileAttribute' does not exist in the

Re: [Vala] Autovala: new program for developers

2013-04-03 Thread rastersoft
...@tarnyko.net To: vala-list@gnome.org Date: Sat, 30 Mar 2013 16:14:00 +0100 Subject: Re: [Vala] Autovala: new program for developers Nice ! Thanks for your work, will check that when I have time. Regards, Tarnyko rastersoft writes: Hi all: Several days ago, another user commented

Re: [Vala] Autovala: new program for developers

2013-04-05 Thread rastersoft
to complication. Hope the best for your tool. Tal From: tarn...@tarnyko.net To: vala-list@gnome.org Date: Sat, 30 Mar 2013 16:14:00 +0100 Subject: Re: [Vala] Autovala: new program for developers Nice ! Thanks for your work, will check that when I have time. Regards, Tarnyko rastersoft

Re: [Vala] Autovala: new program for developers

2013-04-14 Thread rastersoft
Yes, I was, precisely, the one with the problem :D El 14/04/13 04:18, Jonas Kulla escribió: 2013/4/14 Francis Giraldeau francis.girald...@gmail.com I have some problem to compile configuration.vala, seems related to Posix:

Re: [Vala] Autovala: new program for developers

2013-04-14 Thread rastersoft
I'm fully open to suggestions... El 14/04/13 18:48, Alexander Krivács Schrøder escribió: On 30.03.2013 02:34, rastersoft wrote: Hi all: Several days ago, another user commented in Elementary Dev list that using CMake with Vala was quite hard and difficult. After thinking about it, I

[Vala] libraries and gettext

2013-04-20 Thread rastersoft
Hi all: I'm creating a library with Vala, and want to use gettext with it. In normal programs it works the syntax _(text to translate), but in a library, dgettext() must be used. Is there a replacement for dgettext() like the underscore for gettext? Thanks. -- Nos leemos

[Vala] gettext, gtk and libraries

2013-04-30 Thread rastersoft
Hi all: I'm creating a plugin for Gedit in Vala, and this plugin creates a window dialog, defined from Glade. This plugin also has messages that must be translated with gettext. Currently I've been able to create the window fine, and to get all the translated texts in the source code to be

[Vala] memory management with structs

2013-05-18 Thread rastersoft
Hi all: How is the memory management in vala when using structs instead of classes? I presume they are not ref-counted... The real questions are: * is it possible to use structs as elements in a Gee list without running into memory management problems? * How to avoid them, in case there

[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

[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] 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] 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] 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

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] 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

[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

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] 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

[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

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] 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.

[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] 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] 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] 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

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] 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

[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] 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-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] 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] 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] 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

  1   2   >