<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/glib.git/gio/tests/test-codegen.xml, branch require-python34</title>
<subtitle>gitlab.gnome.org: GNOME/glib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/'/>
<entry>
<title>codegen: fix array out-param annotations</title>
<updated>2017-11-28T14:28:49+00:00</updated>
<author>
<name>Tim Waugh</name>
<email>twaugh@redhat.com</email>
</author>
<published>2014-12-05T15:25:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=d35d9b7911d1bd85c7ae47134d0232acfabdfd9a'/>
<id>d35d9b7911d1bd85c7ae47134d0232acfabdfd9a</id>
<content type='text'>
When using gdbus-codegen to produce generated code for a method with
an out parameter with a signature like 'as', make sure to include
an "(array)" annotation for that parameter.

(Reworked by Philip Withnall to improve code formatting.)

https://bugzilla.gnome.org/show_bug.cgi?id=741167
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using gdbus-codegen to produce generated code for a method with
an out parameter with a signature like 'as', make sure to include
an "(array)" annotation for that parameter.

(Reworked by Philip Withnall to improve code formatting.)

https://bugzilla.gnome.org/show_bug.cgi?id=741167
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Update tests for new inheritance-semantics for Since</title>
<updated>2012-10-03T15:23:04+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>zeuthen@gmail.com</email>
</author>
<published>2012-10-03T15:20:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=a8a416181c7ceaf44501e84a7fb790b520606a5e'/>
<id>a8a416181c7ceaf44501e84a7fb790b520606a5e</id>
<content type='text'>
Signed-off-by: David Zeuthen &lt;zeuthen@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Zeuthen &lt;zeuthen@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Don't generate invalid GObject property names</title>
<updated>2012-07-06T13:26:41+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>zeuthen@gmail.com</email>
</author>
<published>2012-07-06T13:19:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=d72116d8b7c802895be6b02093342fd9e770813d'/>
<id>d72116d8b7c802895be6b02093342fd9e770813d</id>
<content type='text'>
For a D-Bus property with name "Type" (fairly common), we used to
generate a GObject property with name "type-" and C accessors
get_type_() (to avoid clashing with the GType getter), set_type_()
(for symmetri).

However, the rules for GObject property names are fairly rigid and
specifically prohibit names ending in a dash.

Therefore change things so the chosen GObject property name is "type"
but preserve the naming rules for the C getter and setter (for the
same reasons: avoiding name clashing and symmetri).

This change does break the API of generated code (but only on the
GObject property level, the C symbols are not changed) but strictly
speaking the behavior was undefined since "type-" was an invalid
GObject property name.

Also add a test case for this.

Bug 679473.

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

Signed-off-by: David Zeuthen &lt;zeuthen@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For a D-Bus property with name "Type" (fairly common), we used to
generate a GObject property with name "type-" and C accessors
get_type_() (to avoid clashing with the GType getter), set_type_()
(for symmetri).

However, the rules for GObject property names are fairly rigid and
specifically prohibit names ending in a dash.

Therefore change things so the chosen GObject property name is "type"
but preserve the naming rules for the C getter and setter (for the
same reasons: avoiding name clashing and symmetri).

This change does break the API of generated code (but only on the
GObject property level, the C symbols are not changed) but strictly
speaking the behavior was undefined since "type-" was an invalid
GObject property name.

Also add a test case for this.

Bug 679473.

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

Signed-off-by: David Zeuthen &lt;zeuthen@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Add support for new org.gtk.GDBus.C.UnixFD annotation</title>
<updated>2011-07-21T20:06:18+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-07-21T20:03:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=c404dbed11bc8bf4212d15719ef3a87ebf76efff'/>
<id>c404dbed11bc8bf4212d15719ef3a87ebf76efff</id>
<content type='text'>
Also add convenience _with_unix_fd_list variants to GDBusConnection,
GDBusProxy and GDBusMethodInvocation types to easily support this.

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add convenience _with_unix_fd_list variants to GDBusConnection,
GDBusProxy and GDBusMethodInvocation types to easily support this.

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Handle unexpected XML tags</title>
<updated>2011-05-24T03:23:10+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-05-24T03:22:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=263ce3042ccf596f5cd59b1defa546df2602597d'/>
<id>263ce3042ccf596f5cd59b1defa546df2602597d</id>
<content type='text'>
This was reported in bug 650874. Add tests.

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

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was reported in bug 650874. Add tests.

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

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes</title>
<updated>2011-04-25T13:29:18+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-04-25T13:29:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=bbe945183be11dafc037fdf5f92cea49202b6401'/>
<id>bbe945183be11dafc037fdf5f92cea49202b6401</id>
<content type='text'>
Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Don't send out PropertiesChanged if value ends up not changing</title>
<updated>2011-04-15T19:53:28+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-04-15T19:53:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=6bccc46d152079d69cf8aebef08433b1ec6055c7'/>
<id>6bccc46d152079d69cf8aebef08433b1ec6055c7</id>
<content type='text'>
A fairly typical pattern is to have code that does

 foo_set_bar (object, "");
 if (some_condition)
   {
     foo_set_bar (object, "yes");
   }

where some_condition is often true every time @object is updated.

With this code, bar is essentially always "yes" but because of how
gdbus-codegen works, useless PropertiesChanged events got scheduled
and sent out. With this patch, we avoid that by always keeping the
original value around and comparing it only when we deem it's time to
send out the ::PropertiesChanged signal (typically in an idle but can
be forced by the user via flush()).

Also add a test case for this.

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A fairly typical pattern is to have code that does

 foo_set_bar (object, "");
 if (some_condition)
   {
     foo_set_bar (object, "yes");
   }

where some_condition is often true every time @object is updated.

With this code, bar is essentially always "yes" but because of how
gdbus-codegen works, useless PropertiesChanged events got scheduled
and sent out. With this patch, we avoid that by always keeping the
original value around and comparing it only when we deem it's time to
send out the ::PropertiesChanged signal (typically in an idle but can
be forced by the user via flush()).

Also add a test case for this.

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbus-codegen: Add support for the org.freedesktop.DBus.Deprecated annotation</title>
<updated>2011-04-15T16:56:07+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-04-15T16:56:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=e19734d6c3f24076d25ac7f290b97df76cad5056'/>
<id>e19734d6c3f24076d25ac7f290b97df76cad5056</id>
<content type='text'>
Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>GDBus: Support Ugly_Case and use org.gtk.GDBus.C.Name since it's C-only</title>
<updated>2011-04-15T12:24:40+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-04-15T12:24:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=febfc45fbeaf9f1df3de2310e32c6bce3ea9bbf3'/>
<id>febfc45fbeaf9f1df3de2310e32c6bce3ea9bbf3</id>
<content type='text'>
Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for org.gtk.GDBus.Since annotation</title>
<updated>2011-04-12T20:17:28+00:00</updated>
<author>
<name>David Zeuthen</name>
<email>davidz@redhat.com</email>
</author>
<published>2011-04-12T20:17:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=34a28f2f062281d9fb75fcd02c4df238def6396e'/>
<id>34a28f2f062281d9fb75fcd02c4df238def6396e</id>
<content type='text'>
And use this for a) documentation purposes; and b) to preserve C ABI
when an interface is extended. See

 https://bugzilla.gnome.org/show_bug.cgi?id=647577#c5

for more details. Also add test cases for this.

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And use this for a) documentation purposes; and b) to preserve C ABI
when an interface is extended. See

 https://bugzilla.gnome.org/show_bug.cgi?id=647577#c5

for more details. Also add test cases for this.

Signed-off-by: David Zeuthen &lt;davidz@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
