Re: [Vala] C# developer, newbie question

2018-12-18 Thread Steven Oliver via vala-list
I used Gtk.Builder + Glade in my application. It might help to see it used in a "real application". https://github.com/steveno/balistica/blob/master/src/BalisticaApplication.vala#L80 Steven N. Oliver On Tue, Dec 18, 2018 at 8:39 AM Al Thomas via vala-list wrote: >>On Tuesday, 18 December

[Vala] Writing objects to files

2018-03-26 Thread Steven Oliver
I want to implement "saving" in my program. The data I want to save is a custom object. Is it possible in vala to simply write the object to disk (in binary I assume) without having to implement a to_string method? It seems like such a simple concept yet i can't seem to figure out how to do it in

Re: [Vala] valadoc Question

2018-03-23 Thread Steven Oliver
Thanks Al! That's what I was looking for. Steven N. Oliver On Fri, Mar 23, 2018 at 3:06 PM, Al Thomas <astav...@yahoo.co.uk> wrote: >> On Friday, 23 March 2018, 19:00:09 GMT, Steven Oliver >> <oliver.ste...@gmail.com> wrote: > >> How do I determine the l

[Vala] valadoc Question

2018-03-23 Thread Steven Oliver
When I encounter pages like this one: https://valadoc.org/gtk+-3.0/Gtk.Entry.set_icon_from_icon_name.html 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 found that page by reviewing the

[Vala] Using databases with Vala

2018-03-08 Thread Steven Oliver
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 appear to be maintained anymore though. Are there other options out

Re: [Vala] Application Menu

2018-01-25 Thread Steven Oliver
Nor Jaidi, Thank you very much for the response! I do have that attribute set as you suggested. Here is my gresources.xml file: https://github.com/steveno/balistica/blob/master/ui/menu.ui And here is where I create the menu using Vala (lines 69 and 117 - 125):

[Vala] Application Menu

2018-01-20 Thread Steven Oliver
I want convert my application to use the Gnome 3 style menu instead of having a menubar. Gnome 3 has been out forever, so it's about time. Anyway, I can't seem to get it to work. Here's what I've got so far. I have this code as a class level variable: private const ActionEntry[] action_entries

Re: [Vala] Gnome Gitlab

2017-12-27 Thread Steven Oliver
Dr. Lauer, While I might ordinarily agree with you, in this case I was referencing Gnome's new instance of Gitlab. https://gitlab.gnome.org/ Steven N. Oliver On Wed, Dec 27, 2017 at 6:18 AM, Dr. Michael Lauer wrote: > My vote would be GitHub. Although non-free, the

Re: [Vala] Seg Fault when using printf function

2017-12-26 Thread Steven Oliver
; El 27/11/2017 1:25 a.m., "Steven Oliver" <oliver.ste...@gmail.com> escribió: >> >> Hello, >> I recently upgraded my OS to Ubuntu 17.10 from 16.04 and I think I've >> discovered a bug in Vala. >> >> This commit is now causing my appl

[Vala] Gnome Gitlab

2017-12-26 Thread Steven Oliver
Will Vala be moving to Gitlab? I think it would make contributing to the project a lot easier! Steven N. Oliver ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Help with pub-sub class

2017-11-01 Thread Steven Oliver
master/src/ BalisticaApplication.vala#L284) Steven N. Oliver On Sat, Oct 28, 2017 at 1:46 PM, Steven Oliver <oliver.ste...@gmail.com> wrote: > With the help of other developers here on the list I managed to get my > logging class setup and working (thanks!). Now, that it's there, though, I >

Re: [Vala] Class vs struct with signal

2017-11-01 Thread Steven Oliver
ets me use my new LogMsg object with my Logger class' signal?? Steven N. Oliver On Sun, Oct 29, 2017 at 8:43 PM, Steven Oliver <oliver.ste...@gmail.com> wrote: > I was using a struct when connecting to my signal, but now I'm using a > class. This code now longer compiles, does anyon

[Vala] Class vs struct with signal

2017-10-29 Thread Steven Oliver
I was using a struct when connecting to my signal, but now I'm using a class. This code now longer compiles, does anyone know what I'm doing wrong? Logging.get_default ().publish.connect ((LogMsg) => { this.log (LogMsg) ; }) ; I get the following error message:

