[mono/gtk-sharp] [2 commits] 68780a62: gio: Fix up returns type for several GSettings methods
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141a9612a10-2c4395f2-ae0a-42ed-a0f4-1995b578363c-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/gtk-sharp
Compare: https://github.com/mono/gtk-sharp/compare/c83c19615043...8e307d8eaa0d
Commit: 68780a6226599f91399384172de170edd1a94e03
Author: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-11 20:32:46 GMT
URL: https://github.com/mono/gtk-sharp/commit/68780a6226599f91399384172de170edd1a94e03
gio: Fix up returns type for several GSettings methods
Changed paths:
M gio/Gio.metadata
Modified: gio/Gio.metadata
===================================================================
@@ -151,6 +151,12 @@
<attr path="/api/namespace/object[@cname='GResolver']/*[@name='LookupServiceFinish']/return-type" name="elements_owned">true</attr>
<attr path="/api/namespace/object[@cname='GSettings']/method[@name='GetStrv']/return-type" name="null_term_array">1</attr>
<attr path="/api/namespace/object[@cname='GSettings']/method[@name='GetStrv']/return-type" name="owned">true</attr>
+ <attr path="/api/namespace/object[@cname='GSettings']/method[@name='ListChildren']/return-type" name="null_term_array">1</attr>
+ <attr path="/api/namespace/object[@cname='GSettings']/method[@name='ListChildren']/return-type" name="owned">true</attr>
+ <attr path="/api/namespace/object[@cname='GSettings']/method[@name='ListKeys']/return-type" name="null_term_array">1</attr>
+ <attr path="/api/namespace/object[@cname='GSettings']/method[@name='ListKeys']/return-type" name="owned">true</attr>
+ <attr path="/api/namespace/object[@cname='GSettings']/method[@name='ListRelocatableSchemas']/return-type" name="null_term_array">1</attr>
+ <attr path="/api/namespace/object[@cname='GSettings']/method[@name='ListSchemas']/return-type" name="null_term_array">1</attr>
<attr path="/api/namespace/object[@cname='GSettings']/method[@name='SetStrv']/*/*[@name='value']" name="null_term_array">1</attr>
<attr path="/api/namespace/object[@cname='GSimpleAction']/signal[@cname='activate']" name="name">Activated</attr>
<attr path="/api/namespace/object[@cname='GSimpleAsyncResult']/constructor[@cname='g_simple_async_result_new_error']" name="hidden">1</attr>
Commit: 8e307d8eaa0db7cfb9aaac76324c24d7e9486db4
Author: Stephan Sundermann <[email protected]> (xDarkice)
Committer: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-11 21:03:53 GMT
URL: https://github.com/mono/gtk-sharp/commit/8e307d8eaa0db7cfb9aaac76324c24d7e9486db4
generator: Remove redundant class name from method name
If you move a global method to a class, you often end up with something
like Tag.TagExists(). This will now be automatically renamed to
Tag.Exists().
Changed paths:
M generator/Method.cs
Modified: generator/Method.cs
===================================================================
@@ -133,6 +133,9 @@ private void GenerateDeclCommon (StreamWriter sw, ClassBase implementor)
else if (Modifiers == "new " || (dup != null && ((dup.Signature != null && Signature != null && dup.Signature.ToString() == Signature.ToString()) || (dup.Signature == null && Signature == null))))
sw.Write("new ");
+ if (Name.StartsWith (container_type.Name))
+ Name = Name.Substring (container_type.Name.Length);
+
if (is_get || is_set) {
if (retval.IsVoid)
sw.Write (Parameters.AccessorReturnType);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches