On 18/10/09 19:14, Didier 'Ptitjes' wrote:
Hi Magnus,
Magnus Therning wrote:
On 16/10/09 08:29, Didier 'Ptitjes' wrote:
Florian told me he would update it this WE.
Excellent. I have no problems making do with the .vapi file in the
meantime ;)
This may finally take a
p0 never is
freed. On top of that pwd is pointing to secret information, and it really
should be freed using gnome_keyring_free_password() rather then g_free().
/M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4)
magnus@therning.org
eclared 'const' and the other not?
Any way, it's a bug so it should be fixed upstream. Should I file it in
Gnome's bugzilla or is an email enough?
In the meantime is there something I can do locally to make sure my code
compiles?
/M
--
Magnus Therning
On 16/10/09 08:29, Didier 'Ptitjes' wrote:
Hi Magnus,
Magnus Therning wrote:
I just got around to upgrading to Gee 0.5.0, but
references.valadoc.org doesn't seem to have been updated yet so it's
all turning out to be a bit more work than I had hoped.
Who should I poke to g
I just got around to upgrading to Gee 0.5.0, but references.valadoc.org
doesn't seem to have been updated yet so it's all turning out to be a bit more
work than I had hoped.
Who should I poke to get the Gee reference docs updated?
/M
--
Magnus Therning
I'm assume this is what .vapi files allow you to do. However, I only really
want to call a couple of functions, so are there any pointers on how to
manually write a .vapi file and get it hooked up properly for compilation?
/M
--
Magnus Therning(OpenPGP: 0xAB4
er bodies
> of code.
That is a plausible explanaition for why I feel the class-based
gobject system is a bit strange when using Seed.
/M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus ide
On Sat, Oct 03, 2009 at 10:29:30PM +0200, Andrea Bolognani wrote:
> On Sat, Oct 03, 2009 at 08:24:25PM +0100, Magnus Therning wrote:
>
> > I'm sure there are implementations of sets around for JavaScript. But
> > that's just the point, Seed *doesn't come with
On Sat, Oct 03, 2009 at 01:50:02PM +0300, Xan Lopez wrote:
> On Sat, Oct 3, 2009 at 1:30 PM, Magnus Therning wrote:
> > On Fri, Oct 02, 2009 at 06:00:07PM +0200, Wouter Bolsterlee wrote:
> >> Op vrijdag 25-09-2009 om 22:11 uur [tijdzone +0100], schreef Magnus
> >> Thern
On Fri, Oct 02, 2009 at 06:00:07PM +0200, Wouter Bolsterlee wrote:
> Op vrijdag 25-09-2009 om 22:11 uur [tijdzone +0100], schreef Magnus
> Therning:
> > Does anyone out there have a .vapi for epiphany's extension API?
> >
> > I'm particularly intereste
Didier 'Ptitjes' wrote:
Hi Magnus,
Magnus Therning wrote:
What function should I use to sort a list of strings to avoid the
compiler warning I get with strcmp:
...
my_list.sort( strcmp );
...
Test.vala:60: warning: passing argument 2 of ‘g_list_sort’ from
incompatible po
‘GCompareFunc’ but
argument is of type ‘int (*)(const char *, const char *)’
/M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
signature.asc
Description: OpenPGP
The collection types in Gee are really useful, but the list types seem to be
missing a sorting function. Is that deliberate, because it should be done in
some other way, an oversight, or simply something that still is TBD?
/M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4
Does anyone out there have a .vapi for epiphany's extension API?
I'm particularly interested in the bookmark manipulation API.
Cheers,
M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.
mickey branch). Perhaps
you can add up on that.
Thanks for the pointer, and for the commiseration ;-)
I found the parsing fairly straight forward, but the generation is causing me
headaches. For the time being I'm generating the JSON "by hand" (for my
simple objects it's fewer
t:
(process:11711): GLib-GObject-WARNING **: gvalue.c:185: cannot initialize
GValue with type `gchararray', the value has already been initialized as
`gchararray'
Anyone with any ideas?
/M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4)
magnus@therning.org
2009/9/23 Matías De la Puente :
> Take a look here
> http://live.gnome.org/Vala/Tutorial#head-7b3930bf3573a66028940bf6123b19e19a33f9a5
>
> should be:
> var map = new HashMap (str_hash, str_equal);
Bugger, yes you are right. I'm such an idiot at times ;-)
Cheers,
M
la/TestGee/Map.vala.c:21: warning: passing argument 7
of ‘gee_tree_map_new’ from incompatible pointer type
/usr/include/gee-1.0/gee.h:584: note: expected ‘GCompareFunc’ but argument is
of type ‘gint (*)(void *, void *)’
And a segmentation fault at runtime.
Not quite what I had expected...
%
I've been looking for some examples of using json-glib from vala, but have
found precious little. Any good pointers?
I'm particularly interested in parsing (or creating vala objects from) arrays
of JSON objects.
/M
--
Magnus Therning(OpenPGP: 0xAB4DFB
Frederik wrote:
Magnus Therning wrote:
Where should I have looked to find that info myself?
Unfortunately, this info is missing in the Gee section of the tutorial,
but you can see it here:
http://live.gnome.org/Vala/GeeSamples
I don't need a --pkg glib-2.0 when "using GLib"
Frederik wrote:
Magnus Therning wrote:
However, when I try to compile a simple example from Vala Code
(http://code.valaide.org/content/gee-set-example) I get the following
error:
% valac Set.vala
Set.vala:1.7-1.9: error: The namespace name `Gee' could not be found
usin
be found
using Gee;
^^^
Compilation failed: 1 error(s), 0 warning(s)
It looks like something's missing from my system, preventing vala from seeing
Gee. I have no idea what though. Any suggestions?
/M
--
Magnus Therning(OpenPGP: 0xAB4DFBA4)
magnus@therning.or
22 matches
Mail list logo