GTK+ Custom Widget - Assign Button Release Handler in Class struct
- From: Agnel Kurian <agnel kurian gmail com>
- To: gtk-list gnome org
- Subject: GTK+ Custom Widget - Assign Button Release Handler in Class struct
- Date: Sat, 18 Feb 2012 13:50:28 +0530
Hello Everyone,
I have a custom GTK+ widget in which I need to handle the release of a mouse button. I have assigned my handler callback function to the button_release_event member of GtkWidgetClass in the '_class_init' function. I have also set the GDK_BUTTON_RELEASE_MASK flag in the '_realize' function. However, my handler is not being called. Are there any other steps I need to take in order to receive mouse events?
(I am following the Custom GTK+ widget tutorial at http://zetcode.com/tutorials/gtktutorial/customwidget/ )
-- Agnel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]