[Vala] Help with pub-sub class

2017-10-28 Thread Steven Oliver
With the help of other developers here on the list I managed to get my logging class setup and working (thanks!). Now, that it's there, though, I want to continue adding to it. The first big thing I want to do is come up with default values for incoming messages (e.g. a default log level of ERROR

Re: [Vala] Help with dialogs

2017-08-23 Thread Steven Oliver
typo > > On August 23, 2017 4:53:48 PM EDT, Steven Oliver <oliver.ste...@gmail.com> > wrote: > >> Hello, >> I've been trying to create a dialog in my application, and it only seems to >> half work for me (at best). >> >> At this point in my code: >

[Vala] Help with dialogs

2017-08-23 Thread Steven Oliver
Hello, I've been trying to create a dialog in my application, and it only seems to half work for me (at best). At this point in my code: https://github.com/steveno/balistica/blob/master/src/DragBox.vala#L153 I attempt to create a new dialog box using a custom glade file. Vala:

[Vala] Best way to handle errors in a GUI application?

2017-06-28 Thread Steven Oliver
After getting some great help after my last post, I have run into another issue I'm not sure how to solve. How do people recommend you handle errors when making a GUI application? I planned on taking the obvious approach of a pop-up message dialog that tells the user what they've done wrong, or

[Vala] (no subject)

2016-04-03 Thread Steven Oliver
When running my program, I get three error messages that all look exactly like this with a different number: (balistica:2718): GLib-GIO-CRITICAL **: g_file_has_prefix: assertion 'G_IS_FILE (file)' failed I have a pretty good idea what's causing the error but I'm more concerned about where

Re: [Vala] [OT] Vala -> C#

2016-03-26 Thread Steven Oliver
If having an IDE is high on your list check out builder. It's support for Vala is getting better every release. They are also really good about taking new contributors.  Thank you, Steven N. Oliver  On Thu, Mar 24, 2016 at 7:49 PM -0700, "Edwin De La Cruz" wrote:

[Vala] Formatting printf output

2016-03-07 Thread Steven Oliver
When converting C code to Vala there are a lot of times I want to convert printf formatting. It doesn't appear to just cleanly convert though. This C for example: sprintf(str, "@b%s", "Name"); sprintf(str,"Example number: %.3f", 31.30233); When try just passing the equivalent formatting to

Re: [Vala] Using TestCase class: assert (this is Object) fails in method, but not in constructor

2016-02-04 Thread Steven Oliver
I'm in the process of implementing the gee test suite into my project. So far so good. The test suite was easy to figure out. So far my biggest problem has been trying to figure out how to setup CMake for it all to work.  Thank you, Steven N. Oliver On Thu, Feb 4, 2016 at 3:07 PM -0800,

Re: [Vala] Testing framework

2016-02-01 Thread Steven Oliver
Hey, I just wanted to drop in and see if any progress had been made on this? I for one am very excited about the possibility.  Thank you, Steven N. Oliver On Fri, Jan 8, 2016 at 2:55 PM -0800, "Chris Daley" wrote: Hi Al, Thanks for the input, this is very

Re: [Vala] Bindings wiki pages, was Re: libserialport binding

2015-06-23 Thread Steven Oliver
: Saturday, 20 June 2015, 13:45 Subject: Re: [Vala] Bindings wiki pages, was Re: libserialport binding That's very nice, indeed. Thanks. On Sat, Jun 20, 2015 at 2:42 PM, Steven Oliver oliver.ste...@gmail.com wrote: I love the bar. We should have put that there along time ago. On Sat, Jun 20, 2015

Re: [Vala] Bindings wiki pages, was Re: libserialport binding

2015-06-20 Thread Steven Oliver
I love the bar. We should have put that there along time ago.  — Sent from Mailbox On Sat, Jun 20, 2015 at 8:23 AM, Al Thomas astav...@yahoo.co.uk wrote: From: Evan Nemerson e...@coeus-group.com Sent: Friday, 19 June 2015, 19:47 Subject: Re: [Vala] libserialport binding On Fri,

