Re: [Vala] Gtk.FileChooserButton

2017-04-10 Thread Chris Daley
Sorry, I wrote my reply without reading your code thoroughly...

In Vala, what you're looking for is implemented as a method not as a
property:

https://valadoc.org/gtk+-3.0/Gtk.FileChooser.html

https://valadoc.org/gtk+-3.0/Gtk.FileChooser.get_current_folder.html

Cheers
Chris D

2017-04-10 10:42 GMT-07:00 Chris Daley <chebiza...@gmail.com>:

> Hi Sascha,
>
> FileChooserButton implements the FileChooser interface, so I believe the
> method you want to use is get_current_foler_file:
>
> https://valadoc.org/gtk+-3.0/Gtk.FileChooser.get_current_folder_file.html
>
> Cheers
> Chris D
>
> 2017-04-10 10:34 GMT-07:00 Sascha Manns <sascha.ma...@mailbox.org>:
>
>> Hello list,
>>
>> i tried out to get a special folder from a Gtk.FileChooserButton.
>>
>> In Mono/Gtk-Sharp i used:
>>
>> public string RevUpdFolder { get; set; }
>> [Builder.Object] private FileChooserButton FileChooserRevUpd;
>> protected void OnFileChooserRevUpdFileSet(object sender, EventArgs e)
>> {
>> RevUpdFolder = FileChooserRevUpd.CurrentFolder;
>> }
>>
>> In Vala i tried to port it:
>>
>> public string revupdfolder { get; set; }
>> [Gtk.Child] private Gtk.FileChooserButton fileChooserRevUpd;
>> private void on_fileChooserRevUpd_file_set () {
>> revupdfolder = fileChooserRevUpd.current_folder;
>> }
>>
>> But it looks like there is no way to get the current folder like
>> Gtk-Sharp it does, or?
>>
>> --
>> Sascha Manns
>> Maifeldstraße 10
>> 56727 Mayen
>>
>> P: +49-2651-4014045
>> W: http://saigkill.tuxfamily.org
>>
>>
>>
>> ___
>> vala-list mailing list
>> vala-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/vala-list
>>
>>
>
>
> --
> Chris Daley
> Pacific Northwest
>
> e: chebiza...@gmail.com
> w: http://chrisdaley.biz
> m: +1-971-703-9251 <(971)%20703-9251>
> s: chebizarro
> tw: chebizarro
> tz: PDT
>
>


-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Gtk.FileChooserButton

2017-04-10 Thread Chris Daley
Hi Sascha,

FileChooserButton implements the FileChooser interface, so I believe the
method you want to use is get_current_foler_file:

https://valadoc.org/gtk+-3.0/Gtk.FileChooser.get_current_folder_file.html

Cheers
Chris D

2017-04-10 10:34 GMT-07:00 Sascha Manns <sascha.ma...@mailbox.org>:

> Hello list,
>
> i tried out to get a special folder from a Gtk.FileChooserButton.
>
> In Mono/Gtk-Sharp i used:
>
> public string RevUpdFolder { get; set; }
> [Builder.Object] private FileChooserButton FileChooserRevUpd;
> protected void OnFileChooserRevUpdFileSet(object sender, EventArgs e)
> {
> RevUpdFolder = FileChooserRevUpd.CurrentFolder;
> }
>
> In Vala i tried to port it:
>
> public string revupdfolder { get; set; }
> [Gtk.Child] private Gtk.FileChooserButton fileChooserRevUpd;
> private void on_fileChooserRevUpd_file_set () {
> revupdfolder = fileChooserRevUpd.current_folder;
> }
>
> But it looks like there is no way to get the current folder like
> Gtk-Sharp it does, or?
>
> --
> Sascha Manns
> Maifeldstraße 10
> 56727 Mayen
>
> P: +49-2651-4014045
> W: http://saigkill.tuxfamily.org
>
>
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>
>


-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Pango.Context.list_families

2017-01-25 Thread Chris Daley
Hi there,

The list_families method takes an array as an out parameter. You need to
declare a FontFamily array and then pass it to the method like this:

// your existing code

fam: array of FontFamily
context.list_families(out fam)

With your existing code, it will return a zero length array. If you want to
get a list of all of the Font Families available to the existing GDK
screen, you can replace the line:

var context = new Pango.Context()

with

var context = Gdk.pango_context_get()

Hope this helps
Cheers
Chris D

2017-01-25 5:04 GMT+11:00 webie...@gmail.com <webie...@gmail.com>:

> Hello, I'm starting to use Genie with Pango + Gtk.
>
> I can not extract Pango.Context.list_families into an array of FontFamily
>
> My code:
>
> uses Gtk
> uses Pango
>
> init
> Gtk.init (ref args)
> var TestGtk = new Ventana()
> TestGtk.show_all()
> Gtk.main()
>
> class Ventana : Window
>
> init
> title = "Genie + Pango"
> set_default_size (250, 100)
> set_border_width(8)
> window_position = WindowPosition.CENTER
> destroy.connect(Gtk.main_quit)
>
> var sw = new Gtk.ScrolledWindow(null, null)
> sw.set_shadow_type (ShadowType.ETCHED_IN)
> sw.set_policy(PolicyType.AUTOMATIC, PolicyType.AUTOMATIC)
>
> var context = new Pango.Context()
>
> // context.list_families???
>
> // fam: array of FontFamily  ???
>
> Thank you
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Detect wayland

2016-12-12 Thread Chris Daley
If you don't want to write a whole vapi you can do the following after the
Display has been initialized:

[CCode (cname="gdk_wayland_display_get_type")]
extern Type get_wayland_type();

Type display_type = Gdk.Display.get_default().get_type();
Type wayland_type = get_wayland_type();

if(display_type.is_a(wayland_type)) {
  ... disable key binding here...
}


2016-12-12 13:48 GMT-08:00 rastersoft <ras...@rastersoft.com>:

