2004-08-19 Borja Sanchez Zamorano <borsanza@yahoo.es>

* gtk/Gtk.metadata : hide some methods on TextBuffer.
	* gtk/TextBuffer.custom : pass -1 for the text length to some
	more methods.

svn path=/trunk/gtk-sharp/; revision=32534
This commit is contained in:
Mike Kestner 2004-08-19 15:42:15 +00:00
parent 3ed97fa33d
commit d91ca3de7d
3 changed files with 32 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-08-19 Borja Sanchez Zamorano <borsanza@yahoo.es>
* gtk/Gtk.metadata : hide some methods on TextBuffer.
* gtk/TextBuffer.custom : pass -1 for the text length to some
more methods.
2004-08-18 John Luke <john.luke@gmail.com> 2004-08-18 John Luke <john.luke@gmail.com>
* AUTHORS: fix my name * AUTHORS: fix my name

View file

@ -214,6 +214,9 @@
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='GetStartIter']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr> <attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='GetStartIter']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='Insert']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='Insert']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='SetText']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='SetText']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='InsertInteractive']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='InsertInteractiveAtCursor']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='InsertAtCursor']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='MoveMarkByName']" name="name">MoveMark</attr> <attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='MoveMarkByName']" name="name">MoveMark</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='RemoveTagByName']" name="name">RemoveTag</attr> <attr path="/api/namespace/object[@cname='GtkTextBuffer']/method[@name='RemoveTagByName']" name="name">RemoveTag</attr>
<attr path="/api/namespace/object[@cname='GtkTextBuffer']/signal[@name='ApplyTag']" name="name">TagApplied</attr> <attr path="/api/namespace/object[@cname='GtkTextBuffer']/signal[@name='ApplyTag']" name="name">TagApplied</attr>

View file

@ -71,3 +71,26 @@ public void SetText (string text)
gtk_text_buffer_set_text (Handle, text, -1); gtk_text_buffer_set_text (Handle, text, -1);
} }
[DllImport("libgtk-win32-2.0-0.dll")]
static extern bool gtk_text_buffer_insert_interactive(IntPtr raw, ref Gtk.TextIter iter, string text, int len, bool default_editable);
public bool InsertInteractive(Gtk.TextIter iter, string text, bool default_editable)
{
return gtk_text_buffer_insert_interactive(Handle, ref iter, text, -1, default_editable);
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern bool gtk_text_buffer_insert_interactive_at_cursor(IntPtr raw, string text, int len, bool default_editable);
public bool InsertInteractiveAtCursor(string text, bool default_editable)
{
return gtk_text_buffer_insert_interactive_at_cursor(Handle, text, -1, default_editable);
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_text_buffer_insert_at_cursor(IntPtr raw, string text, int len);
public void InsertAtCursor(string text)
{
gtk_text_buffer_insert_at_cursor(Handle, text, -1);
}