My gut feeling says I'd prefer an API method `gtimelog.addHook('ui', extend_ui)`.

I'll think about it.