> Before someone says "using GDK_IS_WAYLAND_DISPLAY", my question is how
> to do that on Vala, because I can't find those macros in the VAPI files.
>
>
> El 12/12/16 a las 21:21, rastersoft escribió:
> > Hi all:
> >
> > I want my program Terminus to be able to run under Wayland.
> > Unfortunately, by default tries to bind to a key, which Wayland doesn't
> > support and produces a core dump.
> >
> > It is possible to detect if my code is running under Wayland to disable
> > the key binding?
> >
> > Thanks.
> >
>
> --
> Nos leemos
>  RASTER(Linux user #228804)
> ras...@rastersoft.com  http://www.rastersoft.com
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] GLib.Menu subclass

2016-06-29 Thread Chris Daley
Indeed, it should have a more meaningful error. Don't forget to file a bug
report!

I have seen this behaviour with some other classes and I suspect it will
become more and more common as GLib/GTK/Clutter move towards preferring
composition over inheritance (and in certain cases enforcing it). Does Vala
need a "final" or "sealed" keyword for Classes?

Chris

2016-06-29 1:58 GMT-07:00 Ondrej Tuma <konfere...@webjet.cz>:

> V Wed, 29 Jun 2016 07:39:13 +
> Luc Chante <luc.cha...@gmail.com> napsáno:
>
> > Hi,
> >
> > https://developer.gnome.org/gio/stable/GMenu.html#GMenu.other_details
> >
> > I'm not sure that GLib.Menu made to be overridable.
>
> In python PyObject is possible. But if could not be, that should not be
> in Vala, so the error should be from Vala not from C compiler.
>
> > You could decorate it : extend MenuModel, with a private property
> > which is a Menu, and override every methods of MenuModel by calling
> > the private property.
> >
> > private GLib.Menu internal_men;
> >
> > public override int get_n_items() {
> > return this.internal_menu.get_n_items();
> > }
> >
> > Le mer. 29 juin 2016 à 08:44, Ondrej Tuma <konfere...@webjet.cz> a
> > écrit :
> >
> > > Hi all,
> > >
> > > I try to create GLib.Menu subclass, but it fails. Here is code:
> > >
> > > public class MyMenu : Menu {
> > > public MyMenu(){
> > > append ("Item label", "app.my-action");
> > > }
> > > }
> > >
> > > And here is error:
> > >
> > > /home/mcbig/tmp-dev/vala/gmenu.vala.c:39:8: error: field
> > > ‘parent_instance’ has incomplete type
> > >   GMenu parent_instance;
> > > ^
> > > /home/mcbig/tmp-dev/vala/gmenu.vala.c:44:2: error: unknown type name
> > > ‘GMenuClass’
> > >   GMenuClass parent_class;
> > >   ^
> > > error: cc exited with status 256
> > >
> > > Yes, there is not GMenuClass in gio/gio.h. I'm not sure if this
> > > problem is in gio/gio.h or gio-2.0.vapi. I got this error on debian
> > > Jessie (valac-0.26).
> > > What I see, glibmm define it's GMenuClass in it's giomm/menu.h.
>
> --
> Ondřej Tůma <mc...@zeropage.cz>
> www: http://ipv6.mcbig.cz   jabber: mc...@jabber.cz   twitter: mcbig_cz
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>
>


-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] valadoc.org online again, but search not working

2016-06-06 Thread Chris Daley
Hi Daniel,

I simply removed the GIR and Valadoc generated the docs from the vapi file
instead. How old is the GIR file? I came across a few bug reports similar
to this error for GIR files produced with a much earlier (+/- 0.16) version
of Vala.

I hope this helps
Cheers
Chris

2016-06-06 14:07 GMT-07:00 Daniel Espinosa <eso...@gmail.com>:

> Please tell me.
>
> Have you fixed my generated GIR and VAPI or fixed valadoc?
>
> If fixed valadoc, I should revert my local changes on GXml to API as it
> was before to avoid breaks.
>
> 2016-06-06 13:35 GMT-05:00 Chris Daley <chebiza...@gmail.com>:
>
>> Hi Daniel,
>> I have added the GXml 0.10 packages to the valadoc.valadate.org mirror.
>> You should be able to see them now, otherwise refresh the page.
>> Cheers
>> Chris D
>>
>> 2016-06-06 11:29 GMT-07:00 Daniel Espinosa <eso...@gmail.com>:
>>
>>> Cheking at your errors, witch I can reproduce locally, but any way I
>>> found:
>>>
>>>
>>> `callback' in `class' error, means a delegate declared in a class
>>> namespace, which is valid, but an error is raised.
>>>
>>> `field' in `namespace' error, means a globally declared variable make
>>> public.
>>>
>>>
>>> While in Vala both are Ok, GObject Introspection doesn't complaints
>>> about them: Is this a valadoc bug?
>>>
>>>
>>> I've made some changes in GXml to fix this, but one of it (hiding global
>>> variable) requires an API changes, suitable to happen in next 0.12, but not
>>> in 0.10. While may be this API change should be considered minor, most
>>> users of GXml relays on legacy DOM support and if they are checking errors
>>> by this global variable, we are in troubles.
>>>
>>> I really wants GXml 0.10 added to valadoc.org or alternate sites, while
>>> I release 0.12 version. Please consider this questions and make me know if
>>> is my fault.
>>>
>>>
>>> 2016-06-06 10:40 GMT-05:00 Chris Daley <chebiza...@gmail.com>:
>>>
>>>> Hi Daniel,
>>>>
>>>> This is the error I get when I try to build Valadoc with the
>>>> GXml-0.10.gir:
>>>>
>>>> valadoc --target-glib 2.99 --driver "0.32" --importdir girs --doclet
>>>> "." -o "tmp/gxml-0.10" "girs/vala/vapi/gxml-0.10.vapi" --vapidir
>>>> "girs/vala/vapi" --girdir "girs/gir-1.0"  --importdir "girs/gir-1.0"
>>>> --import GXml-0.10 --wiki documentation/gxml-0.10/wiki
>>>>
>>>> (valadoc:279): GLib-CRITICAL **: g_str_has_suffix: assertion 'str !=
>>>> NULL' failed
>>>>
>>>> ** (valadoc:279): CRITICAL **:
>>>> valadoc_importer_gir_documentation_importer_attach_comment: assertion
>>>> 'cname != NULL' failed
>>>> /home/valadoc/girs/gir-1.0/GXml-0.10.gir:5641.3-5641.78: error: unknown
>>>> child element `callback' in `class'
>>>> 
>>>> ^
>>>> /home/valadoc/girs/gir-1.0/GXml-0.10.gir:10483.2-10483.32: error:
>>>> unknown child element `field' in `namespace'
>>>> 
>>>> ^
>>>>
>>>> Cheers
>>>> Chris
>>>>
>>>>
>>>> 2016-06-06 7:52 GMT-07:00 Daniel Espinosa <eso...@gmail.com>:
>>>>
>>>>> Valadoc.org and its alternatives doesn't load GXml package, could
>>>>> anyone
>>>>> point how can help to fix it?
>>>>> El jun. 6, 2016 9:34 AM, "Ben Iofel" <iofel...@gmail.com> escribió:
>>>>>
>>>>> > For now you may use this mirror with working search:
>>>>> > http://valadoc.valadate.org
>>>>> >
>>>>> > On Mon, Jun 6, 2016 at 6:08 AM Ulink <ul...@gmx.at> wrote:
>>>>> >
>>>>> > > Hi,
>>>>> > >
>>>>> > > valadoc.org seems online again, but if one type something into the
>>>>> > > search field, it shows:
>>>>> > >
>>>>> > > 'Query failed: (0)s'
>>>>> > >
>>>>> > > Is someone able to fix this?
>>>>> > >
>>>>> > > --
>>>>> > > Bernhard
>>>>> > > ___
>>>>> > > vala-list mailing list
>>>>> >

