GNOME Bugzilla – Bug 120773
event mask not set
Last modified: 2004-12-22 21:47:04 UTC
After setting the Events: mask in the common tab of a drawingarea, libglade never seems to call gtk_widget_add_events(...) with the event mask set it glade. I have to add it manually by looking up the widget and setting the mask in the C file: gtk_widget_add_events(glade_xml_get_widget(xml, "drawingarea1"), GDK_BUTTON_PRESS_MASK); The release and motion events seem to be affected as well. I also noticed that unless I add both PRESS and RELEASE, release doesn't work (not sure if this is a bug or not). A trivial example of this behavior can be found at: http://www.dvhart.com/libglade_bug/hello_world.glade http://www.dvhart.com/libglade_bug/hello_world.c http://www.dvhart.com/libglade_bug/build.sh When clicking in the drawingarea to the right of the label, button_press should be printed to stdout. Regards, Darren Hart
I realized after I submitted this that it is a duplicate of #113763, perhaps the mentioned example files will be useful. Sorry for any confusion. *** This bug has been marked as a duplicate of 113763 ***