Re: [Vala] Resource API inconsistent

2017-02-05 Thread Al Thomas via vala-list
> - Original Message - > From: Günther Wutz > Sent: Sunday, 5 February 2017, 11:23 > Subject: [Vala] Resource API inconsistent > if i want to lookup resource data via the glib API, i would normally > use g_resources_open_stream. This function call doesn't need a >

Re: [Vala] Resource API inconsistent

2017-02-05 Thread Al Thomas via vala-list
> - Original Message - > From: Günther Wutz > Subject: Re: [Vala] Resource API inconsistent > Works now like a charm! The only bummer, there is no simple Method to > read a resource in as string - have to use a InputStream because > FileUtils doesn't work with

Re: [Vala] Stop Gtk.Spinner?

2017-01-16 Thread Al Thomas via vala-list
- Original Message - > From: "webie...@gmail.com" > Sent: Monday, 16 January 2017, 11:35 > Subject: [Vala] Stop Gtk.Spinner? > how can I stop this widget in Genie when I press a key? You've not fully understood the concept of scope. In your constructor, the line:

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

2017-01-16 Thread Al Thomas via vala-list
- Original Message - > From: Alexandre Oliveira > Sent: Monday, 16 January 2017, 19:27 > Subject: Re: [Vala] How to check if string is empty > I tried this in my method, even replacing 'string' for 'string?', but I > still get the same message in my terminal. >

[Vala] Valadoc.org is fully operational again

2016-11-23 Thread Al Thomas via vala-list
In case anyone hadn't noticed valadoc.org is fully working again. Thanks to Elementary OS [1] who are hosting the site [2]. Development is now being done at https://github.com/valadoc and includes a number of recent updates, including better URIs for bookmarking and external linking. There is

Re: [Vala] Genie Wiki and logo

2017-01-02 Thread Al Thomas via vala-list
> - Original Message - > From: "webie...@gmail.com" > Sent: Monday, 2 January 2017, 17:18 > Subject: Re: [Vala] Genie Wiki and logo > But then, is Genie dead? Is it better to learn Vala and forget Genie? Genie has a smaller user base. If you have a GitHub account

Re: [Vala] xgettext and genie

2016-12-16 Thread Al Thomas via vala-list
> - Original Message - > From: rastersoft > Sent: Friday, 16 December 2016, 20:09 > Subject: [Vala] xgettext and genie > An user asked about using autovala with genie, so I'm working on adding > support for it. Sounds good, thanks. > My question is: how can I

Re: [Vala] Vala++

2017-04-04 Thread Al Thomas via vala-list
> From: Alessandro Pellizzari > Sent: Tuesday, 4 April 2017, 10:27 > Subject: Re: [Vala] Vala++ You seem to over talking Rust and under talking Vala. > Rust, on the other hand, is a general language, that can be used for > many things: CLI apps, OS kernels, C-compatible

Re: [Vala] Vala++

2017-04-04 Thread Al Thomas via vala-list
> From: Alessandro Pellizzari <a...@amiran.it>> Sent: Tuesday, 4 April 2017, > 13:47 > Subject: Re: [Vala] Vala++ > On 04/04/17 13:28, Al Thomas via vala-list wrote: >> You seem to over talking Rust and under talking Vala. > No, I don't. :) > Rust is a hard

Re: [Vala] Gtk.FileChooserButton

2017-04-10 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Monday, 10 April 2017, 18:35 > Subject: [Vala] Gtk.FileChooserButton > In Vala i tried to port it: > public string revupdfolder { get; set; } > [Gtk.Child] private Gtk.FileChooserButton fileChooserRevUpd; > private void

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

2017-04-09 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Sunday, 9 April 2017, 11:02 > Subject: [Vala] cannot locate ITS rules for org.gnome.Publisher.appdata.xml.in > After ./autogen.sh and make i'm getting: > sascha@linux-ktr9:~/Projects/gnome-publisher1/data> make > GEN

[Vala] Writing DLLs, was Re: Starting with Vala

