stop using deprecated gtk_show_uri on Linux

pull/1344/head
phkahler 2023-01-31 21:41:23 -05:00 committed by Paul Kahler
parent 0c28adc69e
commit e4fcb7de08
1 changed files with 2 additions and 1 deletions

View File

@ -1493,7 +1493,8 @@ std::vector<Platform::Path> GetFontFiles() {
}
void OpenInBrowser(const std::string &url) {
gtk_show_uri(Gdk::Screen::get_default()->gobj(), url.c_str(), GDK_CURRENT_TIME, NULL);
// first param should be our window?
gtk_show_uri_on_window(NULL, url.c_str(), GDK_CURRENT_TIME, NULL);
}
Gtk::Main *gtkMain;