# Signal & object

**URL:** <https://www.ruby-forum.com/t/signal-object/76800>\
**Category:** Ruby-Gnome 2\
**Created:** [November 21, 2006, 9:47am UTC](https://www.ruby-forum.com/t/signal-object/76800 "2006-11-21T09:47:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_Marzullo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a183cd/32.png) [@Laurent\_Marzullo](https://www.ruby-forum.com/u/Laurent_Marzullo)\
**Post date:** [November 21, 2006, 9:47am UTC](https://www.ruby-forum.com/t/signal-object/76800/1 "2006-11-21T09:47:53Z")

</div>

Hello,

I want to use signal (as in Gtk, not system signal) for some of my  
objects.  
And I would like to know if there’s any other way than inherited from  
GLib::Object to be able to define some signal for my own object ?

I’ve got the following:

class Score \< GLib::Object  
type\_register  
signal\_new( ‘value\_changed’ ,  
GLib::Signal::RUN\_FIRST,  
nil,  
GLib::Type[‘void’],  
Integer )

```
def initialize
    super()
end

```

end

And I want to get rid of all the GLib::Object stuff because I do not  
really see  
how it could be usefull in my case (except for signal 😉

Is there any way … I’ve seen something about ‘GLib::Instantiatable’  
but Ive  
not find any sample or tutorial for using it.

ANy hint/help please ?  
Thanks a lot.

±-------------------+

- Laurent Marzullo
- 

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