Re: [Vala] valadoc.org online again, but search not working

2016-06-06 Thread Chris Daley
Hi Daniel,
I have added the GXml 0.10 packages to the valadoc.valadate.org mirror. You
should be able to see them now, otherwise refresh the page.
Cheers
Chris D

2016-06-06 11:29 GMT-07:00 Daniel Espinosa <eso...@gmail.com>:

> Cheking at your errors, witch I can reproduce locally, but any way I found:
>
>
> `callback' in `class' error, means a delegate declared in a class
> namespace, which is valid, but an error is raised.
>
> `field' in `namespace' error, means a globally declared variable make
> public.
>
>
> While in Vala both are Ok, GObject Introspection doesn't complaints about
> them: Is this a valadoc bug?
>
>
> I've made some changes in GXml to fix this, but one of it (hiding global
> variable) requires an API changes, suitable to happen in next 0.12, but not
> in 0.10. While may be this API change should be considered minor, most
> users of GXml relays on legacy DOM support and if they are checking errors
> by this global variable, we are in troubles.
>
> I really wants GXml 0.10 added to valadoc.org or alternate sites, while I
> release 0.12 version. Please consider this questions and make me know if is
> my fault.
>
>
> 2016-06-06 10:40 GMT-05:00 Chris Daley <chebiza...@gmail.com>:
>
>> Hi Daniel,
>>
>> This is the error I get when I try to build Valadoc with the
>> GXml-0.10.gir:
>>
>> valadoc --target-glib 2.99 --driver "0.32" --importdir girs --doclet "."
>> -o "tmp/gxml-0.10" "girs/vala/vapi/gxml-0.10.vapi" --vapidir
>> "girs/vala/vapi" --girdir "girs/gir-1.0"  --importdir "girs/gir-1.0"
>> --import GXml-0.10 --wiki documentation/gxml-0.10/wiki
>>
>> (valadoc:279): GLib-CRITICAL **: g_str_has_suffix: assertion 'str !=
>> NULL' failed
>>
>> ** (valadoc:279): CRITICAL **:
>> valadoc_importer_gir_documentation_importer_attach_comment: assertion
>> 'cname != NULL' failed
>> /home/valadoc/girs/gir-1.0/GXml-0.10.gir:5641.3-5641.78: error: unknown
>> child element `callback' in `class'
>> 
>> ^
>> /home/valadoc/girs/gir-1.0/GXml-0.10.gir:10483.2-10483.32: error: unknown
>> child element `field' in `namespace'
>> 
>> ^
>>
>> Cheers
>> Chris
>>
>>
>> 2016-06-06 7:52 GMT-07:00 Daniel Espinosa <eso...@gmail.com>:
>>
>>> Valadoc.org and its alternatives doesn't load GXml package, could anyone
>>> point how can help to fix it?
>>> El jun. 6, 2016 9:34 AM, "Ben Iofel" <iofel...@gmail.com> escribió:
>>>
>>> > For now you may use this mirror with working search:
>>> > http://valadoc.valadate.org
>>> >
>>> > On Mon, Jun 6, 2016 at 6:08 AM Ulink <ul...@gmx.at> wrote:
>>> >
>>> > > Hi,
>>> > >
>>> > > valadoc.org seems online again, but if one type something into the
>>> > > search field, it shows:
>>> > >
>>> > > 'Query failed: (0)s'
>>> > >
>>> > > Is someone able to fix this?
>>> > >
>>> > > --
>>> > > Bernhard
>>> > > ___
>>> > > vala-list mailing list
>>> > > vala-list@gnome.org
>>> > > https://mail.gnome.org/mailman/listinfo/vala-list
>>> > >
>>> > ___
>>> > vala-list mailing list
>>> > vala-list@gnome.org
>>> > https://mail.gnome.org/mailman/listinfo/vala-list
>>> >
>>> ___
>>> vala-list mailing list
>>> vala-list@gnome.org
>>> https://mail.gnome.org/mailman/listinfo/vala-list
>>>
>>
>>
>>
>> --
>> Chris Daley
>> Pacific Northwest
>>
>> e: chebiza...@gmail.com
>> w: http://chrisdaley.biz
>> m: +1-971-703-9251
>> s: chebizarro
>> tw: chebizarro
>> tz: PDT
>>
>>
>
>
> --
> This electronic message may contain privileged and confidential
> information intended only for the use of the addressees named above.  If
> you are not the intended recipient of this email, we kindly ask you to
> delete this message and any attachment. You are hereby notified that any
> use, dissemination, distribution, reproduction of this email is
> prohibited.  If you have received this email in error, please notify sender
> immediately.
>
> Any document, image or any other form of electronic representation of any
> work attached to this email, is suitable to be protected by copyright
> enforcement by applicable law in your or sender's Country's and
> International Legislation
>
> Trabajar, la mejor arma para tu superación
> "de grano en grano, se hace la arena" (R) (en trámite, pero para los
> cuates: LIBRE)
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] valadoc.org Offline?

