preferences-window: Use GDK_EVENT_* constants

11 jobs for wip/exalm/cleanups in 16 minutes and 42 seconds (queued for 1 second)