It was not needed, simple null check is enough.
Webview on macOS, Linux, and Windows correctly display empty webpage is content is empty, no need to display empty html document.
With this, Linux gtk backend is now fully in Rust, no c compiler needed.
Uses tinyfiledialogs to implement dialog functions on webview.
Removes original implementation.
Converts all examples that use dialogs to use tinyfiledialogs directly.
Note:
Your code will still work as it is, you will only get deprecation warnings,
you should eventually switch to tinyfiledialogs or some other crate for handling dialogs.
* Fix function signature of SetThreadDpiAwarenessContext.
* Don't return if SetThreadDpiAwarenessContext is not present.
* Use SetProcessDPIAware as fallback.
* Use system dpi awareness.
* Scale window size according to the DPI.
Previously `sscanf` is used in decoding the url-encoded html document.
But `sscanf` is quite expensive. Loading a larger document (~800KiB) has
a noticeable delay.
And mshtml is giving the third argument to `sscanf` a `char*` when it
should be an `int*`. It is very problematic.
This commit replaces them with our own hex decoding function.
* First pass at graceful exit
* Working macos unified exit
* fix example html to work with IE
* terminate > exit
* unified edge, I think
* update gtk c impl
* tag terminate as depricated
* fix old fn name
* remove OleUninitialize from edge
* remove queue_close
* remove terminate
* fix typo in edge cpp file
* inspect return value of graceful exit example
* actually create the variable inspected
* make example run a little faster
* Adjust cocoa webveiw_exit
* add back missing method on edge
* lots of pinting
* fix printf arg
* better even debug printing
* clean up debugging stuff
* remove some unneeded changes
* slow down example
* fix view title
* add comment about posting the event to the application on close
Closes#105Fixes#52
Added missing linked libraries to edge backend.
I also kept the pragmas, if someone want to build the backends separately, so they do not have to supply link library flags to msvc.