2016-05-30 Thread Chris Daley
Hi all,

For anyone needing some Valadoc love while the server is offline, I've
rebuilt if from the Github repo and put it up at
http://valadoc.valadate.org

It's not perfect and it may go up and down a couple of times this afternoon
but there you have it.

Cheers
Chris D

2016-05-30 0:30 GMT-07:00 Gerhard Gruber <gerhard.gru...@documatrix.com>:

> Hi,
>
> when I visit http://valadoc.org I just get a „Web Server’s Default Page“.
>
> Does anyone know why the page is offline and when its getting online again?
>
> I’m lost without Valadoc ;)
>
> Gerhard
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>
>


-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Is there any usable editor for Vala?

2016-02-22 Thread Chris Daley
Hi Daniel, et. al.

I have been thinking about this in terms of the GUI for my project Valadate
(shameless plug: new blog post EN - http://bit.ly/217qp0J ES -
http://bit.ly/1oDvMns). A tool like Valadate makes more sense as part of an
IDE than standalone and I have been looking into the various plugin options
and came to more or less the same conclusion as you about Valencia (as well
as making it compatible with Geany, my preferred IDE).

I currently have a number of Geany/Gedit Vala related plugins in various
states of implementation that I think might be useful for such a project
and I am happy to contribute what time and resources I can.

Many thanks for taking the initiative on this!
Cheers
Chris D

2016-02-22 14:10 GMT-08:00 Daniel Espinosa <eso...@gmail.com>:

> It appears valencia is unmaintained now. May I can merge some WIP to master
> to help others to use it and attract some patches to release a 3.14 and get
> some help from others trying to provide Vala support.
>
> I was thinking to try to reuse some work from Builder and others to provide
> a simple jet stable Vala plugin. Point here is to have some thing simple
> but useful, while Builder comes more stable.
>
> What are your expectations?
>
> https://plus.google.com/110617990354745814227/posts/THkq7jWLzmD
> Hi Matthias, hi Jonathan,
>
> here's a version of valencia-0.8 that I applied the patches for gedit
> >=3.12 on [1].
> I got the patches from here [2].
>
> The only additional change I applied to the code, is to make the jump-forth
> and jump-back feature work with the Alt_R-key (Alt_Gr+Left, Alt_Gr+Right).
> Before that it was mapped to Alt (MOD1_MASK), which seems to be reserved in
> the current versions of gedit by now.
>
> Note that you might need to update the following line in the Makefile to
> match your current Vala version:
>
> LIBVALA=libvala-0.32
>
> ..where libvala-0.32 stands for the current Vala version 0.31.1 .
>
>
>
> I haven't found any portion of the valencia-code that would try to access
> any "enable-delete" member in an obvious way. However, given the fact that
> my version of valencia works with gedit-3.14, there might be a chance for
> you to have it work with gedit-3.18, too.
>
> Hope that helps.
>
> Best,
>
> gilzad
>
> [1] http://gilzad.de/linux-stuff/valencia_0.8_post_gtk3.12.zip
> [2] https://bugzilla.gnome.org/show_bug.cgi?id=724173
>
>
> > Gesendet: Freitag, 19. Februar 2016 um 21:34 Uhr
> > Von: "Jonathan Moerman" <jonathanmoer...@gmail.com>
> > An: "Matthias Berndt" <matthias_ber...@gmx.de>, vala-list@gnome.org
> > Betreff: Re: [Vala] Is there any usable editor for Vala?
> >
> > Valencia isn't limited to vala 0.24 (I've only used it with >= 0.28), you
> > can build it for 0.30 by running "LIBVALA=libvala-0.30 make" (or by
> > modifying the Makefile).
> > That error probably isn't related to Valencia, I mentioned that I'm using
> > Gedit 3.10 because I simply don't know if it will compile and run with
> > newer versions of Gedit.
> > I never meant that you should install 3.10, I should have been more
> clear.
> >
> >  Jonathan Moerman
> >
> > 2016-02-19 21:15 GMT+01:00 Matthias Berndt <matthias_ber...@gmx.de>:
> >
> > >
> > > I don't know what version of gedit you're using, but
> > >>> https://github.com/JMoerman/valencia-1 works for me. (I'm using
> gedit
> > >>> 3.10)
> > >>>
> > >>
> > >> I'll second this.  Gedit + Valencia have worked very nicely for me.
> It's
> > >> true that there hasn't been much development of Valencia recently, but
> I've
> > >> found it does everything I want it to.
> > >>
> > >> Unfortunately I can't reproduce that. After going through the trouble
> of
> > > installing gedit 3.10 and vala 0.24 (Fedora comes with gedit 3.18 and
> vala
> > > 0.30) and getting Valencia to compile, it crashes gedit on startup.
> > > $ gedit
> > >
> > > (gedit:23465): GLib-GIO-ERROR **: Settings schema
> > > 'org.gnome.nautilus.preferences' does not contain a key named
> > > 'enable-delete'
> > > Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)
> > >
> > > Cheers, Matthias
> > >
> > >
> > ___
> > vala-list mailing list
> > vala-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/vala-list
> >
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1601 980 1249
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


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

