stop using deprecated gtk_show_uri on Linux

This commit is contained in:
phkahler 2023-01-31 21:41:23 -05:00 committed by Paul Kahler
parent 0c28adc69e
commit e4fcb7de08

View File

@ -1493,7 +1493,8 @@ std::vector<Platform::Path> GetFontFiles() {
} }
void OpenInBrowser(const std::string &url) { 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; Gtk::Main *gtkMain;