GNOME Bugzilla – Bug 621690
Enable per-device events on gtk_widget_realize()
Last modified: 2010-06-24 00:24:49 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.
Created attachment 163717 [details] [review] GtkWidget: ensure device events are set on realize.
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.
Refactored the hashtable looping out and committed, thanks!