[Vala] Vala app crashing in vprintf on 32-bit arches, not on 64-bit arches

2016-06-16 Thread Michael Gratton
nome.org/show_bug.cgi?id=745165>, best stack trace we have at the moment is here: <https://bug758621.bugzilla-attachments.gnome.org/attachment.cgi?id=329846> Thanks, //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___

Re: [Vala] Vala app crashing in vprintf on 32-bit arches, not on 64-bit arches

2016-06-19 Thread Michael Gratton
On Fri, Jun 17, 2016 at 7:55 AM, Michael Gratton wrote: Geary is suffering a bug which is causing it to frequently crash on 32-bit installations, in a place where it doesn't crash on a 64-bit install. The crash occurs in vprintf, during a call to GLib.debug() from an async method. So it

[Vala] How to override a "class closure for a signal"?

2016-07-28 Thread Michael Gratton
ld(Gtk.Widget? child) { ... } But then valac complains that it "hides inherited signal" in the first case and "Only virtual signals can have a default signal handler body" for both. Any hints? Thanks! //Mike -- ⊨ Michael Gratton,

Re: [Vala] How to override a "class closure for a signal"?

2016-07-28 Thread Michael Gratton
right one. I'll keep on digging. So is GObject polymorphism is actually implemented using signals? I thought the chaining foo_class structs that happens would have been good enough? //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> __

[Vala] Manipulating HTML tag soup in Vala

2016-08-01 Thread Michael Gratton
that I have missed? Has anyone else had parse tag soup in Vala? Ta! //Mike [0] - <https://en.wikipedia.org/wiki/StAX> -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Manipulating HTML tag soup in Vala

2016-08-01 Thread Michael Gratton
. It may all may be possible, but it seems like just parsing and manipulating the markup before shipping it off to WebKit seems like it might be more robust and less work. I'll check with the WebKitGTK guys though. Cheers, //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <h

[Vala] refcounting, signals and closures

2016-08-10 Thread Michael Gratton
onnected in an overridden version of destroy(), since they should be disconnected when the object is finalised, by the GObject finaliser. So, to get to the point, would either of these these hold references to `this` that prevent it from being finalised? Ta! //Mike -- ⊨ Michael Gratton, Pe

Re: [Vala] Gtk.TreeView + Cellrender + text different colors ???

2016-08-10 Thread Michael Gratton
text, color); HTH, //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Gtk.TreeView + Cellrender + text different colors ???

2016-08-10 Thread Michael Gratton
nd two model columns: insert_column_with_attributes(-1, "Content", new Gtk.CellRendererText(), "text", 1, "foreground", 2, null); //Mike -- ⊨ Michael

Re: [Vala] refcounting, signals and closures

2016-08-11 Thread Michael Gratton
will help because I don't know the address of the widget instances in advance - I assume that everything that holds a ref to it will have it already soon after it is constructed and added to the UI. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http:/

Re: [Vala] Gtk.TreeView + Cellrender + text different colors ???

2016-08-11 Thread Michael Gratton
been using a TreeView for a while. I'm glad you got it working! :) -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] refcounting, signals and closures

2016-08-18 Thread Michael Gratton
On Thu, Aug 11, 2016 at 12:10 PM, Michael Gratton wrote: I'm trying to track down a memory leak in Geary. I have a custom subclass of Gtk.ListBox, instances of which are frequently added and removed from the UI. [snip] The only things I can find that could still be holding a reference

Re: [Vala] Global key shortcuts

2016-08-19 Thread Michael Gratton
uld also send the signal to the already running instance. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] The future of Vala

2016-09-12 Thread Michael Gratton
On Tue, Sep 13, 2016 at 2:19 AM, oyster wrote: some killer apps may be a good AD. Like these? <https://wiki.gnome.org/Projects/Vala/Documentation#Projects_Developed_in_Vala> ;) -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjo

Re: [Vala] The future of Vala

2016-09-12 Thread Michael Gratton
irection. In the end, its the maintainers that would decide if things like wip/transform is the way to go or not. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.

Re: [Vala] [Announcement] Vala will use GTask for async code instead of GSimpleAsyncResult if --target-glib=2.36 or greater is selected

2016-11-21 Thread Michael Gratton
Hi all, I just wanted to quickly say thanks to everyone involved with this. It will cut down the amount of warnings generated when compiling Geary by a huge amount! //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> On Mon, Nov 21, 2016 at 10:27 PM, Al Thomas

Re: [Vala] Valadoc.org is fully operational again

