[vala] glib-2.0: Fix SearchFunc argument order for {List, SList, Queue}.search()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Fix SearchFunc argument order for {List, SList, Queue}.search()
- Date: Wed, 14 Sep 2016 13:49:09 +0000 (UTC)
commit ee66513494586b243aa77af3813e6ff3aebc635a
Author: Ben <iofelben+github gmail com>
Date: Mon Oct 12 20:11:23 2015 -0400
glib-2.0: Fix SearchFunc argument order for {List,SList,Queue}.search()
The function takes two gconstpointer arguments, the List element's data as
the first argument and the given user data.
https://bugzilla.gnome.org/show_bug.cgi?id=754137
vapi/glib-2.0.vapi | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 22bb3e6..2bbc898 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -4346,7 +4346,7 @@ namespace GLib {
public unowned List<G> find (G data);
public unowned List<G> find_custom (G data, CompareFunc<G> func);
[CCode (cname = "g_list_find_custom", simple_generics = true)]
- public unowned List<G> search<T> (T data, SearchFunc<T,G> func);
+ public unowned List<G> search<T> (T data, SearchFunc<G,T> func);
public int position (List<G> llink);
public int index (G data);
@@ -4406,7 +4406,7 @@ namespace GLib {
public unowned SList<G> find (G data);
public unowned SList<G> find_custom (G data, CompareFunc<G> func);
[CCode (cname = "g_slist_find_custom", simple_generics = true)]
- public unowned SList<G> search<T> (T data, SearchFunc<T,G> func);
+ public unowned SList<G> search<T> (T data, SearchFunc<G,T> func);
public int position (SList<G> llink);
public int index (G data);
@@ -4453,7 +4453,7 @@ namespace GLib {
[Version (since = "2.4")]
public unowned List<G> find_custom (G data, CompareFunc<G> func);
[CCode (cname = "g_queue_find_custom", simple_generics = true)]
- public unowned List<G> search<T> (T data, SearchFunc<T,G> func);
+ public unowned List<G> search<T> (T data, SearchFunc<G,T> func);
[Version (since = "2.4")]
public void sort (CompareDataFunc<G> compare_func);
public void push_head (owned G data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]