<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.programming.vala">
    <title>gmane.comp.programming.vala</title>
    <link>http://blog.gmane.org/gmane.comp.programming.vala</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10329"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10328"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10327"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10326"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10325"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10324"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10323"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10322"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10321"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10320"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10319"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10318"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10317"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10316"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10315"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10314"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10313"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10312"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10311"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.vala/10310"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10329">
    <title>Re: [Vala] Mad question - C to Vala</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10329</link>
    <description>&lt;pre&gt;
Indeed. calav -o revealo_sourcodeo.vala obscuranto_gobjecticus.c
:D


\d
&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-23T08:52:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10328">
    <title>Re: [Vala] Mad question - C to Vala</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10328</link>
    <description>&lt;pre&gt;Yeah, I figured :) Ah well.


\d
&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-23T08:49:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10327">
    <title>Re: [Vala] GDBus codegen support</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10327</link>
    <description>&lt;pre&gt;I remembered such a thing. It's indexed so badly from search engines 
:-(. A reference to this tool must be added to l.g.o. with proper keywords.
_______________________________________________
vala-list mailing list
vala-list&amp;lt; at &amp;gt;gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
&lt;/pre&gt;</description>
    <dc:creator>Luca Bruno</dc:creator>
    <dc:date>2013-05-23T07:58:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10326">
    <title>[Vala] Customized Cell for List</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10326</link>
    <description>&lt;pre&gt;Hi everyone,

I'm trying to create a customized object to represent a list of objects.
Since now, I have followed some different methods and none of them has
brought me to the solution.

First, I have created a Gtk.Fixed with some Gtk.Labels inside: then, when I
have to represent the list, the code clones the Fixed many times as
necessary. But, this led me to a problem: each time the Fixed is cloned,
any callback that is connected to the first fixed, is disconnected and
re-connected to the just created one.

Then, I have created a Gtk.TreeView to try some customizations on its cell:
I did not manage to get big changes, but only few customizations,
completely useless to me. How can I customize more a Cell?

Is there a better way to implement this?
Thank you very much,
Christian
&lt;/pre&gt;</description>
    <dc:creator>Christian Capasso</dc:creator>
    <dc:date>2013-05-23T07:56:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10325">
    <title>Re: [Vala] GDBus codegen support</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10325</link>
    <description>&lt;pre&gt;Hi Tiago,

On Wed, 2013-05-22 at 21:50 -0300, Tiago Katcipis wrote:

There is a separate tool called vala-dbus-binding-tool, see
http://git.freesmartphone.org/?p=vala-dbus-binding-tool.git;a=summary

Regards,
Jürg

_______________________________________________
vala-list mailing list
vala-list&amp;lt; at &amp;gt;gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
&lt;/pre&gt;</description>
    <dc:creator>Jürg Billeter</dc:creator>
    <dc:date>2013-05-23T07:55:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10324">
    <title>Re: [Vala] GDBus codegen support</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10324</link>
    <description>&lt;pre&gt;So you're asking a way to generate Vala code with gdbus-codegen? That 
indeed makes sense. There's no such program or plan for making it that I 
know.
I can see these possibilities:
1) Enhance current gdbus-codegen to support generating vala code. Note 
that this program is not written in vala obviously.
2) Create a separate gdbus like codegen for vala, and decide whether to 
ship this program with vala as contrib, as a valac option, or a separate 
project
3) Do not generate vala code at all, instead integrate the xml parser 
inside valac itself to create the necessary ast. I don't like this much 
as you can't see how vala maps from gdbus idl to vala.
&lt;/pre&gt;</description>
    <dc:creator>Luca Bruno</dc:creator>
    <dc:date>2013-05-23T07:30:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10323">
    <title>[Vala] GDBus codegen support</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10323</link>
    <description>&lt;pre&gt;Hi all,