[Vala] Debugging Vala w/ CMake

2015-02-05 Thread Steven Oliver
I want to start debugging my Vala code so a simple good turned up some pretty easy directions, the only problem is I can't seem to integrate those directions with CMake. The instructions I found on the Vala webiste actually work very well for the example given [1]. My problem is when combining

Re: [Vala] Problem using Mysql in Vala (Fedora 21): /usr/bin/ld: cannot find -lmysqlclient

2014-12-12 Thread Steven Oliver
This kind of stuff can be a pain. I've found that I sometimes have to update my c_include_path to include the new shared libraries. Something like this: export C_INCLUDE_PATH=/usr/include/libev Steven N. Oliver On Fri, Dec 12, 2014 at 10:41 AM, Tarnyko tarn...@tarnyko.net wrote: Hi AxP, What

Re: [Vala] Problem using Mysql in Vala (Fedora 21): /usr/bin/ld: cannot find -lmysqlclient

2014-12-12 Thread Steven Oliver
Steven N. Oliver On Fri, Dec 12, 2014 at 11:59 AM, AxP der_...@t-online.de wrote: Thanks for the answers! @ Steven Oliver: Am I correct when I say that this solution helps to find missing header files? I think that they are already correctly found and the problem lies with the .so file

Re: [Vala] Using monodevelop for developing VALA?

2014-11-21 Thread Steven Oliver
Marek, do you plan to eventually open source your plugin for IntelliJ? Steven N. Oliver On Fri, Nov 21, 2014 at 9:58 AM, Marek Gibek gib...@gmail.com wrote: Hi! I updated mono vala plugin for MonoDevelop 5. Yannick Inizan created nice PPA for it here:

Re: [Vala] Adding unitary test support to Autovala

2014-11-17 Thread Steven Oliver
I would suggest one test per file. That seems to be the most common use case in my opinion. I also don't see why you couldn't in theory do both. All files in the top directory are one test per file. Anything in a sub directory is treated as all files are compiled to a test. On Mon, Nov 17, 2014

Re: [Vala] backwards compatibility

2014-10-27 Thread Steven Oliver
Luca's answer is obviously the correct one and the one I feel like we have to say to you. With that in mind, though, depending on how complex your code is it's very possible/likely it will still compile with a version of Vala that's quite old. The one program I work on in my spare time, last I

Re: [Vala] A brand new build system

2014-05-16 Thread Steven Oliver
I'd never heard of bake either till now. The only reference I could find to any kind of documentation was here: https://answers.launchpad.net/bake/+faq/2172 Steven N. Oliver On Fri, May 16, 2014 at 12:54 PM, geovanisouz...@gmail.com geovanisouz...@gmail.com wrote: @Rastersoft, Thanks for

Re: [Vala] About method overloading, constructor overloading and extension methods

2014-05-15 Thread Steven Oliver
That is a good question actually. I mean yannick's answer works in this overly-simplified case, but overall, is there a technical reason it doesn't work this way? Steven N. Oliver On Thu, May 15, 2014 at 2:06 PM, geovanisouz...@gmail.com geovanisouz...@gmail.com wrote: Sorry for my mistake.

Re: [Vala] Planet Vala

2014-03-21 Thread Steven Oliver
Yes. I do mine the same way. https://github.com/nemequ/planet-vala/pull/1 Steven N. Oliver On Fri, Mar 21, 2014 at 2:20 PM, Jim Nelson j...@yorba.org wrote: I tag all my Vala blog posts with a vala keyword. Can Planet Vala pull from a particular tag feed? -- Jim On Fri, Mar 21, 2014

Re: [Vala] array memory leak?

2014-03-05 Thread Steven Oliver
What version libgee are you using? — Sent from Mailbox for iPhone On Wed, Mar 5, 2014 at 1:17 PM, Ulink ul...@gmx.at wrote: Consider the following (dummy) functions which shows memory leaks here (valac 0.20.1 on ubuntu saucy 64Bit). It seems the problem exists with Gee.ArrayList too. May

[Vala] Question about some wiki content