2016-11-23 Thread Michael Gratton
go out to Chris Daley of Valadate project for hosting a mirror ( http://valadoc.valadate.org ) and the company RooJSolutions ( http://valadoc.roojs.com ) for also hosting a mirror while things got back to normal. Seconded, and to everyone else working on it. Cheers, people! //Mike -- ⊨ Micha

Re: [Vala] Invalid cast Warnings

2017-02-05 Thread Michael Gratton
ixPrintJob; ... } } -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] The future of Vala

2017-02-06 Thread Michael Gratton
nfidence that a decision will be made, and Vala will just continue languishing at Gnome. Nah. People still use vala, it's still being maintained, it's still the best way to write GTK+/GNOME apps that compile down to native code. Why advise people against that? :) //Mike -- ⊨ Michael Gra

Re: [Vala] State of the Vala union

2017-04-06 Thread Michael Gratton
On 7 April 2017 8:16:32 AM "Matthias Berndt" wrote: Obviously all these examples are completely contrived, academic and serve no purpose other than showing off my 31337 comp!l0r h4xx0ring 5k!11z. Thanks for finally showing me the light about the One True Programming Language: Vala! Don't you

Re: [Vala] Nice stuff incoming for the next Meson release

2017-04-22 Thread Michael Gratton
Hi Guillaume, Thanks for this! We're thinking testing the waters with Meson for Geary[0], this might make it a bit easer to port to from cmake. //Mike [0] - <https://bugzilla.gnome.org/show_bug.cgi?id=777044> -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/>

Re: [Vala] Roadmap for extending Vala's reach

2017-05-06 Thread Michael Gratton
ore consistent with this suggested approach of using --pkg to enable compiler-specific features. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> On Sun, May 7, 2017 at 5:26 AM, Guillaume Poirier-Morency wrote: Hello all! We currently have a very promiscous r

[Vala] notify for synthetic properties?

2017-10-10 Thread Michael Gratton
e far away from the declarations, and that makes it hard to maintain and understand what is going with the values. Is there a nicer way to do this in vala? //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list m

[Vala] Introspection for exception instances

2017-11-13 Thread Michael Gratton
o be able to use it in a switch statement, e.g.: switch (io_error.code) { case IOError.CANCELLABLE: ... break; } But again unless I am missing something, this doesn't seem to be currently supported? //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/&

Re: [Vala] Introspection for exception instances

2017-11-13 Thread Michael Gratton
PS: Has anyone used the glib backgrace_symbols() function[0] to generate a stack trace in Vala? [0] - <https://www.gnu.org/software/libc/manual/html_node/Backtraces.html> -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/>

Re: [Vala] Introspection for exception instances

2017-11-16 Thread Michael Gratton
IOError" and "CANCELLED". I assumed CANCELLABLE was a typo. Yeah sure was, sorry. I need a type-checker for my email composer. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] glib backtrace

2017-11-26 Thread Michael Gratton
/libfsoframework/fsobasics/utilities.vala for an example using the backtrace functionality. Thanks for the link. I guess based on the VAPI name it's Linux specific - but does it rely on glibc or is it actually using something Linux-kernel-specific? Cheers, //Mike -- ⊨ Michael Gratton, Pe

[Vala] Structured logging and source files/lines/functions

2017-12-17 Thread Michael Gratton
do that in the source, or do I need to use a compiler define to be able to? Cheers! //Mike [0] - <https://valadoc.org/glib-2.0/GLib.log_structured.html> -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-l

[Vala] GLib.assert_no_error not working?

2018-03-07 Thread Michael Gratton
. This is what I get: mjg@payens:~$ valac --pkg glib-2.0 -g assert_no_error.vala mjg@payens:~$ ./assert_no_error /chucker: ** ERROR:/home/mjg/assert_no_error.vala:11:__lambda4_: assertion failed: (false) Aborted (core dumped) Am I missing something here? Cheers, //Mike -- ⊨ Michael Gratton,

Re: [Vala] GLib.assert_no_error not working?

2018-03-08 Thread Michael Gratton
7;d like to stop the test if an exception has been thrown, i.e. it's abnormal that an error has been thrown. So assert_error is not the right check since it's the opposite of what I am looking for. "assert(err == NULL)" would be correct, but that it wouldn't tell me

Re: [Vala] Using databases with Vala

2018-03-11 Thread Michael Gratton
uting to it. In particular, it would be great to add a high-level query interface like JPA/Hibernate criteria queries so we can stop doing SQL munging in the app. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-l

Re: [Vala] GLib.assert_no_error not working?

2018-03-11 Thread Michael Gratton
ey seem pretty useless to call from vala, and don't let you provide a human readable string as additional context. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] valadoc Question

2018-03-23 Thread Michael Gratton
tk3-icon-browser program is useful here too - it shows what icon is will be used for each, and lets you search icon names as well. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> ___ vala-list mailing list vala-list@g