2016-02-04 Thread Chris Daley
You may also find the Gee.TestCase class suits your needs - it certainly
makes the tests easier to read and is more xUnit like in its approach than
the 'naked' GLib Test classes.

https://esite.ch/2012/06/writing-tests-for-vala/

Gives a good overview - and if I recall the GXml tests that Daniel
mentioned uses it as well.

Cheers
Chris D

2016-02-04 14:09 GMT-08:00 Daniel Espinosa <eso...@gmail.com>:

> GXml have a test suite may you want to check. I has more than 50 tests
> cases.
> El feb. 4, 2016 3:04 PM, "Al Thomas" <astav...@yahoo.co.uk> escribió:
>
> >
> >
> > - Original Message -
> > > From: Felipe Lavratti <felipe...@gmail.com>
> > > Sent: Thursday, 4 February 2016, 20:18
> > > Subject: [Vala] Using TestCase class: assert (this is Object) fails in
> > method, but not in constructor
> > >
> > > Have a look at this code:
> > >
> > > public class Tests : Object {
> > >
> > > public Tests () {
> > > assert (this is Object); // THIS ASSERTION PASSES
> > > ts = new TestSuite ("dot_cap_dimmer") ;
> > > ts.add (new TestCase ("construction", (TestFixtureFunc)
> > > setup, (TestFixtureFunc) test_construction, (TestFixtureFunc)
> > > teardown)) ;
> > > TestSuite.get_root ().add_suite (ts) ;
> > > }
> > >
> > > void setup(void * fixture) {
> > > assert (this is Object);  // THIS ASSERTION FAILS
> > > this.cut = new DotCapDimmer () ;
> > > this.cut.on_change.connect (slot) ;
> > > this.called = false ;
> > > }
> > > ...
> > >  }
> > >
> > > Would anyone know what happens to the `this` variable when called
> > > from the TestCase ? How came it is no longer an Object anymore ?
> >
> >
> > You need to instantiate your fixture so it has `this` to act upon.
> > Your fixture should be a separate object to the test.
> > As an outline;
> >
> >
> > void main( string[] args ) {
> >
> >   Test.init(ref args);
> >   TestSuite suite = new TestSuite( "DotCapDimmer" );
> >   TestSuite.get_root ().add_suite (suite);
> >
> >   MyTestFixture fixture = new MyTestFixture();
> >   suite.add( new TestCase ( "MyFirstTestCase", fixture.set_up,
> > (TestFixtureFunc)test_my_first_test, fixture.tear_down ));
> >   Test.run();
> > }
> >
> > void test_my_first_test( MyTestFixture fixture ) {
> > // do testing
> >
> > }
> >
> >
> >
> > I put the test in a namespace like
> > UnitTest.ModuleDirectory.FilenameOfClassToBeTested
> >
> > There is also g_test_add_data_func_full () instead, but I haven't used
> > that yet.
> >
> > Al
> > ___
> > vala-list mailing list
> > vala-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/vala-list
> >
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1601 980 1249
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


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

2016-02-04 Thread Chris Daley
Hi Felipe,

I was just hoping someone would do exactly this! I don't know CMake very
well but would like to make Valadate work with it, and I needed a sample
project to get started. This is perfect.

I just have one question, does this run the compiled test binary through
gtester (or other test runner) or does it just execute it?

Muito obrigado!
Chris

2016-02-04 19:31 GMT-08:00 Felipe Lavratti <felipe...@gmail.com>:

> Steven,
>
> Since you brought it, I took the liberty to commit a project template
> with my current setup of using Atom + Vala + Gee TestCase +
> Cmake.
>
> It is here: https://github.com/felipe-lavratti/vala-unittests-cmake
>
> Hope it helps.
>
>
> On Thu, Feb 4, 2016 at 9:09 PM, Steven Oliver <oliver.ste...@gmail.com>
> wrote:
> > 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, "Chris Daley" <
> chebiza...@gmail.com> wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > You may also find the Gee.TestCase class suits your needs - it certainly
> > makes the tests easier to read and is more xUnit like in its approach
> than
> > the 'naked' GLib Test classes.
> >
> > https://esite.ch/2012/06/writing-tests-for-vala/
> >
> > Gives a good overview - and if I recall the GXml tests that Daniel
> > mentioned uses it as well.
> >
> > Cheers
> > Chris D
> >
> > 2016-02-04 14:09 GMT-08:00 Daniel Espinosa :
> >
> >> GXml have a test suite may you want to check. I has more than 50 tests
> >> cases.
> >> El feb. 4, 2016 3:04 PM, "Al Thomas"  escribió:
> >>
> >> >
> >> >
> >> > - Original Message -
> >> > > From: Felipe Lavratti
> >> > > Sent: Thursday, 4 February 2016, 20:18
> >> > > Subject: [Vala] Using TestCase class: assert (this is Object) fails
> in
> >> > method, but not in constructor
> >> > >
> >> > > Have a look at this code:
> >> > >
> >> > > public class Tests : Object {
> >> > >
> >> > > public Tests () {
> >> > > assert (this is Object); // THIS ASSERTION PASSES
> >> > > ts = new TestSuite ("dot_cap_dimmer") ;
> >> > > ts.add (new TestCase ("construction", (TestFixtureFunc)
> >> > > setup, (TestFixtureFunc) test_construction, (TestFixtureFunc)
> >> > > teardown)) ;
> >> > > TestSuite.get_root ().add_suite (ts) ;
> >> > > }
> >> > >
> >> > > void setup(void * fixture) {
> >> > > assert (this is Object);  // THIS ASSERTION FAILS
> >> > > this.cut = new DotCapDimmer () ;
> >> > > this.cut.on_change.connect (slot) ;
> >> > > this.called = false ;
> >> > > }
> >> > > ...
> >> > >  }
> >> > >
> >> > > Would anyone know what happens to the `this` variable when called
> >> > > from the TestCase ? How came it is no longer an Object anymore ?
> >> >
> >> >
> >> > You need to instantiate your fixture so it has `this` to act upon.
> >> > Your fixture should be a separate object to the test.
> >> > As an outline;
> >> >
> >> >
> >> > void main( string[] args ) {
> >> >
> >> >   Test.init(ref args);
> >> >   TestSuite suite = new TestSuite( "DotCapDimmer" );
> >> >   TestSuite.get_root ().add_suite (suite);
> >> >
> >> >   MyTestFixture fixture = new MyTestFixture();
> >> >   suite.add( new TestCase ( "MyFirstTestCase", fixture.set_up,
> >> > (TestFixtureFunc)test_my_first_test, fixture.tear_down ));
> >> >   Test.run();
> >> > }
> >> >
> >> > void test_my_first_test( MyTestFixture fixture ) {
> >> > // do testing
> >> >
> >> > }
> >> >
> >> >
> >> >
> >> > I put the test in a namespace like
> >> > UnitTest.ModuleDirectory.Fi