2014-01-15 Thread Steven Oliver
I'm looking at https://wiki.gnome.org/Projects/Vala/ReferenceHandling In the section titled Memory management for compact classes with reference counting the custom up function, as expected, increments the reference count. The custom down function though does not. I would think it should. Should

Re: [Vala] Question about some wiki content

2014-01-15 Thread Steven Oliver
/2014 17:50, Steven Oliver wrote: I'm looking at https://wiki.gnome.org/Projects/Vala/ReferenceHandling In the section titled Memory management for compact classes with reference counting the custom up function, as expected, increments the reference count. The custom down function though does

Re: [Vala] Debugging the compiler command generated by valac

2013-12-27 Thread Steven Oliver
Joe,  Valac doesn't generate the compiler command. That along with all the include directories are figured out by the Cmake files in the case of Shotwell. — Sent from Mailbox for iPhone On Thu, Dec 26, 2013 at 11:58 AM, Joe Sapp nixpho...@gmail.com wrote: I'm having an issue with the C

Re: [Vala] VAPI tutorial

2013-12-27 Thread Steven Oliver
There's a short section on VAPIs in the tutorial if I remember correctly. Would probably be helpful to link to this from there if you haven't already.  — Sent from Mailbox for iPhone On Fri, Dec 27, 2013 at 6:43 PM, rastersoft ras...@rastersoft.com wrote: Hi all: I wrote a little VAPI

[Vala] Program doesn't quit

2013-12-03 Thread Steven Oliver
For the past year or so off and on I've been working on a pet project. Between the time spent rewriting various parts of it over and over, and trying to learn Vala/GTK, it's taking me a lot longer than I hoped it would. Anyway, here is my project on Github: https://github.com/steveno/balistica

Re: [Vala] Program doesn't quit

2013-12-03 Thread Steven Oliver
3, 2013 at 2:22 PM, Evan Nemerson e...@coeus-group.com wrote: On Tue, 2013-12-03 at 13:31 -0500, Steven Oliver wrote: For the past year or so off and on I've been working on a pet project. Between the time spent rewriting various parts of it over and over, and trying to learn Vala/GTK, it's

Re: [Vala] Program doesn't quit

2013-12-03 Thread Steven Oliver
of the program. Just be sure to declare the exit method in your file. extern void exit(int exit_code); void quit() { exit(0); } On 12/3/2013 5:24 PM, Steven Oliver wrote: Evan, My apologies for apparently not clearly stating the issue. Here's try number 2: 1) Run the program. 2) Close

Re: [Vala] Bindings for GLESv2 and GLFW3

2013-10-09 Thread Steven Oliver
Have you considered a pull request to this guy: https://github.com/nemequ/vala-extra-vapis Steven N. Oliver On Wed, Oct 9, 2013 at 6:58 AM, Aleksandr Palamar void...@gmail.com wrote: Hi, Vala developers and users. The more I'm trying to use Vala then more I like it. Currently, I'm working

Re: [Vala] Fw: Extra documentation for vapis on Valadoc

2013-09-25 Thread Steven Oliver
...@yahoo.co.uk wrote: From: Steven Oliver oliver.ste...@gmail.com To: vala-list vala-list@gnome.org Sent: Tuesday, 24 September 2013, 19:15 Subject: [Vala] Extra documentation for vapis on Valadoc My question is how did the extra documentation get there? I looked in the Glib-2.0 vapi

[Vala] Extra documentation for vapis on Valadoc

2013-09-24 Thread Steven Oliver
I was looking through Valadoc.org today and came across this entry: http://valadoc.org/#!api=glib-2.0/GLib.Markup.printf_escaped My question is how did the extra documentation get there? I looked in the Glib-2.0 vapi but there's nothing extra there.

Re: [Vala] Emendo text editor

2013-09-23 Thread Steven Oliver
No github or bitbucket? Steven N. Oliver On Mon, Sep 23, 2013 at 2:15 PM, simargl arch...@gmail.com wrote: Hi, Emendo is a simple text editor with syntax highlighting written in Vala, using Gtk+3 and Gtksourceview. If someone is interested source tarball can be found here:

[Vala] [PATCH] [Genie] Add coalescing functionality to Genie

