ui/gtk: Use gtk_widget_get_window() to support both gtk2 and gtk3