Tracktion / choc

A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linux warnings for webview (low priority)

dbadb opened this issue · comments

I noticed this warning when compiling choc/tests/main.cpp on Debian 11 (bullseye).. I briefly looked into the web_view_evaluate_javascript approach and the change appears non-trivial, though quite doable I'm sure. Functions just fine when compiled with the warning.

btw: this choc thing is, well, classy! (thanks for the creation).

../gui/choc_WebView.h: In member function ‘void choc::ui::WebView::Pimpl::evaluateJavascript(const string&)’:
../gui/choc_WebView.h:262:105: warning: ‘void webkit_web_view_run_javascript(WebKitWebView*, const gchar*, GCancellable*, GAsyncReadyCallback, gpointer)’ is deprecated: Use 'webkit_web_view_evaluate_javascript' instead [-Wdeprecated-declarations]
  262 |         webkit_web_view_run_javascript (WEBKIT_WEB_VIEW (webview), js.c_str(), nullptr, nullptr, nullptr);
         |                                                                                                      ^

Thanks - though doing a bit of research it sounds like this is very newly-deprecated, and people will be using the old SDK and have the old webkit installed for quite a while, so I think I might leave this for a while. (That seems to be what the maintainers of other projects are doing).

I think this issue is no longer a problem, and am closing it.. please re-open if I've misunderstood that!