2013-09-10 Thread Steven Oliver
solve the aforementioned bug. Steven N. Oliver From f7dd5161bc35306b2ff8ad12e4d8a5e16f32c773 Mon Sep 17 00:00:00 2001 From: Steven Oliver oliver.ste...@gmail.com Date: Mon, 9 Sep 2013 17:17:22 -0400 Subject: [PATCH] [Genie] Add coalescing function --- vala/valagenieparser.vala| 11

Re: [Vala] Worried about the state of Genie

2013-08-28 Thread Steven Oliver
You're not the first, and sadly, I'm sure, you won't be the last to complain on this list about the state of bugs for Vala. As far as Genie, I don't know what to tell you. Is there a separate mailing list for Genie? I'm not sure i've ever seen a question come across here for it. Is anyone else on

Re: [Vala] Worried about the state of Genie

2013-08-28 Thread Steven Oliver
On Wed, Aug 28, 2013 at 3:15 PM, Al Thomas astav...@yahoo.co.uk wrote: There are certainly significant bugs in Genie. I thing some are listed in Bugzilla for lists and dicts, which are one of the great benefits of using Genie and Vala, rather than C. The other bugs I have found are nested

Re: [Vala] Int64 operations, I'm confused

2013-07-30 Thread Steven Oliver
You've not hit an issue with using lld have you? https://mail.gnome.org/archives/vala-list/2012-May/msg00032.html Steven N. Oliver On Tue, Jul 30, 2013 at 9:44 AM, r...@no-log.org wrote: There is something I do not understand. I try to make a simple operation and here is the result. (...)

Re: [Vala] Little things in Vala design?

