vala r1744 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1744 - in trunk: . vapi
- Date: Sun, 10 Aug 2008 13:33:10 +0000 (UTC)
Author: juergbi
Date: Sun Aug 10 13:33:10 2008
New Revision: 1744
URL: http://svn.gnome.org/viewvc/vala?rev=1744&view=rev
Log:
2008-08-10 JÃrg Billeter <j bitron ch>
* vapi/glib-2.0.vapi:
Add GCompletion binding, patch by Abderrahim Kitouni,
fixes bug 546252
Modified:
trunk/ChangeLog
trunk/vapi/glib-2.0.vapi
Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi (original)
+++ trunk/vapi/glib-2.0.vapi Sun Aug 10 13:33:10 2008
@@ -2233,6 +2233,27 @@
FLOAT_MALFORMED
}
+ /* Automatic String Completion */
+
+ [Compact]
+ [CCode (free_function = "g_completion_free")]
+ public class Completion {
+ public Completion (CompletionFunc? func = null);
+ public List<void*> items;
+ public CompletionFunc func;
+ public string prefix;
+ public List<void*> cache;
+ public CompletionStrncmpFunc strncmp_func;
+ public void add_items (List<void*> items);
+ public void remove_items (List<void*> items);
+ public void clear_items ();
+ public weak List<void*> complete (string prefix, out string? new_prefix = null);
+ public weak List<void*> complete_utf8 (string prefix, out string? new_prefix = null);
+ }
+
+ public static delegate string CompletionFunc (void* item);
+ public static delegate int CompletionStrncmpFunc (string s1, string s2, size_t n);
+
/* Timers */
[Compact]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]