First of all congratulations on such a great idea such as Vala. I'm working
on a very limited environment where C++ is not an option, so to do object
orientation I'm using GObject. But writing GObjects by hand is quite
annoying :-), so Vala is really a boost on GObject development, making such
a high level language generating C code and with low overhead bindings is
just great.

But I'm working with a lot of legacy code written in C/Gobject, algo there
is a lot of GDBus generated code (and of course, DBus interfaces
descriptions, on xml). Now we started to use Vala and it is just great to
write DBus interfaces, the client code and the server code, both are just
easy and beautiful.

But even it being simple...i just feel that I'm repeating myself, having to
map what is defined on the DBus IDL xmls that generates the C code on
Valacode by hand (i know the
Vala code is pretty straightforward, but it is still duplication, manually
doing this is error prone and just annoying). This kind of duplication
irritates me, it does not seen to be healthy :-).

Is there any plan on supporting Vala on GDbus codegen ? I would be very
interested on doing it...and it really seems to be a good idea, but i may
be missing something, or there is another tool that can help.

Best regards,
Tiago Katcipis
&lt;/pre&gt;</description>
    <dc:creator>Tiago Katcipis</dc:creator>
    <dc:date>2013-05-23T00:50:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10322">
    <title>Re: [Vala] Mad question - C to Vala</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10322</link>
    <description>&lt;pre&gt;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 Ruiz Saavedra
&amp;lt;desiderantes&amp;lt; at &amp;gt;rocketmail.com&amp;gt; wrote:

_______________________________________________
vala-list mailing list
vala-list&amp;lt; at &amp;gt;gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
&lt;/pre&gt;</description>
    <dc:creator>Steven Oliver</dc:creator>
    <dc:date>2013-05-22T16:19:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10321">
    <title>Re: [Vala] Mad question - C to Vala</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10321</link>
    <description>&lt;pre&gt;I asked that some time ago, and no, there isn't anything like that, but i've seen similar efforts with other languages, like Retronator's "Automagically", which translates from Obj-C to C#.
_______________________________________________
Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mruizd-JMgHAozgOv0PQx2L+B5UNQ&amp;lt; at &amp;gt;public.gmane.org - identi.ca/desiderantes

-----Original Message-----
From: Donn &amp;lt;donn.ingle-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Sender: "vala-list" &amp;lt;vala-list-bounces-rDKQcyrBJuzYtjvyW6yDsg&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Date: Wed, 22 May 2013 14:13:59 
To: vala-list&amp;lt;vala-list-rDKQcyrBJuzYtjvyW6yDsg&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Subject: [Vala] Mad question - C to Vala

I foresee the answer, but heck: Is there some program to feed a gobject 
C source into that will spit out a vala source file? I'd love to see 
certain sources in Vala which fits my brain so much better.

\d

&lt;/pre&gt;</description>
    <dc:creator>Mario Daniel Ruiz Saavedra</dc:creator>
    <dc:date>2013-05-22T15:59:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10320">
    <title>[Vala] Mad question - C to Vala</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10320</link>
    <description>&lt;pre&gt;I foresee the answer, but heck: Is there some program to feed a gobject 
C source into that will spit out a vala source file? I'd love to see 
certain sources in Vala which fits my brain so much better.

\d

&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-22T12:13:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10319">
    <title>Re: [Vala] memory management with structs</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10319</link>
    <description>&lt;pre&gt;If you're using structs in Vala, be aware of this issue:

https://bugzilla.gnome.org/show_bug.cgi?id=661041

&lt;/pre&gt;</description>
    <dc:creator>Jim Nelson</dc:creator>
    <dc:date>2013-05-20T17:48:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10318">
    <title>Re: [Vala] memory management with structs [Solved]</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10318</link>
    <description>&lt;pre&gt;Thanks!

\d
&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-19T08:37:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10317">
    <title>Re: [Vala] Vala and Cairo 1.12</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10317</link>
    <description>&lt;pre&gt;
Noted. Thanks for the help.