2017-04-04 Thread Al Thomas via vala-list
> From: "r...@no-log.org" > Cc: vala-list > Sent: Tuesday, 4 April 2017, 8:41 > Subject: Re: [Vala] Starting with Vala > You could take a look to "check_fs" which is better and my lastest > "graph_map". I really like what you have done here: [CCode

Re: [Vala] Writing binding for non-GLib library using FILE *

2017-04-05 Thread Al Thomas via vala-list
> From: Gergely Polonkai > Sent: Wednesday, 5 April 2017, 16:20 > Subject: [Vala] Writing binding for non-GLib library using FILE * > I’m trying to create a binding for libjwt, and one of its functions use > FILE * pointer to save a JWT token to a file. Reading [2] makes me

Re: [Vala] Compact class with an unusual (in GLib terms) constructor

2017-04-05 Thread Al Thomas via vala-list
> From: Gergely Polonkai > Sent: Wednesday, 5 April 2017, 16:39 > Subject: [Vala] Compact class with an unusual (in GLib terms) constructor > libjwt[1] has a strange constructor in GLib terms: > int jwt_new(jwt_t **jwt); > It returns 0 on success (like many C functions) or

Re: [Vala] Handling strings

2017-04-19 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Wednesday, 19 April 2017, 15:10 > Subject: Re: [Vala] Handling strings > I tried it out: > private string _filename; > private string _path; > private string entity_file_suffix = ".ent"; > private string entity_file_local =

Re: [Vala] Gschema: failed to parse value

2017-04-19 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Wednesday, 19 April 2017, 20:35 > Subject: Re: [Vala] Gschema: failed to parse value > i have looked in other projects on git, and found out, that a empty > default element is available by using double quotes. Hmmm, this has caught out

Re: [Vala] Use defined pathes inside a method

2017-04-20 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Thursday, 20 April 2017, 16:08 > Subject: [Vala] Use defined pathes inside a method > i have defined some stuff in my Defines class [1]. > What is a good way to use the contents of the properties inside a mathod > or class? I would create

Re: [Vala] Handling strings

2017-04-19 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Wednesday, 19 April 2017, 13:42 > Subject: Re: [Vala] Handling strings > I tried it out in that way: > // Constants used by create_publication_core > private string _filename; > private string _path; > private const string

Re: [Vala] Handling strings

2017-04-19 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Wednesday, 19 April 2017, 12:43 > Subject: [Vala] Handling strings > I'm getting the information that the access to instance member is denied. > How can i concat strings in Vala? Concatenation of variables is done at run time, so you

Re: [Vala] Call to arms for an OpenSSL binding!

2017-04-23 Thread Al Thomas via vala-list
> From: "guillaumepoiriermore...@gmail.com" > Sent: Sunday, 23 April 2017, 20:22 > Subject: [Vala] Call to arms for an OpenSSL binding! > I am working on merging all existing bindings for OpenSSL > If you have anything, please consider sharing it so that I can

Re: [Vala] Errors trying to re-generate poppler-glib.vapi

2017-03-09 Thread Al Thomas via vala-list
> - Original Message - > From: Francesco Poli > Sent: Wednesday, 8 March 2017, 23:07 > Subject: [Vala] Errors trying to re-generate poppler-glib.vapi > I am trying to re-generate poppler-glib.vapi from Poppler-0.18.gir with the > following command-line: >

Re: [Vala] Gtk.ProgressBar

2017-03-12 Thread Al Thomas via vala-list
> - Original Message - > From: "webie...@gmail.com" > Sent: Saturday, 11 March 2017, 18:55 > Subject: [Vala] Gtk.ProgressBar > I explain: From a FileChooserDialog is selected and opens the vCard > file, and if it is too large it takes a while to analyze and import

Re: [Vala] Button not visible

2017-04-05 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Wednesday, 5 April 2017, 11:57 > Subject: Re: [Vala] Button not visible > To work with signals i like to use *.clicked.connect. So i tried > box_pack_start (Gtk.Button revision = new Gtk.Button.with_label ("Add > new Revision")); Now you

Re: [Vala] Vala on OpenIndiana Updated

2017-08-16 Thread Al Thomas via vala-list
> On Wednesday, August 16, 2017, 4:58:59 PM GMT+1, Jason Martin > wrote: > Maybe a good vala example (someone more qualified than me) of trapping > signals would be handy? This is an example of handling some signals, but not an example for SIGSEGV. The documentation for

Re: [Vala] Potential Vala build system change (switch to Meson)

2017-08-17 Thread Al Thomas via vala-list
> On Thursday, August 17, 2017, 9:34:13 PM GMT+1, Dmitry Golovin > wrote: > As far as I know, Meson support building Vala code and it should not be too > difficult to change > the build system to Meson. Anyone working on it > already? Is there a bug open for build system >

Re: [Vala] Null Coalescing Assignment Operator

2017-05-28 Thread Al Thomas via vala-list
> From: Guillaume Poirier-Morency > Sent: Sunday, 28 May 2017, 16:59 > Subject: Re: [Vala] Null Coalescing Assignment Operator > Le dimanche 28 mai 2017 à 10:20 +0200, Ulink a écrit : > > > thing = thing ? create (); > > > > I think you meant > > > >

Re: [Vala] Use defined pathes inside a method

2017-05-06 Thread Al Thomas via vala-list
> From: Sascha Manns > Sent: Wednesday, 3 May 2017, 16:00 > Subject: Re: [Vala] Use defined pathes inside a method > > interface and not the whole configuration object. > I prepared that config.vala [1]. > can't used because of it itn't instancable. But how can i work

Re: [Vala] New Graphviz code (libgvc)

2017-10-08 Thread Al Thomas via vala-list
> On Sunday, 8 October 2017, 20:12:11 BST, Guido Trentalancia > wrote: > I have noticed that vala version 0.38 has added code that depends on> the > Graphviz software package (libgvc dependency). > would it be possible to make such support optional by a new option for

Re: [Vala] default value is less accessible than method

2017-10-10 Thread Al Thomas via vala-list
> On Tuesday, 10 October 2017, 20:11:15 BST, Ondrej Tuma > wrote: > I have simple code (in attachment), when I try to compile, i got error: > GLib.Object.vala:15.39-15.52: > error: default value is less accessible than method `Node.add' >     public Node add (uint

Re: [Vala] New test framework updates.

2017-10-15 Thread Al Thomas via vala-list
> On Sunday, 15 October 2017, 00:46:23 BST, Jason Martin > wrote: > It looks like the first echo -n problem is on line 222 in testrunner.sh > if $VALAC $VALAFLAGS -o test$EXEEXT $([ -z "$PACKAGES" ] || echo $PACKAGES > | xargs -n 1 echo -n " --pkg") main.vala &>log; then >

Re: [Vala] Newbie help needed for Vala delegates/lambda expressions

2017-08-30 Thread Al Thomas via vala-list
> From: Manish Jain > Sent: Wednesday, August 30, 2017, 10:31:00 AM GMT+1 > Subject: [Vala] Newbie help needed for Vala delegates/lambda expressions > After programming for a long time with C/C++, I am trying to get > comfortable with Vala for my GUI programming.

Re: [Vala] Not Existing CCodeBaseModule in Vala context

2017-08-30 Thread Al Thomas via vala-list
> From: Sébastien Granjoux > Sent: Wednesday, August 30, 2017, 8:55:04 PM GMT+1 > Subject: [Vala] Not Existing CCodeBaseModule in Vala context > With vala 0.38, I get the error: >     error: The name `CCodeBaseModule' does not exist in the context of `Vala' > on the following

Re: [Vala] Introspection for exception instances

2017-11-13 Thread Al Thomas via vala-list
> On Monday, 13 November 2017, 14:25:04 GMT, Michael Gratton > wrote: > For example, given an instance of a > IOError.CANCELLABLE, I'd like to be able to come up with a string > representation of it as "IOError.CANCELLABLE". At the moment the best I > can get is the quark and

Re: [Vala] Introspection for exception instances

2017-11-13 Thread Al Thomas via vala-list
> On Monday, 13 November 2017, 14:36:17 GMT, Michael Gratton > wrote: > PS: Has anyone used the glib backgrace_symbols() function[0] to > generate a stack trace in Vala? I haven't, but take a look at:https://github.com/PerfectCarl/vala-stacktrace That appears to make use

Re: [Vala] Introspection for exception instances

2017-11-13 Thread Al Thomas via vala-list
> On Monday, 13 November 2017, 14:36:17 GMT, Michael Gratton > wrote: > PS: Has anyone used the glib backgrace_symbols() function[0] to > generate a stack trace in Vala? I haven't, but take a look at:https://github.com/PerfectCarl/vala-stacktrace That appears to make use of:

Re: [Vala] testrunner.sh on OpenIndiana

2017-11-07 Thread Al Thomas via vala-list
> On Wednesday, 1 November 2017, 19:48:37 GMT, Jason Martin > wrote: > All but three pass now. My patch below. Comments might help someone. > ERROR:/export/home/agrellum/vala-0.36.6/tests/_test/main.c:111:control_flow_bug736774_2_main: > assertion failed: (keep != "test")

Re: [Vala] testrunner.sh on OpenIndiana

2017-11-08 Thread Al Thomas via vala-list
> On Wednesday, 8 November 2017, 20:23:24 GMT, Jason Martin > wrote: > ERROR:/export/home/agrellum/oi-userland/components/developer/vala/build/i86/tests/_test/main.c:111:control_flow_bug736774_2_main: > assertion failed: (keep != "test") > Maybe real OpenIndiana or Vala

Re: [Vala] GIO run as root Fail

2017-10-24 Thread Al Thomas via vala-list
On Tuesday, 24 October 2017, 16:08:09 BST, Edwin De La Cruz wrote: > It was definitely not possible to run as root. I had to run as a user > and it works as expected. > Thanks to everyone for your replies. GIO is using GVFS and the FUSE daemon. The FUSE daemon is

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

2018-05-01 Thread Al Thomas via vala-list
> On Tuesday, 1 May 2018, 17:49:09 BST, rastersoft wrote: > 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 '' > never used" warning. > How can I avoid those warnings? Do you

Re: [Vala] error in GLib.DataInputStream

2018-01-06 Thread Al Thomas via vala-list
> On Saturday, 6 January 2018, 11:24:01 GMT, Michele Dionisio > wrote: > but this is not true, infact in documentation of glib method > g_data_input_stream_read_line () > we have > error                      GError for error reporting. GError is the mechanism in C

Re: [Vala] Package `Gee-0.8' not found

2018-01-25 Thread Al Thomas via vala-list
> On Thursday, 25 January 2018, 16:41:31 GMT, Ralf Ganswindt wrote: > I'm experimenting with Vala and so far I like how it works. However, I > tried to compile a basic gee example from the sample programs and I get the > following: > $ valac --pkg Gee-0.8

Re: [Vala] compiler warning for Variant.strv()

2018-01-25 Thread Al Thomas via vala-list
> On Thursday, 25 January 2018, 10:32:07 GMT, Yasushi SHOJI wrote: > void main () { >         Variant ary = new Variant.strv({"foo", "bar", "baz"}); > } > In file included from /usr/include/glib-2.0/glib/gmessages.h:35:0, >                 from

Re: [Vala] compiler warning for Variant.strv()

2018-01-25 Thread Al Thomas via vala-list
> On Thursday, 25 January 2018, 11:19:44 GMT, Abderrahim Kitouni > wrote: > You can try to use the latest development version of Vala. Most of those > warnings should go away. Unfortunately that isn't fixed in this case. The g_variant_new_strv has a C type signature for

Re: [Vala] Newbie help requested for scrolling a TextView

2018-01-25 Thread Al Thomas via vala-list
> On Thursday, 25 January 2018, 11:37:49 GMT, Manish Jain wrote: > I was filling up the view> with text += . And I think Vala> removes the trailing newline, so essentially my buffer always had> just one line! By using += with the text property of the buffer you are

Re: [Vala] Newbie help requested for scrolling a TextView

2018-01-25 Thread Al Thomas via vala-list
> On Thursday, 25 January 2018, 01:00:05 GMT, Manish Jain wrote: > Despite a lot of effort to write an event handler, I still cannot get > the > scale to tell the view to scroll. I have tried scrolling with the > scroll_to_iter() method, but the iterator always

Re: [Vala] compiler warning for Variant.strv()

2018-01-25 Thread Al Thomas via vala-list
> On Thursday, 25 January 2018, 10:32:07 GMT, Yasushi SHOJI wrote: > void main () { >         Variant ary = new Variant.strv({"foo", "bar", "baz"}); > } > /usr/include/glib-2.0/glib/gvariant.h:118:33: note: expected ‘const > gchar * const* {aka const char *

Re: [Vala] FreeBSD - vala/GTK3 - Seat & FileChooserNative types not found

2018-01-24 Thread Al Thomas via vala-list
> On Saturday, 23 December 2017, 09:33:52 GMT, Philip Brown wrote: > Thank you! That is a great explanation. FreeBSD's latest release for > vala is only at vala-0.30. I will have to see what I can do about > updating to a minimum of vala-0.32. If you hadn't

Re: [Vala] What is the internal access specification (Re: A couple of Vala questions)

2018-01-29 Thread Al Thomas via vala-list
> On Monday, 29 January 2018, 07:26:22 GMT, Manish Jain wrote: > Does 'internal' hook into the Vala package system, meaning internal > members > cannot be accessed from a different package ? A simple library like: [CCode (gir_namespace = "libexample", gir_version

[Vala] gtk+-3.0 bindings - big change little end user impact (hopefully)

2017-12-22 Thread Al Thomas via vala-list
Hello Fellow Vala Fans, A long standing change to generate the GTK+ 3 bindings from GIR, instead of usingthe older GIDL method, has now gone into Vala mainline: https://git.gnome.org/browse/vala/commit/?id=a8e6aff63e5e1502290ba93398314acf2ad45b60 This enables better bindings to be generated more

Re: [Vala] FreeBSD - vala/GTK3 - Seat & FileChooserNative types not found

2017-12-22 Thread Al Thomas via vala-list
> On Friday, 22 December 2017, 16:17:53 GMT, philip is hungry via vala-list > wrote: > I am trying to compile a vala program on FreeBSD From the file paths it looks like you are trying to compile Dino on FreeBSD: https://github.com/dino/dino > Running "make" I encounter

Re: [Vala] i18n help

2017-12-22 Thread Al Thomas via vala-list
> On Friday, 22 December 2017, 18:10:37 GMT, Dr. Michael J. Chudobiak > wrote: > I'm having trouble with i18n. The _("") macros in my program work, but > the N_("") ones (for initializing string arrays) don't. Any pointers on > what the issue could be? > This is the

Re: [Vala] Vala book done (it's been only 10 years…)

2018-07-31 Thread Al Thomas via vala-list
> On Tuesday, 19 June 2018, 08:36:19 BST, Dr. Michael Lauer wrote: > I don’t know whether you remember me talking about writing an beginner's book > to get more people > on the Vala train – after all, it’s been 10 years ago. > The recent activity boost in this community motivated me to

[Vala] Feedback needed on quirky warning/error messages from libvala

2018-08-03 Thread Al Thomas via vala-list
Hi All, With the development of language servers [1] for Vala and the possibility of warning/error messages going beyond English [2] it would be helpful to get examples of warnings/errors that aren't clear enough. If you have a code example and associated message please create an issue [3] or

Re: [Vala] Confusing issue with static struct method: too many arguments to function

2018-01-22 Thread Al Thomas via vala-list
> On Monday, 22 January 2018, 22:00:19 GMT, Michael Murphy wrote: > I have the following which is automatically generated by bindgen. Would that be vala-gen-introspect ? That's a bit of an old tool. I'm not sure how well it fares, butmay be a good starting point for

Re: [Vala] GLib.assert_no_error not working?

2018-03-08 Thread Al Thomas via vala-list
> On Thursday, 8 March 2018, 00:14:12 GMT, Michael Gratton wrote: > GLib.assert_no_error doesn't seem to do anything that its API docs > advertises for me - doesn't asset, doesn't pretty print the error > message. > See the attached minimal test case, per the comments I'd

Re: [Vala] Legacy Bindings: "Inject" & operator?

2018-03-01 Thread Al Thomas via vala-list
> On Thursday, 1 March 2018, 07:55:19 GMT, Dr. Michael Lauer wrote: > I pondered whether it would be helpful to add a to_string() method to make > this a bit more convenient. Yes, to my mind to_string() should be used more in bindings. It makes it much easier to use

Re: [Vala] GLib.assert_no_error not working?

2018-03-09 Thread Al Thomas via vala-list
> On Friday, 9 March 2018, 00:17:30 GMT, Michael Gratton wrote: >> On Thu, Mar 8, 2018 at 9:26 PM, Al Thomas wrote: >> The assertion is in a catch block so err will be set. Whereas >> assert_no_error >> is used to check err is unset (i.e. null). The

Re: [Vala] Date format

2018-03-28 Thread Al Thomas via vala-list
> On Wednesday, 28 March 2018, 11:15:48 BST, rastersoft wrote: >> Pass "%x" for the format string. > I used that, but the year is printed with only two digits... Also, what > I really want is the date in the format "March 5, 2018", not "03/05/18", > but it seems that

Re: [Vala] Date format

2018-03-28 Thread Al Thomas via vala-list
On Wednesday, 28 March 2018, 11:50:33 BST, rastersoft wrote: > Yes, but the problem is that, in Spain, we use the opposite format: we write first the day's number, > then the month's name, and finally the year, so I need to know if in my current locale I have > to "%B

Re: [Vala] vala-list Digest, Vol 124, Issue 13

2018-03-28 Thread Al Thomas via vala-list
> On Wednesday, 28 March 2018, 18:03:44 BST, Fernando Silva wrote: > I bet this could be decided based on locale with gettext Now, there's a challenge :) Gettext is very good with plurals (https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html).I

Re: [Vala] Graphing with libdazzle

2018-03-29 Thread Al Thomas via vala-list
> On Thursday, 29 March 2018, 19:47:42 BST, Steven Oliver wrote: > Has anyone on here ever used libdazzle [1]?...> There is documentation > for it on valadoc [3] but, sadly, as is typical for valadoc, it's a > lot of function and property listings with no

Re: [Vala] valadoc Question

2018-03-23 Thread Al Thomas via vala-list
> On Friday, 23 March 2018, 19:00:09 GMT, Steven Oliver wrote: > How do I determine the list of icon names I can pick from? For > whatever reason valadoc doesn't list them. Is there somewhere else I > can look for the list? I think what you want is the

Re: [Vala] Newbie need help

2018-10-08 Thread Al Thomas via vala-list
> On Monday, 8 October 2018, 00:41:45 BST, wolfgang.ma...@kabelmail.de wrote: > In file included from /usr/include/webkitgtk-4.0/webkit2/webkit2.h:54:0,/usr/include/webkitgtk-4.0/webkit2 >                 from >

Re: [Vala] Newbie need help

2018-10-23 Thread Al Thomas via vala-list
> On Tuesday, 23 October 2018, 08:51:22 BST, wolfgang.ma...@kabelmail.de wrote: > what is the difference between valac and vala? (Compiler / Interpreter) > valac -> compiler(ok) > vala -> interpreter what/how/usage valac is the compiler. The command, vala, combines compiling with valac

Re: [Vala] printf question

2018-10-09 Thread Al Thomas via vala-list
> On Tuesday, 9 October 2018, 16:16:44 BST, wolfgang.ma...@kabelmail.de wrote: > Is this a Bug? > cellRendererText.text = ("%"+int64.FORMAT).printf((int64)obj); << > int64.FORMAT = "li" > this works, but when i try this, witch is the same > cellRendererText.text =

Re: [Vala] Newbie need help

2018-10-02 Thread Al Thomas via vala-list
> On Tuesday, 2 October 2018, 19:10:29 BST, wolfgang.ma...@kabelmail.de wrote: > So thank's a lot for help, but back to monodevelop ... > Wolfgang > PS. Maybe the vala-team should think about it The 'vala-team' is anyone using Vala. It is a community driven open source project.

Re: [Vala] Newbie need help

2018-09-30 Thread Al Thomas via vala-list
> On Sunday, 30 September 2018, 22:57:23 BST, Wolfgang Mauer wrote: > Does that mean that vala-dvelopers must use command-line tools? (Back to the> > 80's ;-)) > Please give me a hand if there are some useful IDE's. If you want to develop for the Linux platform then use GNOME Builder. It

Re: [Vala] any latest vala binary for windows?

2018-09-19 Thread Al Thomas via vala-list
> On Thursday, 20 September 2018, 00:45:51 BST, oyster via vala-list wrote: > I give up building from source. So is there any binary vala for > windows? On MSYS2, there is an old mingw-w64-x86_64-vala-0.38.4-1 It looks like 0.42.0 is there:

Re: [Vala] any latest vala binary for windows?

2018-09-20 Thread Al Thomas via vala-list
> On Thursday, 20 September 2018, 01:40:27 BST, oyster via vala-list wrote: > It installs mingw-w64-x86_64-vala-0.38.4-1 first, which happens do not work on my > MSYS2(no matter I input `valac`, `valac --help`, `valac test.vala`, > there is no message displays;  `valac test.vala` does not

Re: [Vala] Any tips for newbies

2018-09-19 Thread Al Thomas via vala-list
Hi, > On Wednesday, 19 September 2018, 09:57:22 BST, Robin Wils via vala-list > wrote: > I am working on a [small simple > project](https://gitlab.com/RobinWils/BAG-art-creator/tree/master) and have a > feeling that > the GNOME Vala website only contains some basics. > I use a grid which I

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
> On Tuesday, 18 December 2018, 09:27:06 GMT, Wolfgang Mauer wrote: > In vala tried Gtk.Builder "extend_with_template". > If i try this in vala with > [GtkChild] private Box mainBox; > i get the error "error: [GtkChild] is only allowed in classes with a [GtkTemplate] attribute" > Is

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
> On Tuesday, 18 December 2018, 14:44:30 GMT, Wolfgang Mauer wrote: > So i have to make the "new StatusList" !? Not sure if it's the only way, but the following project uses in the UI filethen instantiates the widget in the constructor of the main window and adds it to that window. These

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
>On Tuesday, 18 December 2018, 13:34:17 GMT, Wolfgang Mauer wrote: > Is there a way to have a GtkTemplate inside a GtkTemplate ? It sounds like you are trying to use a widget contained within another widget? I would try that in the GtkBuilder file. So the second widget is references as a

Re: [Vala] C# developer, newbie question

2018-12-18 Thread Al Thomas via vala-list
> On Tuesday, 18 December 2018, 14:44:30 GMT, Wolfgang Mauer wrote: > So i have to make the "new StatusList" !? > But how the glade-file "mainpaned" should look like??? Just remove the > StatusList ? OK, to instantiate it I think it needs to be a GtkChild. What error are you

Re: [Vala] Why is 77 greater than 4294967295?

2018-11-23 Thread Al Thomas via vala-list
> On Friday, 23 November 2018, 06:15:37 GMT, Heiher wrote: >Wow! Why the comparison behavior of a signed long with an unsigned int >isn't same as C/C++ in Vala? > if (i > uint.MAX)  => if (_tmp6_ > (G_MAXUINT)) If you wish to look in to this further then I understand Vala follows the

Re: [Vala] bad configure for MSYS2 + MingW 64 on Win7 64 bits

2018-09-19 Thread Al Thomas via vala-list
> On Wednesday, 19 September 2018, 09:55:46 BST, oyster via vala-list wrote: > bad configure for MSYS2 + MingW 64 on Win7 64 bits > On my MSYS2 + MingW 64, there exists actually /bin/pkg-config.exe, but > the configure tries to find /bin/pkg-config.sh > it will fail without doubt. >

Re: [Vala] Any tips for newbies

2018-09-19 Thread Al Thomas via vala-list
> On Wednesday, 19 September 2018, 09:57:22 BST, Robin Wils via vala-list wrote: > I am working on a [small simple project](https://gitlab.com/RobinWils/BAG-art-creator/tree/master) and have a feeling that the GNOME Vala > website only contains some basics. One of my issues is that I

Re: [Vala] Newbie question (using directive)

2019-02-20 Thread Al Thomas via vala-list
> On Wednesday, 20 February 2019, 13:16:38 GMT, Wolfgang Mauer wrote: >> The same would happen in C# if you had two >> classes/interfaces/whatever with the same name but defined in distinct >> namespaces. > Sorry, but you are wrong!!! > The "Application" is ONLY resolved by the "using

Re: [Vala] Newbie question (using directive)

2019-02-20 Thread Al Thomas via vala-list
ired and then an issue to be opened at gitlab.gnome.org Am 20.02.19 um 14:20 schrieb Al Thomas via vala-list: >    > On Wednesday, 20 February 2019, 13:16:38 GMT, Wolfgang Mauer > wrote:  >> The same would happen in C# if you >had two >>> classes/interfaces/wh

Re: [Vala] introduce valaDevelop

2019-02-22 Thread Al Thomas via vala-list
The screenshots make this look a nice tool. Good to see Vala getting some new tooling. > On Friday, 22 February 2019, 16:00:13 GMT, Wolfgang Mauer > wrote: > The IDE is Freeware! At now there is no plan to make it OpenSource. > I have to make something clear: > ...I[t] should be and stay

Re: [Vala] multithreading -> weird behaviour on win(msys) and macOS

2019-03-14 Thread Al Thomas via vala-list
> On Wednesday, 13 March 2019, 00:10:30 GMT, Wolfgang Mauer wrote: > Tried this, run perfect on linux, runs "better" on win Are you being sarcastic here? I've read through the rest of your mail and you aregetting a cc exited error. You're not running the program, the program fails to

Re: [Vala] multithreading -> weird behaviour on win(msys) and macOS

2019-03-14 Thread Al Thomas via vala-list
> On Thursday, 14 March 2019, 05:59:16 GMT, Wolfgang Mauer wrote: > So please give me a hand.. Is this a vala or GLib problem? > >As far as the bug goes it >is:https://gitlab.gnome.org/GNOME/vala/issues/664 > >https://gitlab.gnome.org/GNOME/glib/issues/1512 Looking over the report again I

Re: [Vala] multithreading -> weird behaviour on win(msys) and macOS

2019-03-12 Thread Al Thomas via vala-list
> On Tuesday, 12 March 2019, 15:48:59 GMT, Wolfgang Mauer wrote: > With Linux everything works like expected with no errors/warnings but on > Windows(10/MSYS64) and macOS it get lots of errors. > (valaDevelop.exe:2980): Gtk-CRITICAL **: 16:33:50.460: > gtk_text_view_get_buffer:

Re: [Vala] multithreading -> weird behaviour on win(msys) and macOS

2019-03-12 Thread Al Thomas via vala-list
> On Tuesday, 12 March 2019, 22:03:28 GMT, Wolfgang Mauer wrote: > Well i found the "problem", it wasn't my code but i tried the example > from the valadoc > "https://valadoc.org/glib-2.0/GLib.Process.spawn_async_with_pipes.html; > Just let it compile himself >    string[] spawn_args

Re: [Vala] multithreading -> weird behaviour on win(msys)[SOLVED] and macOS

2019-03-14 Thread Al Thomas via vala-list
> On Thursday, 14 March 2019, 22:13:25 GMT, Wolfgang Mauer wrote: > I am now very cautious and claim that part of my problem is partly due > to valac (imho a valac bug) > ALL the path coming from File.get_path(), on windows should be > C:\bla\bla but the valac don't like it (proof

Re: [Vala] multithreading -> weird behaviour on win(msys) and macOS

2019-03-12 Thread Al Thomas via vala-list
> On Tuesday, 12 March 2019, 22:40:17 GMT, Wolfgang Mauer > wrote: > Are there any sample using "GLib.Subprocess" with async > stdin/stdout/stderr ? See https://stackoverflow.com/a/54391519 That one splices the output from one command to the input of another. So a bit more than you

Re: [Vala] Meson sets odd destination folder for Vala

2019-02-10 Thread Al Thomas via vala-list
> On Sunday, 10 February 2019, 11:26:21 GMT, rastersoft > wrote: > 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

Re: [Vala] Confusing closure behavior

2019-04-08 Thread Al Thomas via vala-list
> On Monday, 8 April 2019, 23:01:05 BST, Vivien Kraus wrote: > I have come across this weird closure thing.  In other programming > languages, I would expect the closure in t to have a copy of i, but it > only has a reference.  Is it expected? That's an interesting question! If you want a

Re: [Vala] ThreadPool

2019-04-14 Thread Al Thomas via vala-list
> On Sunday, 14 April 2019, 14:44:46 BST, Wolfgang Mauer wrote: > is it possible to remove all "unprocessed" Threads in a ThreadPool? > Practically I would like to remove all "pending/unprocessed" thread in > the pool before I add a new one. You could use the ThreadPool's move_to_front

Re: [Vala] valaDevelop

2019-05-10 Thread Al Thomas via vala-list
> On Friday, 10 May 2019, 12:28:26 BST, Wolfgang Mauer wrote: > due to low interest/feedback I will give up the development of > valaDevelop and dedicate myself to mono/C# again... For anyone thinking of developing a project this has been a valuablecase study in the advantages of

Re: [Vala] Interpreting exit status

2019-05-05 Thread Al Thomas via vala-list
> 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_async, and use g_child_add_watch() to receive the > exit status valueBut waitpid documentation is not > very clear... Can I assume that the value

Re: [Vala] Confusing closure behavior

2019-04-09 Thread Al Thomas via vala-list
> On Tuesday, 9 April 2019, 07:25:43 GMT+1, Vivien Kraus wrote: > Digging a little deeper, I have some more confusion.  This makes the > for-loop and the foreach-loop behave differently.  What do you think of: The scope for i is main () and the for loop will finish when i is 1, The

Re: [Vala] 回复: 回复: About VAPI's instance position

2020-02-23 Thread Al Thomas via vala-list
> On Sunday, 23 February 2020, 10:32:48 GMT, 放下 via vala-list > wrote: > 1. crashed at RSA_public_encrypt() on msys2 on windows 7 > #8 0x67e4fb2f in libcrypto-1_1-x64!BN_clear_free () > #9 0x67e474ce in libcrypto-1_1-x64!BN_CTX_free () > #10 0x67f618d8 in

Re: [Vala] link to Genie Doc

2020-02-03 Thread Al Thomas via vala-list
> On Monday, 3 February 2020, 17:23:22 GMT, webierta--- via vala-list wrote: > Hello, I want to communicate that the Genie Doc wiki on programming with > Genie (in Spanish) has changed servers and is now available at> > https://geniedoc.blogspot.com Thanks for keeping that tutorial on

Re: [Vala] About VAPI's instance position

2020-02-22 Thread Al Thomas via vala-list
> On Saturday, 22 February 2020, 07:58:10 GMT, 放下 via vala-list > wrote: > if set the instance_pos as 2.1, the code can compile and will crashed at > function public_encrypt / private_decrypt, 2.1 sounds about right. That may not be the cause of the crash. The documentation is helpful:

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

2020-01-12 Thread Al Thomas via vala-list
> On Monday, 16 December 2019, 18:01:57 GMT, giacomo alberini via vala-list wrote: > My question is: is this the place in which the development of the language > and ecosystem takes place? If not, where should I ask questions or in > general get support for the project? These are good

Re: [Vala] Help with manual binding vapi for old C lib that uses only ASCII.

2020-01-12 Thread Al Thomas via vala-list
> On Saturday, 11 January 2020, 01:59:00 GMT, Jason Martin via vala-list wrote: > Does [CCode (type = "char*")] limit string to ascii only? char declares the type so the compiler knows the size of the memory. On POSIX (Unix) and most other platforms that is 8 bits. The * indicates the

Re: [Vala] Compiling a shared library with entry point

2020-05-11 Thread Al Thomas via vala-list
> On Monday, 11 May 2020, 06:02:32 BST, Rasmus René Bronné Lindegaard via > vala-list wrote: > I'm currently working on a project where it would be extremely useful if I > could execute the shared library I'm compiling. > I know it can be done with C, so it should be doable with Vala. I