Callback signals for Custom Widgets


I have created my own custom widget, and I was wondering how I can
link or map GDK event types to my custom widget in particular the
key_press_event and button_press_event.

Furthermore, after a event type has been specified, say the
button_press_event, will I have to actually specify what
button_press_event should do? That this, will I have to actually
specify that button_press_event is a mouse activity or will this
automatically be done when I add the function to the my widget.

Thanks in advance,


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