Re: [Vala] Testing framework

2016-02-01 Thread Chris Daley
Hi Steven,

It's still very much active, I've just had to take some time out to do some
work on my night job (managing a Rock band). I'm drafting a blog post this
afternoon with an update on progress and some new ways to contribute, so
stay tuned.

Cheers
Chris D



2016-02-01 14:22 GMT-08:00 Steven Oliver <oliver.ste...@gmail.com>:

> 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" <chebiza...@gmail.com>
> wrote:
>
> Hi Al,
>>
>> Thanks for the input, this is very much appreciated and incredibly useful!
>> I had in fact just written a post on my blog asking for exactly this sort
>> of feedback - you can read it here 
>> -http://chrisdaley.biz/test-driven-development-in-vala-pt-1.html
>>
>> I've got some time to work on this over the next few weeks and hope to have
>> a usable release out for testing not long after, so now's the time for
>> anyone else interested in a testing framework to hit me up with your ideas!
>>
>> Have a good weekend,
>> Cheers
>> Chris D
>>
>>
>> 2016-01-08 14:29 GMT-08:00 Al Thomas :
>>
>> > > From: Chris Daley
>>
>> >
>> > > Sent: Tuesday, 5 January 2016, 1:16
>> > > Subject: Re: [Vala] Testing framework
>> > >
>> > > I've done some thinking about this over the last couple of months and
>> > used
>> > > the holiday period to finish off a few things, namely a port of Gherkin
>> > to
>> > > Vala. You can grab it from here if you want to check it out:
>> > > https://github.com/chebizarro/gherkin-vala
>> > >
>> > > I'm going to be sketching out what I think is a reasonable
>> > > roadmap over the next week or so with a view to an alpha release around
>> > the
>> > > end of February. If anyone is interested in contributing, or has any
>> > > specific ideas about what sort of features they would find the most
>> > useful,
>> >
>> > > please get in touch
>> >
>> >
>> > Hi,
>> >
>> > Great work on porting Gherkin 3 to Vala.
>> >
>> > I wanted to put forward a few ideas that I have been slowly
>> > researching over the past year or so in the hope they are
>> >
>> > insightful to any developments of testing tools for Vala.
>> >
>> > Gherkin
>> > ---
>> > Gherkin is a language for structuring human language in a
>> > way that allows business analysts, developers and testers to define
>> > features of an application.
>> >
>> > Some computer languages have tools available to developers to convert
>> >
>> > Gherkin to an outline of a computer program. The following meaningless
>> >
>> > example shows the structure. This uses PHP's Behat to convert Gherkin
>> >
>> > to PHP:
>> >
>> > Feature: test
>> >
>> > Background: given this is a test # features/test.feature:3
>> >
>> > Scenario: testing of app # features/test.feature:5
>> > When i run something
>> > Then it passes
>> >
>> > 1 scenario (1 undefined)
>> > 2 steps (2 undefined)
>> > 0m0.17s (9.41Mb)
>> >
>> > --- FeatureContext has missing steps. Define them with these snippets:
>> >
>> > /**
>> > * @When i run something
>> > */
>> > public function iRunSomething()
>> > {
>> > throw new PendingException();
>> > }
>> >
>> > /**
>> > * @Then it passes
>> > */
>> > public function itPasses()
>> > {
>> > throw new PendingException();
>> > }
>> >
>> > It is the feature context that forms the basis of generating
>> > automated acceptance tests from the features specified in
>> >
>> > Gherkin. The developer then fills in the gaps with code that
>> > drives the tests. In PHP web development this is a tool like
>> > Mink that can drive various headless web browsers.
>> >
>> > Automatic code generation for Vala
>> > --
>> > I can think of two approaches to generation code. I have
>> > tried neither.
>> >
>> > The first is to use libvala to generate a Vala AST then output
>> > the AST. Potentially libvala could be modified to generate a
>&

Re: [Vala] Testing framework

2016-02-01 Thread Chris Daley
Hi Evan,
Thanks for the offer, I've sent you a pull request on Github. I've got some
new Vala posts in the can that aren't related to Valadate that should be up
later this week as well.
Cheers
Chris D

2016-02-01 16:12 GMT-08:00 Evan Nemerson <e...@nemerson.com>:

