Skip to content

Commit

Permalink
Switch to plain-gtk show_uri for 3.22 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackhole89 committed Dec 17, 2022
1 parent b47bfc9 commit 3ac64ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,10 @@ void CMainWindow::FollowLink(Glib::ustring url)
}

} else { // proper URL, the DE should know how to handle it
show_uri(url, GDK_CURRENT_TIME);
//gtkmm 3.24+
//show_uri(url, GDK_CURRENT_TIME);
//gtk 3.22 compat
gtk_show_uri_on_window(GTK_WINDOW(gobj()), url.c_str(), GDK_CURRENT_TIME, NULL);
}
}

Expand Down

0 comments on commit 3ac64ab

Please sign in to comment.