2013-06-17 Thread Steven Oliver
What quirks exactly were you talking about? The article read more comparative than anything? Steven N. Oliver On Sun, Jun 16, 2013 at 11:57 PM, Mario Daniel Ruiz Saavedra desideran...@rocketmail.com wrote: Looking at [http://lwn.net/SubscriberLink/553131/f8a66b10c5cbd80f/] i wonder, how

Re: [Vala] Mad question - C to Vala

2013-05-22 Thread Steven Oliver
Interesting idea in this case though. You want a tool to translate (C) to a language (Vala) which in turn just translates it back to its original language (C).  To bad the compiler doesn't have a reverse gear! Ha! — Sent from Mailbox for iPhone On Wed, May 22, 2013 at 11:59 AM, Mario Daniel

Re: [Vala] Vala protocol buffer support

2013-01-10 Thread Steven Oliver
Awesome! Steven N. Oliver On Thu, Jan 10, 2013 at 12:11 AM, Robert Ancell robert.anc...@gmail.comwrote: Hi, I've made a plugin for the protocol buffer compiler to support Vala: http://launchpad.net/protobuf-vala You can read more about it in my blog:

[Vala] Vala Namespace Documentation

2012-11-07 Thread Steven Oliver
I have been complaining a lot to this list lately about the lack of documentation for the Vala namespace in Vala. Well, since this is the open source world, if you don't like you can fix it yourself. While that rarely works for me in this case I tried and I actually succeeded. For anyone who

[Vala] Vala Source Documentation

2012-11-02 Thread Steven Oliver
Is there a reason that the valadoc output for Vala's own code isn't hosted somewhere? Valadoc.org is nice enough, but it's only for code besides Vala itself. It seems reasonable enough that Vala's own documentation would be hosted there too. Perhaps at valadoc.org/vala?? Steven N. Oliver

[Vala] Vala namespace documentation?

2012-10-23 Thread Steven Oliver
I was looking at the Valadate code and I'm getting some compilation errors on functions in the Vala namespace. Where is the documentation for that? The specific file in question is here: http://git.yorba.org/cgit.cgi/valadate/tree/runner/girsuiteinfo.vala Steven N. Oliver

[Vala] Unit Testing in Vala

2012-10-19 Thread Steven Oliver
There are a couple of unit testing frameworks out there for Vala. I know there a multitude of frameworks people have written themselves for themselves that aren't really published as stand alone projects. Given that I'd like to start putting some testing in a project I'm working on and I had a few

Re: [Vala] Unit Testing in Vala

2012-10-19 Thread Steven Oliver
On Fri, Oct 19, 2012 at 6:49 AM, Steven Oliver oliver.ste...@gmail.com wrote: There are a couple of unit testing frameworks out there for Vala. I know there a multitude of frameworks people have written themselves for themselves that aren't really published as stand alone projects. Given

Re: [Vala] Monodevelop

2012-09-17 Thread Steven Oliver
On Sun, Sep 16, 2012 at 6:21 AM, rastersoft ras...@rastersoft.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I've been using Anjuta for a long time for developing with Vala, but now I want to try with Monodevelop. I tested it, and seemed to work fine, except when

Re: [Vala] sqlheavy?

2012-07-02 Thread Steven Oliver
On Mon, Jul 2, 2012 at 2:22 PM, Eric Gregory e...@yorba.org wrote: On Thu, Jun 21, 2012 at 9:44 AM, Jonas Kulla nyocu...@googlemail.com wrote: I assume it's pretty up to date. Sadly that's not the case, which is why we're in the process of removing SQLHeavy from Geary. - Eric Would

Re: [Vala] sqlite3_finalize() ??

2012-06-27 Thread Steven Oliver
On Wed, Jun 27, 2012 at 3:44 PM, Luca Bruno lethalma...@gmail.com wrote: On Wed, Jun 27, 2012 at 8:17 PM, Brian Duffy brdu...@gmail.com wrote: Hi, Is it safe to say that I don't have to worry about calling finalize() on an sqlite3 prepared statement in Vala? I can't find any reference

Re: [Vala] sqlheavy?

2012-06-21 Thread Steven Oliver
I know they Yorba is using it for their new Geary client. Check here: http://git.yorba.org/cgit.cgi/geary/ Steven N. Oliver On Thu, Jun 21, 2012 at 10:00 AM, Brian Duffy brdu...@gmail.com wrote: Hi everyone, I need to use sqlite in my app. Does anyone have any experience using the

Re: [Vala] Using vala, libgda, and waf

2012-06-11 Thread Steven Oliver
On 06/11/2012 04:46 AM, Abderrahim Kitouni wrote: Hi, في ح، 10-06-2012 عند 00:22 -0400 ، كتب Steven Oliver: I have a very very simple pet project I'm writing and I want to integrate some storage in a DB using libgda or GnomeDB (not real sure what it's official name is now

[Vala] Using vala, libgda, and waf

2012-06-09 Thread Steven Oliver
I have a very very simple pet project I'm writing and I want to integrate some storage in a DB using libgda or GnomeDB (not real sure what it's official name is now). I've pasted the basics of the top of my wscript file. I cannot for the life of me figure out how to get waf to recognize

Re: [Vala] Binding problem or ClutterGst problem or my problem?

2012-01-13 Thread Steven Oliver
Surely when they created Vala they saw that coming. Why package VAPIs with Vala to start with? Was it expected you'd retrieve VAPIs manually in situations like this and keep and track yourself, leaving the provided set as (for lack of a better word at the moment) backups? Steven N. Oliver On

Re: [Vala] Genie and extra '\n' in some strings

2012-01-06 Thread Steven Oliver
Since Genie imitates Python perhaps it does it because Python does it in most cases. See this page: http://docs.python.org/reference/simple_stmts.html#print Steven N. Oliver On Fri, Jan 6, 2012 at 8:30 AM, Piotr Borkowski rezy...@gmail.com wrote: Thank you for your reply, Abderrahim. As

Re: [Vala] Vala logo

2012-01-02 Thread Steven Oliver
Second that. A more readable font for VALA would be a plus in my opinion as well. On Jan 2, 2012, at 12:28 PM, Dr. Michael Lauer wrote: I also like version 5, however I think the typography should be reconsidered. While it looks cool and scifi-like, I'd appreciate something more readable.

Re: [Vala] Vala logo

2011-12-31 Thread Steven Oliver
I like the wings. What's the connection to vala though? Sent from my iPhone On Dec 31, 2011, at 8:03 PM, Tobias Bernard berto...@gmail.com wrote: Hi all, It's been a few months since I first proposed to help with a Vala logo and branding. Since on the mailing list there are mostly users