# Gtk::Frame - how to respond to mouse-click event?

**URL:** <https://www.ruby-forum.com/t/gtk-frame-how-to-respond-to-mouse-click-event/242567>\
**Category:** Ruby-Gnome 2\
**Created:** [July 2, 2015, 8:56pm UTC](https://www.ruby-forum.com/t/gtk-frame-how-to-respond-to-mouse-click-event/242567 "2015-07-02T20:56:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [July 2, 2015, 8:56pm UTC](https://www.ruby-forum.com/t/gtk-frame-how-to-respond-to-mouse-click-event/242567/1 "2015-07-02T20:56:43Z")

</div>

Hi. Consider this code here:

require ‘gtk2’

frame = Gtk::Frame.new(‘test’)  
window = Gtk::Window.new  
window.add frame  
window.show\_all  
window.resize(500,500)  
Gtk.main

Now I need to be able to respond to on-mouse-click events  
on Gtk::Frame, but I don’t seem to get any signals when  
I do so.

Help is greatly appreciated, perhaps I am missing something  
obvious - most other widgets seem to respond nicely to  
events.
