stop using deprecated gtk_show_uri on Linux
This commit is contained in:
parent
0c28adc69e
commit
e4fcb7de08
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user