diff --git a/ChangeLog b/ChangeLog index b8064140d..e51a507f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2003-02-09 Duncan Mak + * sources/Gtk.metadata: + * api/gtk-api.xml: Gtk.Editable.InsertText should have the + position be marked 'ref', not 'out', because it is an in-out parameter. + + * gtk/Entry.custom: Overload for InsertText. + * gtk/Clipboard.custom: New overload for SetText. + * sources/Gtk.metadata: Mark out params for methods in GtkCalendar, GtkCellRenderer, GtkWindow, GtkRuler, GtkLayout, GtkScrolledWindow and GtkSpinButton. Monotalk is very useful for this kind of work. diff --git a/api/gtk-api.xml b/api/gtk-api.xml index 2e417fc32..191884f34 100644 --- a/api/gtk-api.xml +++ b/api/gtk-api.xml @@ -887,7 +887,7 @@ - + diff --git a/gtk/Clipboard.custom b/gtk/Clipboard.custom index 0904f6e0c..6ee925ab6 100644 --- a/gtk/Clipboard.custom +++ b/gtk/Clipboard.custom @@ -51,4 +51,9 @@ return ret; } + public void SetText (string new_text) + { + SetText (new_text, new_text.Length); + } + diff --git a/gtk/Entry.custom b/gtk/Entry.custom new file mode 100644 index 000000000..65ac28a51 --- /dev/null +++ b/gtk/Entry.custom @@ -0,0 +1,14 @@ +// +// Gtk.Entry.custom - Allow customization of values in the GtkEntry +// +// This code is inserted after the automatically generated code. +// + +public int InsertText (string new_text) +{ + int position = 0; + + InsertText (new_text, new_text.Length, ref position); + + return position; +} diff --git a/sources/Gtk.metadata b/sources/Gtk.metadata index 22e1c26c4..a366dd7ca 100644 --- a/sources/Gtk.metadata +++ b/sources/Gtk.metadata @@ -53,7 +53,7 @@ gint* pass_as - out + ref