After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120773 - event mask not set
event mask not set
Status: RESOLVED DUPLICATE of bug 113763
Product: libglade
Classification: Deprecated
Component: gtk
2.0.x
Other Linux
: Normal major
: ---
Assigned To: James Henstridge
James Henstridge
Depends on:
Blocks:
 
 
Reported: 2003-08-26 17:24 UTC by Darren Hart
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description Darren Hart 2003-08-26 17:24:42 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
Comment 1 Darren Hart 2003-08-26 17:47:49 UTC
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 ***