[Glade-users] Calbacks for Click on label

Damon Chaplin damon@karuna.uklinux.net
Sun, 22 Aug 2004 23:04:14 +0100


On Sat, 2004-08-21 at 13:45, singh janmejay wrote:
> Hi everybody...
> 
> I am developing a project in which I need to set a
> callback for label widget. I couldn't make out how to
> make it sensitive to mouse click.

Labels don't receive mouse button events (they don't have their own X
window). You need to place the label in a GtkEventBox widget and connect
to the button event signals of that.

Damon