# \[wiki\] TextView#add\_child\_at\_anchor

**URL:** <https://www.ruby-forum.com/t/wiki-textview-add-child-at-anchor/133988>\
**Category:** Ruby-Gnome 2\
**Created:** [April 6, 2008, 3:34am UTC](https://www.ruby-forum.com/t/wiki-textview-add-child-at-anchor/133988 "2008-04-06T03:34:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [April 6, 2008, 3:34am UTC](https://www.ruby-forum.com/t/wiki-textview-add-child-at-anchor/133988/1 "2008-04-06T03:34:06Z")

</div>

I believe the wiki-docu has a small error. This method accepts two  
arguments, not one. If none of you minds or objects (or wants to fix it  
on his own), I will fix this within the next ~3 days

"  
add\_child\_at\_anchor(child)  
Adds a child widget in the text buffer, at the given anchor.

```
    * child: a Gtk::Widget
    * anchor: a Gtk::TextChildAnchor in the Gtk::TextBuffer for the

```

Gtk::TextView  
\* Returns: self"

to

"  
add\_child\_at\_anchor(child, anchor)  
Adds a child widget in the text buffer, at the given anchor.

```
    * child: a Gtk::Widget
    * anchor: a Gtk::TextChildAnchor in the Gtk::TextBuffer for the

```

Gtk::TextView  
\* Returns: self"

URL:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATextView#add\_child\_at\_anchor](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATextView#add_child_at_anchor)

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [April 6, 2008, 3:58am UTC](https://www.ruby-forum.com/t/wiki-textview-add-child-at-anchor/133988/2 "2008-04-06T03:58:00Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] [wiki] TextView#add\_child\_at\_anchor” on Sun, 6  
Apr 2008 03:34:06 +0200,  
Marc H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I believe the wiki-docu has a small error. This method accepts two  
> arguments, not one. If none of you minds or objects (or wants to fix it  
> on his own), I will fix this within the next ~3 days

Please fix.

## Thanks,

kou
