Gtk UI: Fix context menu UI blocking (bug 1778)