2005-10-19 Mike Kestner <mkestner@novell.com>
* gtk/TextBuffer.custom : add some obsolete overloads for backward compat with some not-completely-unusable 1.0.x methods. svn path=/trunk/gtk-sharp/; revision=52131
This commit is contained in:
parent
3c690c2a26
commit
05526600ae
3 changed files with 107 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-10-19 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/TextBuffer.custom : add some obsolete overloads for backward
|
||||
compat with some not-completely-unusable 1.0.x methods.
|
||||
|
||||
2005-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
|
||||
|
||||
* glib/Object.cs: remove the fast path. It was causing troubles with
|
||||
|
|
|
@ -1802,5 +1802,83 @@
|
|||
<since version="Gtk# 2.6" />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="InsertWithTags">
|
||||
<MemberSignature Language="C#" Value="public void InsertWithTags (Gtk.TextIter iter, string text, Gtk.TextTag[] tags);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="iter" Type="Gtk.TextIter" />
|
||||
<Parameter Name="text" Type="System.String" />
|
||||
<Parameter Name="tags" Type="Gtk.TextTag[]">
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.ParamArray</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Parameter>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="iter">To be added.</param>
|
||||
<param name="text">To be added.</param>
|
||||
<param name="tags">To be added.</param>
|
||||
<summary>Inserts text with tag information.</summary>
|
||||
<remarks>The overload is obsolete, replace by the ref TextIter overload.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Insert">
|
||||
<MemberSignature Language="C#" Value="public void Insert (Gtk.TextIter iter, string text);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="iter" Type="Gtk.TextIter" />
|
||||
<Parameter Name="text" Type="System.String" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="iter">To be added.</param>
|
||||
<param name="text">To be added.</param>
|
||||
<summary>Inserts text.</summary>
|
||||
<remarks>The overload is obsolete, replace by the ref TextIter overload.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="InsertRange">
|
||||
<MemberSignature Language="C#" Value="public void InsertRange (Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter end);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="iter" Type="Gtk.TextIter" />
|
||||
<Parameter Name="start" Type="Gtk.TextIter" />
|
||||
<Parameter Name="end" Type="Gtk.TextIter" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="iter">To be added.</param>
|
||||
<param name="start">To be added.</param>
|
||||
<param name="end">To be added.</param>
|
||||
<summary>Inserts a range of text.</summary>
|
||||
<remarks>This overload is obsolete, replaced by ref TextIter overloads since the iters passed in are updated by the caller.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Delete">
|
||||
<MemberSignature Language="C#" Value="public void Delete (Gtk.TextIter start, Gtk.TextIter end);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="start" Type="Gtk.TextIter" />
|
||||
<Parameter Name="end" Type="Gtk.TextIter" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="start">To be added.</param>
|
||||
<param name="end">To be added.</param>
|
||||
<summary>Delete text between two iterators.</summary>
|
||||
<remarks>This overload is obsolete, replaced by ref TextIter overloads since the iters passed in are updated by the caller.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -41,6 +41,12 @@ public void Clear ()
|
|||
Delete (ref start, ref end);
|
||||
}
|
||||
|
||||
[Obsolete ("Replaced by 'ref TextIter, ref TextIter' overload")]
|
||||
public void Delete (TextIter start, TextIter end )
|
||||
{
|
||||
Delete (ref start, ref end);
|
||||
}
|
||||
|
||||
// overload to paste clipboard contents at cursor editable by default.
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern void gtk_text_buffer_paste_clipboard (IntPtr raw, IntPtr clip, IntPtr iter, bool default_edit);
|
||||
|
@ -53,6 +59,12 @@ public void PasteClipboard (Gtk.Clipboard clipboard)
|
|||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern void gtk_text_buffer_insert (IntPtr raw, ref Gtk.TextIter iter, IntPtr text, int len);
|
||||
|
||||
[Obsolete ("Replaced by 'ref TextIter iter' overload")]
|
||||
public void Insert (TextIter iter, string text)
|
||||
{
|
||||
Insert (ref iter, text);
|
||||
}
|
||||
|
||||
public void Insert (ref Gtk.TextIter iter, string text)
|
||||
{
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (text);
|
||||
|
@ -60,6 +72,18 @@ public void Insert (ref Gtk.TextIter iter, string text)
|
|||
GLib.Marshaller.Free (native);
|
||||
}
|
||||
|
||||
[Obsolete ("Replaced by 'ref TextIter iter' overload")]
|
||||
public void InsertRange (TextIter iter, TextIter start, TextIter end )
|
||||
{
|
||||
InsertRange (ref iter, start, end);
|
||||
}
|
||||
|
||||
[Obsolete ("Replaced by 'ref TextIter iter' overload")]
|
||||
public void InsertWithTags (TextIter iter, string text, params TextTag[] tags)
|
||||
{
|
||||
InsertWithTags (ref iter, text, tags);
|
||||
}
|
||||
|
||||
public void InsertWithTags (ref TextIter iter, string text, params TextTag[] tags)
|
||||
{
|
||||
TextIter start;
|
||||
|
|
Loading…
Reference in a new issue