# When to use 'type\_register'?

**URL:** <https://www.ruby-forum.com/t/when-to-use-type-register/159021>\
**Category:** Ruby-Gnome 2\
**Created:** [January 30, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/when-to-use-type-register/159021 "2009-01-30T14:09:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazwak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mazwak](https://www.ruby-forum.com/u/mazwak)\
**Post date:** [January 30, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/when-to-use-type-register/159021/1 "2009-01-30T14:09:25Z")

</div>

Hi

I discovered lately the ‘type\_register’ thingy.

From the examples, and from my research it seems used mostly for  
subclassing buttons. But there isn’t much documentation about it.

So, I’m wondering, when should I use ‘type\_register’ when subclassing a  
GTK widget, and when not to ?

regards

Simon A.
