[Glade-users] Calbacks for Click on label



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






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]