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 621690 - Enable per-device events on gtk_widget_realize()
Enable per-device events on gtk_widget_realize()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.90.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-15 18:57 UTC by Carlos Garnacho
Modified: 2010-06-24 00:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GtkWidget: ensure device events are set on realize. (4.78 KB, patch)
2010-06-15 19:02 UTC, Carlos Garnacho
accepted-commit_now Details | Review

Description Carlos Garnacho 2010-06-15 18:57:53 UTC
Currently, device events set through gtk_widget_set_device_events() have no effect, this is the moral equivalent of gtk_widget_set_events(), which only has an effect on widgets' realize(), so I'm attaching a patch to the likewise for device events, it is as if gtk_widget_add_device_events() was called on realize for all affected devices.
Comment 1 Carlos Garnacho 2010-06-15 19:02:00 UTC
Created attachment 163717 [details] [review]
GtkWidget: ensure device events are set on realize.
Comment 2 Matthias Clasen 2010-06-16 15:35:25 UTC
Comment on attachment 163717 [details] [review]
GtkWidget: ensure device events are set on realize.

Might be a bit nicer to factor that loop over the hash table out as a utility function, but no big deal.
Comment 3 Carlos Garnacho 2010-06-24 00:24:49 UTC
Refactored the hashtable looping out and committed, thanks!