> Since you're actively blogging about Vala, how would you feel about
> being added to Planet Vala (planet.vala-project.org)?  Nobody on is
> very active right now, so it would be good to get some new blood…
>
>
> On Mon, 2016-02-01 at 14:37 -0800, Chris Daley wrote:
> > Hi Steven,
> >
> > It's still very much active, I've just had to take some time out to
> > do some
> > work on my night job (managing a Rock band). I'm drafting a blog post
> > this
> > afternoon with an update on progress and some new ways to contribute,
> > so
> > stay tuned.
> >
> > Cheers
> > Chris D
> >
> >
> >
> > 2016-02-01 14:22 GMT-08:00 Steven Oliver <oliver.ste...@gmail.com>:
> >
> > > 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" <chebizarro@gma
> > > il.com>
> > > wrote:
> > >
> > > Hi Al,
> > > >
> > > > Thanks for the input, this is very much appreciated and
> > > > incredibly useful!
> > > > I had in fact just written a post on my blog asking for exactly
> > > > this sort
> > > > of feedback - you can read it here -http://chrisdaley.biz/test-dr
> > > > iven-development-in-vala-pt-1.html
> > > >
> > > > I've got some time to work on this over the next few weeks and
> > > > hope to have
> > > > a usable release out for testing not long after, so now's the
> > > > time for
> > > > anyone else interested in a testing framework to hit me up with
> > > > your ideas!
> > > >
> > > > Have a good weekend,
> > > > Cheers
> > > > Chris D
> > > >
> > > >
> > > > 2016-01-08 14:29 GMT-08:00 Al Thomas :
> > > >
> > > > > > From: Chris Daley
> > > >
> > > > >
> > > > > > Sent: Tuesday, 5 January 2016, 1:16
> > > > > > Subject: Re: [Vala] Testing framework
> > > > > >
> > > > > > I've done some thinking about this over the last couple of
> > > > > > months and
> > > > > used
> > > > > > the holiday period to finish off a few things, namely a port
> > > > > > of Gherkin
> > > > > to
> > > > > > Vala. You can grab it from here if you want to check it out:
> > > > > > https://github.com/chebizarro/gherkin-vala
> > > > > >
> > > > > > I'm going to be sketching out what I think is a reasonable
> > > > > > roadmap over the next week or so with a view to an alpha
> > > > > > release around
> > > > > the
> > > > > > end of February. If anyone is interested in contributing, or
> > > > > > has any
> > > > > > specific ideas about what sort of features they would find
> > > > > > the most
> > > > > useful,
> > > > >
> > > > > > please get in touch
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Great work on porting Gherkin 3 to Vala.
> > > > >
> > > > > I wanted to put forward a few ideas that I have been slowly
> > > > > researching over the past year or so in the hope they are
> > > > >
> > > > > insightful to any developments of testing tools for Vala.
> > > > >
> > > > > Gherkin
> > > > > ---
> > > > > Gherkin is a language for structuring human language in a
> > > > > way that allows business analysts, developers and testers to
> > > > > define
> > > > > features of an application.
> > > > >
> > > > > Some computer languages have tools available to developers to
> > > > > convert
> > > > >
> > > > > Gherkin to an outline of a 

[Vala] (Spanish) Hacia un framework de desarrollo guiado por pruebas

2016-01-11 Thread Chris Daley
Apologies for posting in an off-list language, I won't make a habit of it...

Hola a todos nuestros compañeros del mundo hispanohablante! Para que más 
gente pueda seguir la conversación sobre mi propuesta de desarrollar un 
framework de pruebas para Vala, he traducido mi blog al castellano (mi 
segundo idioma). Puedes leer mi propuesta aqui - 
http://chrisdaley.biz/es/test-driven-development-in-vala-pt-1.html. Si 
tienes cualquier sugerencia o pregunta, me puedes escribir por email o 
twitter (@chebizarro), o dejar un comentario en el blog. 

Gracias por tu tiempo,
Cris D. 

-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1601 980 1249
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Get CREATION DATE OR TIME of file

2016-01-09 Thread Chris Daley
uot;, fi.get_attribute_as_string
> >> (GLib.FileAttribute.TIME_CREATED));
> >>  stdout.printf ("Date or time %s \n", fi.get_attribute_int64
> >> (GLib.FileAttribute.TIME_MODIFIED).to_string());
> >>
> >> I always returns 0 , maybe I'm not doing it correctly , be obliged his
> >> help.
> >>
> >> I'm using Windows valac - 0.26 .
> >>
> >>
> >> Mis proyectos de software libre en:
> >> Github - edwinspire
> >> ___
> >> vala-list mailing list
> >> vala-list@gnome.org
> >> https://mail.gnome.org/mailman/listinfo/vala-list
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1601 980 1249
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Testing framework

2016-01-08 Thread Chris Daley
Hi Al,

Thanks for the input, this is very much appreciated and incredibly useful!
I had in fact just written a post on my blog asking for exactly this sort
of feedback - you can read it here -
http://chrisdaley.biz/test-driven-development-in-vala-pt-1.html

I've got some time to work on this over the next few weeks and hope to have
a usable release out for testing not long after, so now's the time for
anyone else interested in a testing framework to hit me up with your ideas!

Have a good weekend,
Cheers
Chris D


2016-01-08 14:29 GMT-08:00 Al Thomas <astav...@yahoo.co.uk>:

