Re: [Vala] Abstract class constructors and ABI compatibility

2019-09-27 Thread Jens Georg
Hi. > > I noticed public constructors of abstract classes are no longer > allowed since Vala 0.45.1. > > Does changing the public constructors to protected break ABI > compatibility? No. The C code is identical. ___ vala-list mailing list

Re: [Vala] ValaForCSharpProgrammers "No partial classes"

2019-02-09 Thread Jens Georg
> > If here some dev's just let me say that "partial classes" are > elementary > for C# developers. > > The reason is, to split functionality in smaller source-files. That is kind of a two-edged sort. Personally, I think if your class gets so big that you feel the need to distribute your

Re: [Vala] Newbie need help

2018-10-23 Thread Jens Georg
valac - The standard Vala compiler Vala - A programming language. (Description, Specification,...) That isn't the complete truth, there is also vala, the "interpreter" that on-the-fly compiles the vala code and runs it - which works ok for simple files e.g. if you need to check something

Re: [Vala] Using databases with Vala

2018-05-07 Thread Jens Georg
On Thu, 2018-03-08 at 21:03 -0500, Steven Oliver wrote: > I want to begin working an application that would have a database, > specifically SQLite, as a back-end. I know that at some point > sqlheavy > (https://github.com/nemequ/sqlheavy) was an option for using > databases > with Vala. It doesn't

Re: [Vala] cannot locate ITS rules for org.gnome.Publisher.appdata.xml.in

2017-06-13 Thread Jens Georg
sascha@linux-ktr9:~/Projects/gnome-publisher1/data> make GEN org.gnome.Publisher.appdata.xml /usr/bin/msgfmt: cannot locate ITS rules for org.gnome.Publisher.appdata.xml.in Usually you forgot to specify the format when doing this, but your code looks good. check if you have

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

2017-01-17 Thread Jens Georg
In Vala you can simply just check for str != "", this is enough. No, if str is nullable it's semantically different, because str != "" will be generated as if (g_strcmp0 (_tmp1_, "") != 0) { .. } This will be TRUE for _tmp1_ being NULL because NULL isn't "" ( and g_strcmp0 will return

Re: [Vala] Vala and GLib license

2016-07-11 Thread Jens Georg
... That was the whole point of the subject. On Jul 11, 2016 5:25 PM, "Jens Georg" <m...@jensge.org> wrote: But If I would need to patch GLib to work on PS4 or XBONE? I doubt that those platforms will allow me to share usage of their internal API. Can I keep those patch closed and

Re: [Vala] Vala and GLib license

2016-07-11 Thread Jens Georg
But If I would need to patch GLib to work on PS4 or XBONE? I doubt that those platforms will allow me to share usage of their internal API. Can I keep those patch closed and share them only with people who has licenses for PS4 and XONE (you aren't able to put that patch in anyway if you are

Re: [Vala] Interface static method

2015-07-08 Thread Jens Georg
my question is simple : How implement static method c interface ? Yet I have no idea what you are trying to do. Are you trying to implement URIHandler interface in Vala? An exemple with GStreamer URIHandler : http://cgit.freedesktop.org/gstreamer/gstreamer/tree/gst/gsturi.h get_protocols

Re: [Vala] [ANNOUNCE] Vala 0.22.1 - Compiler for the GObject type system

2013-11-19 Thread Jens Georg
Am 2013-11-19 18:12, schrieb Jürg Billeter: We are pleased to announce version 0.22.1 of Vala, a compiler for the GObject type system. Hm, I'd suggest to either give reasons for the reversions or just squash them in the changelog, it looks a bit weird :)

Re: [Vala] How to get date/time infos from a file ?

2013-08-21 Thread Jens Georg
On Mi, 2013-08-21 at 14:41 +0200, r...@no-log.org wrote: Hello, I'm trying to get informations like TIME_ACCESS, TIME_CREATED, ... from a file but I don't know how. For example : var file = File.new_for_path (some_file.txt); You have to add things you want to extract from the FileInfo

Re: [Vala] How to get date/time infos from a file ?

2013-08-21 Thread Jens Georg
On Mi, 2013-08-21 at 15:39 +0200, r...@no-log.org wrote: Well, Im' trying something like : var file = File.new_for_path (some_file.txt); var file_info = file.query_info (*::*, 0); Should be file.query_info (*, 0) for everything int64 file_stamp =

Re: [Vala] How track memory leaks ?

2013-03-18 Thread Jens Georg
On Mo, 2013-03-18 at 22:44 -0007, Jim Nelson wrote: This is a problem we faced in Geary. We went several directions before adding this, which helped immensely: http://redmine.yorba.org/projects/geary/repository/revisions/master/entry/src/engine/api/geary-base-object.vala Note that this

Re: [Vala] suppressing the never used warning on a method-by-method basis, at least for libraries

2013-01-15 Thread Jens Georg
On Mo, 2013-01-14 at 20:57 -0800, Dan Hitt wrote: I would really like to disable only the never used warnings (and i'd like to do it on a method-by-method basis, because, after all, the never used warning is very useful). Here's a sort of minimal example, to be put in a file called

Re: [Vala] How can I disable the gdb integration?

2012-09-07 Thread Jens Georg
On Fr, 2012-09-07 at 09:11 +0300, Alberto Mardegan wrote: Hi all, when running my application under gdb I get the following: = Program received signal SIGSEGV, Segmentation fault. publishing_ui_publishing_dialog_account_service_copy (self=self@entry=0x0,

Re: [Vala] Asynchronous construction

2012-03-27 Thread Jens Georg
Hi, [Freenect C init sample ] Trying to implement that in Vala, I took the approach below. It seems however, that the init_async does not work. Looking at the generated C-Code it looks like the g_async_initable_init_finish method is called right after init_async an not with in the

Re: [Vala] Asynchronous construction

2012-03-27 Thread Jens Georg
On Di, 2012-03-27 at 12:24 +0200, tomw wrote: On Di, 2012-03-27 at 11:59 +0200, Jens Georg wrote: try { debug (Trying to run init_async); bool re = yield device.init_async (Priority.DEFAULT, cancellable); ^^ this yield returns to main loop and once

Re: [Vala] regarding GLib.Process.spawn_async_with_pipes

2012-03-13 Thread Jens Georg
Hi, I'm trying to write a simple GTK3 front-end for smbpasswd and I'm trying to use «GLib.Process.spawn_async_with_pipes» based on the «-s» option of smbpasswd which allows it to use stdin for password prompt. How can I send the data to «GLib.Process.spawn_async_with_pipes»' stdin? You need

Re: [Vala] http server help

2011-10-03 Thread Jens Georg
On Sa, 2011-10-01 at 15:18 +0200, andrea zambon wrote: Hi, I'm writing a little http server to send some binary data. I wonder if it wouldn't be easier to use the one from libsoup. ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] this in objects

2011-08-03 Thread Jens Georg
On Mi, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote: Hi, why somebody uses this. prefix and somebody doesn't, I have tried and it worked with or without it It's a matter of taste and or coding guidelines or explicitly avoid shadowing of object members by local variables. this can be

Re: [Vala] [vala][newbie] file_info.get_file_type

2011-05-08 Thread Jens Georg
On Mo, 2011-04-11 at 22:53 -0700, Charles Hixson wrote: I can't figure out what I'm doing wrong, but file_info.get_file_type always returns a value of 0 (i.e., UNKNOWN): Yes, and it rightfully does. Because you don't query for it. You want to query for

Re: [Vala] [vala][newbie] file_info.get_file_type

2011-04-12 Thread Jens Georg
On Mon, 2011-04-11 at 22:49 -0700, Charles Hixson wrote: I can't figure out what I'm doing wrong, but file_info.get_file_type always returns a value of 0 (i.e., UNKNOWN): That's correct, because… // valac --pkg gio-2.0 walker.vala // ./walker

Re: [Vala] [newbie] Creating a VAPI for a raw C library

2011-02-28 Thread Jens Georg
On Mon, 2011-02-28 at 09:09 +0100, Guilhem Bonnefille wrote: Hi all, It's my first post on this list, as I've just decided to experiment vala. My idea is to build a software around a C library. But, this library is in the pure C spirit: - opaque public types - return values via

Re: [Vala] Vala for everyone

2011-01-31 Thread Jens Georg
On Mon, 2011-01-31 at 14:27 +, Denis Reichelt wrote: Hi all, I'm not a GNOME developer but I'm interrested in Vala because for me it would be a perfect C frontend. C is virtually platform independent because C compilers exist for nearly every processor / controller. So my

Re: [Vala] Any xUnit framework for Vala?

2011-01-06 Thread Jens Georg
Let me answer to my question: binding for GLib testing framework actually exist in Vala. They are just hidden. I did not find any examples of unit tests for a Vala app, so I created such example by http://git.gnome.org/browse/rygel/tree/tests ___

Re: [Vala] uuid binding

2011-01-04 Thread Jens Georg
On Tue, 04 Jan 2011 13:49:52 +0100, Pavol Klačanský pa...@klacansky.com wrote: Hi, is there working uuid bindings? thanks http://git.gnome.org/browse/rygel/tree/src/rygel/rygel-root-device-factory.vala#n28 ___ vala-list mailing list

Re: [Vala] FileInfo.get_file_type()

2010-06-23 Thread Jens Georg
Can anyone tell me why the following program always returns UNKNOWN for the file type? Because you do not include the query for the filetype in the enumerate call. ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Mysql binding

2010-01-18 Thread Jens Georg
Hi, i'm trying mysql bindings now, and it doesn't work for me, r...@centos-54-64-minimal ~/develop/vala # valac --pkg mysql mysql2.vala ./mysql2 mysql2.vala:10.19-10.33: error: `Mysql.Database' does not have a default constructor Database mysql = new Database ();

Re: [Vala] SDL error: SDL_gfxPrimitive.h not found

2009-10-22 Thread Jens Georg
Am Donnerstag, den 22.10.2009, 10:45 -0400 schrieb Levi Bard: Did you have --Xcc=-I/usr/include/SDL as part of your compile line? Just out of curiosity... Why is that necessary? It's because SDL, unlike a lot of libraries bound for Vala, doesn't have a pkg-config file defining include

Re: [Vala] SDL error: SDL_gfxPrimitive.h not found

2009-10-22 Thread Jens Georg
It's because SDL, unlike a lot of libraries bound for Vala, doesn't have a pkg-config file defining include paths and the like. That depends. It seems to have on debian-based systems and on openSUSE. and in libsdl's svn: http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL/sdl.pc.in?view=log

Re: [Vala] Bitwise and (c ) in Vala

2009-09-17 Thread Jens Georg
if (condition MyClass.ENUM_VALUE_1) if ((condition MyClass.ENUM_VALUE_1) != 0) Elementary, dear Watson ;-) ... in every other language than C ;) ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] libgee on Windows

2009-09-11 Thread Jens Georg
The mailing list keeps destroying my pretty formating! Delete all the hyphens following the urls. That looks weird. Are you - by any chance - compiling in a directory that contains spaces? ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] libgee on Windows

2009-09-10 Thread Jens Georg
I tried running configure, make, make install from cygwin but it failed at configure. :( Appending --no-undefined on the gcc compile command also failed. output.txt http://www.flyupload.com/?fid=155588output.png http://www.flyupload.com/?fid=7060892 config.log

Re: [Vala] libgee on Windows

2009-09-08 Thread Jens Georg
Am Montag, den 07.09.2009, 13:30 -0500 schrieb Mr. Maxwell .: pkg-config --libs glib-2.0 produces -LD:/vala-0.7.4/lib -lglib-2.0 -lintl When I used that as the link option the linking still failed with the same errors. I tried to create a batch file with this as the contents and it also

Re: [Vala] [Bindings] Few quick questions about glib

2008-09-08 Thread Jens Georg
but %s: %d.printf (Hello, 5) is some weird, weird stuff ! Looks like consequent OOP, bit like smalltalk ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list