Fixes the compilation of ui/gtk.c

It seems a `#if` directive was missing because a `#endif` was alone. I used the "unknown reference" errors to find the right place for this directive and now the `make` works!