> > From: Chris Daley <chebiza...@gmail.com>
>
> > Sent: Tuesday, 5 January 2016, 1:16
> > Subject: Re: [Vala] Testing framework
> >
> > I've done some thinking about this over the last couple of months and
> used
> > the holiday period to finish off a few things, namely a port of Gherkin
> to
> > Vala. You can grab it from here if you want to check it out:
> > https://github.com/chebizarro/gherkin-vala
> >
> > I'm going to be sketching out what I think is a reasonable
> > roadmap over the next week or so with a view to an alpha release around
> the
> > end of February. If anyone is interested in contributing, or has any
> > specific ideas about what sort of features they would find the most
> useful,
>
> > please get in touch
>
>
> Hi,
>
> Great work on porting Gherkin 3 to Vala.
>
> I wanted to put forward a few ideas that I have been slowly
> researching over the past year or so in the hope they are
>
> insightful to any developments of testing tools for Vala.
>
> Gherkin
> ---
> Gherkin is a language for structuring human language in a
> way that allows business analysts, developers and testers to define
> features of an application.
>
> Some computer languages have tools available to developers to convert
>
> Gherkin to an outline of a computer program. The following meaningless
>
> example shows the structure. This uses PHP's Behat to convert Gherkin
>
> to PHP:
>
> Feature: test
>
> Background: given this is a test # features/test.feature:3
>
> Scenario: testing of app # features/test.feature:5
> When i run something
> Then it passes
>
> 1 scenario (1 undefined)
> 2 steps (2 undefined)
> 0m0.17s (9.41Mb)
>
> --- FeatureContext has missing steps. Define them with these snippets:
>
> /**
> * @When i run something
> */
> public function iRunSomething()
> {
> throw new PendingException();
> }
>
> /**
> * @Then it passes
> */
> public function itPasses()
> {
> throw new PendingException();
> }
>
> It is the feature context that forms the basis of generating
> automated acceptance tests from the features specified in
>
> Gherkin. The developer then fills in the gaps with code that
> drives the tests. In PHP web development this is a tool like
> Mink that can drive various headless web browsers.
>
> Automatic code generation for Vala
> --
> I can think of two approaches to generation code. I have
> tried neither.
>
> The first is to use libvala to generate a Vala AST then output
> the AST. Potentially libvala could be modified to generate a
>
> Genie version of the AST. This appeals to me.
>
> The other approach would be similar to Valadoc:
>
> https://git.gnome.org/browse/valadoc/tree/src/libvaladoc/api/formalparameter.vala#n131
>
> Code generation could also be useful for anyone wanting to
>
> develop a tool similar to RSpec. So a common approach using libvala
> may be helpful. I think Anjuta CTags also uses libvala for
>
> autosuggestion of function names etc. See:
>
> https://github.com/GNOME/anjuta/blob/master/plugins/symbol-db/anjuta-tags/ctags-visitor.vala
>
> Acceptance Testing Drivers
> --
> This is probably the hardest part given the wide range of
> interfaces available.
>
> Gherkin is from Cucumber written in Ruby with web application
> development in mind. So I think most tools there use web
>
> interfaces. In the Vala world this could be done with libsoup
> for a text analysis of the web interface, but also embedding
> Webkit or Gecko which also allows Javascript to be tested.
>
> Vala is often used for desktop GUI development. So Linux
> Desktop Testing Project ( http://ldtp.freedesktop.org/wiki/ )
> using Assistive Technology Service Provider Interface (
>
>
> https://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface
>  ) may be relevant.
>
> Of course software is also developed for technical users. So
> there are potentially command line interfaces, D-Bus interfaces, shared
> library interfaces and so o

Re: [Vala] Testing framework

2016-01-04 Thread Chris Daley
Hi all,

I've done some thinking about this over the last couple of months and used
the holiday period to finish off a few things, namely a port of Gherkin to
Vala. You can grab it from here if you want to check it out:
https://github.com/chebizarro/gherkin-vala

It doesn't do much at the moment, it just parses Gherkin feature files into
an AST that can be manipulated or output as JSON. My plan is to integrate
it with a more sophisticated framework on top of or at least compatible
with GLib Test. To this end, I've forked and updated the old Valadate
codebase as a possible starting point https://github.com/chebizarro/valadate

I imagine that the ideal framework would be similar to JUnit and feature a
GUI as well as a command line interface, but there's no reason it has to be
a carbon copy. I'm going to be sketching out what I think is a reasonable
roadmap over the next week or so with a view to an alpha release around the
end of February. If anyone is interested in contributing, or has any
specific ideas about what sort of features they would find the most useful,
please get in touch - you can often find me lurking on IRC as bizarro or
just send me an email.

Cheers
Chris D


2015-12-09 4:41 GMT-08:00 Felipe Lavratti <felipe...@gmail.com>:

> That is a nice question! I'd like to know the answer as well.
>
> I use CppUTest to test C/C++ code, in the worst case scenario I'd
> generate C code and test on top of it.
>
> On Wed, Dec 9, 2015 at 8:28 AM, mar...@saepia.net <mar...@saepia.net>
> wrote:
> > Hello,
> >
> > I am coming back to vala development after a while and I wonder, are
> there
> > any new/recommended testing frameworks besides one built-in into GLib?
> >
> > I dream about something like RSpec to Vala, can you recommend any
> projects
> > like this?
> >
> > Marcin
> > ___
> > vala-list mailing list
> > vala-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/vala-list
>
>
>
> --
> Skype: felipeanl
> _______
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1601 980 1249
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Settings.with_path help

2015-12-27 Thread Chris Daley
Hola Edwin,

To use the gschema file without installing your application first, you need
to compile it.

glib-compile-schemas /path/to/set.gschema.xml

This will create a file that you can load using the following code -

var sss = new SettingsSchemaSource.from_directory("/path/to/", null, false);

var schema = sss.lookup ("org.foo.MyApp.Window", false);

GLib.Settings settings = new Settings.full (schema, null, null);

...

If you compile and install your application, the compiled gschema file will
be installed in the application's data directory under /usr/local and the
code above will not work. You will need to add a conditional compilation
switch like this:

#if RUNLOCAL

var sss = new SettingsSchemaSource.from_directory("/path/to/", null, false);

var schema = sss.lookup ("org.foo.MyApp.Window", false);

GLib.Settings settings = new Settings.full (schema, null, null);

#else

GLib.Settings settings = new Settings ("org.foo.MyApp.Window");

#endif

valac -D RUNLOCAL myapp.vala


Espero que esto te ayude,
Saludos
Chris


2015-12-27 5:38 GMT-08:00 Edwin De La Cruz <edwinsp...@gmail.com>:

> Best regards.
> I'm trying to reproduce the example shown in xx but using
> new_with_path and failed to run, shows me the following message
>
> (process : 29989 ) : GLib - GIO -ERROR ** : Settings schema '
> set.gschema.xml ' is not installed
>
>
> xml name is set.gschema.xml and is in the same directory as the executable
> .
>
> Of example only thing I changed was the constructor
> var settings = new Settings.with_path ( " org.foo.MyApp.Window " ,
> "/ home / edwinspire / Documents / development / vala /") ;
>
> Not how it work , I searched in google but can not find examples to help
> me.
>
> I hope you can help me , thanks.
>
>
> Mis proyectos de software libre en:
> Github - edwinspire
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
m: +1601 980 1249
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list