\d
&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-19T08:33:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10316">
    <title>[Vala] Why do we keep static fields in GObject derived classes?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10316</link>
    <description>&lt;pre&gt;Why do we keep static fields in GObject derived classes?

There is currently no way of correctly accessing static class members 
unless at least one object is instantiated.
Moreover the initialisation of the fields depends on the variable type 
(valuetype/reftype).

     public class ClassA : Object {
         public static int int_value_a = 7;                    // &amp;lt;= 
Initialised in outside GObject class
         public static string string_value_a = "7";  // &amp;lt;= Initialised 
within the GObject class *_class_init
     }

     void main() {
         stdout.printf("Access to static member ClassA.int_value_a == 
%d\n",ClassA.int_value_a);
         stdout.printf("Access to static member ClassA.string_value_a == 
%s\n",ClassA.string_value_a);
         var a = new ClassA();
         stdout.printf("After first ClassA object instatiation\n");
         stdout.printf("Access to static member ClassA.int_value_a == 
%d\n",ClassA.int_value_a);
         stdout.printf("Access to static member ClassA.string_value_a == 
%s\n",ClassA.string_value_a);
     }

     =&amp;gt; output

     Access to static member ClassA.int_value_a    == 7
     Access to static member ClassA.string_value_a == (null)
     After first ClassA object instatiation
     Access to static member ClassA.int_value_a    == 7
     Access to static member ClassA.string_value_a == 7


Could we define static fields as guaranteed initialized once class 
fields? Keep the static modifier as a guard.

     public class ClassA : Object {
         public static int int_value_a = 7;                    // &amp;lt;= 
Move field initializer within the GObject class *_class_init
         public static string string_value_a = "7";  // &amp;lt;= Move field 
initializer within the GObject class *_class_init (AS-IS)

         /*
          * Allow as field initializers are generated within the GObject 
class *_class_init
      */
         static construct {
             int_value_a = 7;
             string_value_a = "7";
         }

         /*
          * Not allow access to static fields in a class construct block
          * as field initializers are generated within the GObject class 
*_base_init
          * and are initialized on each first call of a Gobject Type / 
Sub Type
      */
         class construct {
             /*
              * Issue an Error or Waring for BC:
              * Access to static member %s.%s in class construct 
forbidden/discouradged
              */
             int_value_a = 6;
             string_value_a = "6";
         }

         /*
          * Not allow access to static fields in a object construct block
          * as field initializers are generated within the GObject class 
*_constructor
          * and are initialized on each instantiation of an object.
      */
         construct {
             /*
              * Issue an Error or Waring for BC:
              * Access to static member %s.%s in construct 
forbidden/discouradged
              */
             int_value_a = 5;
             string_value_a = "5";
         }

         /*
          *  Not allow access in the standard object constructor 
(guaranteed initialize once)
      */
         public    ClassA () {
             /*
              * Issue an Error or Waring for BC:
              * Access to static member %s.%s in construct 
forbidden/discouradged
              */
             int_value_a = 4;
             string_value_a = "4";
         }

         /*
          *  Allow access for a non standard constuctor that overrules 
guaranteed initialize once
      */
         public    ClassA.x () {
             int_value_a = 4;
             string_value_a = "4";
         }
     }


I think this would make the behavior more defined.
&lt;/pre&gt;</description>
    <dc:creator>Geert Jordaens</dc:creator>
    <dc:date>2013-05-19T06:57:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10315">
    <title>Re: [Vala] Vala and Cairo 1.12</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10315</link>
    <description>&lt;pre&gt;2013/5/15 Donn &amp;lt;donn.ingle-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;


It's basically the same as declaring foreign functions in C.
Let's say you want to use the function 'int cairo_do_foo()' from Vala,
you would write something like:

namespace Cairo {
    [CCode (cname="cairo_do_foo")]
    extern int do_foo();
}

The 'CCode' part is a directive to valac for how it should
output the C code. We tell it the actual C function name
to use.

Jonas
&lt;/pre&gt;</description>
    <dc:creator>Jonas Kulla</dc:creator>
    <dc:date>2013-05-18T14:57:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10314">
    <title>Re: [Vala] memory management with structs (OT a bit)</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10314</link>
    <description>&lt;pre&gt;2013/5/18 Donn &amp;lt;donn.ingle-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;


I'm pretty sure he was simply referring to B. As he mentioned,
compact classes aren't exactly meant to be used in newly written
Vala code, but rather exist to make the writing of bindings easier.

i.e. How do you create a class that does *not* inherit from GObject?


By not specifying a parent class, ie. just "class MyKlass { ... }".

Jonas
&lt;/pre&gt;</description>
    <dc:creator>Jonas Kulla</dc:creator>
    <dc:date>2013-05-18T14:46:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10313">
    <title>Re: [Vala] memory management with structs (OT a bit)</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10313</link>
    <description>&lt;pre&gt;Okay, but did that answer the question? I'm not sure.

It was:
Are such classes the:
A) [Compact] classes
or
B) is any class that does not specify a parent class automatically a
"light" class?

i.e. How do you create a class that does *not* inherit from GObject?

\d
&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-18T13:26:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10312">
    <title>Re: [Vala] memory management with structs (OT a bit)</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10312</link>
    <description>&lt;pre&gt;2013/5/18 Donn &amp;lt;donn.ingle-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

Hi,

no, compact classes are even simpler than non-Gobject classes. The latter
still have reference count and can be extended,
whereas compact classes are mostly "classified" structs without ref count
which also cannot be extended in subclasses.
&lt;/pre&gt;</description>
    <dc:creator>Jonas Kulla</dc:creator>
    <dc:date>2013-05-18T11:40:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10311">
    <title>Re: [Vala] memory management with structs (OT a bit)</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10311</link>
    <description>&lt;pre&gt;Are such classes the [Compact] classes, or is any class that does not 
specify a parent class automatically a "light" class?

\d
&lt;/pre&gt;</description>
    <dc:creator>Donn</dc:creator>
    <dc:date>2013-05-18T11:12:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10310">
    <title>Re: [Vala] memory management with structs</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10310</link>
    <description>&lt;pre&gt;

They aren't ref counted. Structs are value types, they are always either
shallow copied or deep copied (depends on ownership).
Beware the only difference is with nullable structs. Unfortunately the
semantics there is a little different (it's a bug). Nullable structs are
allocated on the heap and are not copied.



Yes, should be possible, int, double, etc. are vala structs.



You can use classes that don't inherit from GObject, which are lighter.



Compact classes are used for bindings, they aren't well supported when
writing new vala code.



As above, they're especially suited for bindings. Compact classes are
usually non-ref counted. If it's not a struct and it's not a GTypeInstance,
it's probably a compact class.

&lt;/pre&gt;</description>
    <dc:creator>Luca Bruno</dc:creator>
    <dc:date>2013-05-18T10:15:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.vala/10309">
    <title>[Vala] memory management with structs</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.vala/10309</link>
    <description>&lt;pre&gt;Hi all:

How is the memory management in vala when using structs instead of 
classes? I presume they are not ref-counted...

The real questions are:

   * is it possible to use structs as elements in a Gee list without 
running into memory management problems?
   * How to avoid them, in case there are such problems? Or so Imust use 
true classes?
   * Can I use instead compact classes inside Gee lists adding them the 
memory management decorator?
   * In case the last answer is true, how are presented the compact 
classes outside Vala? (for programs using gobject-introspection). Is it 
possible to work with them from C?

Thanks.

&lt;/pre&gt;</description>
    <dc:creator>rastersoft</dc:creator>
    <dc:date>2013-05-18T09:41:28</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.programming.vala">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.programming.vala</link>
  </textinput>
</rdf:RDF>
