mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 02:48:21 -07:00
Compare commits
9 Commits
develop
...
261-korean
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff666379fd | ||
|
|
69000a0afb | ||
|
|
dd43737b82 | ||
|
|
061c3a6cca | ||
|
|
226b02646b | ||
|
|
2e9e6a398a | ||
|
|
cd3865038b | ||
|
|
9e6d6763ec | ||
|
|
e0856b8bfc |
@@ -20,3 +20,4 @@ Wails is what it is because of the time and effort given by these great people.
|
|||||||
* [Toyam Cox](https://github.com/Vaelatern)
|
* [Toyam Cox](https://github.com/Vaelatern)
|
||||||
* [Robin Eklind](https://github.com/mewmew)
|
* [Robin Eklind](https://github.com/mewmew)
|
||||||
* [Kris Raney](https://github.com/kraney)
|
* [Kris Raney](https://github.com/kraney)
|
||||||
|
* [soon cheol shin](https://github.com/scshin0572)
|
||||||
|
|||||||
@@ -217,6 +217,21 @@ struct webview_priv
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WEBVIEW_API void webview_set_title(struct webview *w, const char *title)
|
||||||
|
{
|
||||||
|
#ifdef UNICODE
|
||||||
|
wchar_t *u16title = webview_to_utf16(title);
|
||||||
|
if (u16title == NULL)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SetWindowText(w->priv.hwnd, u16title);
|
||||||
|
GlobalFree(u16title);
|
||||||
|
#else
|
||||||
|
SetWindowText(w->priv.hwnd, title);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static int webview_js_encode(const char *s, char *esc, size_t n)
|
static int webview_js_encode(const char *s, char *esc, size_t n)
|
||||||
{
|
{
|
||||||
int r = 1; /* At least one byte for trailing zero */
|
int r = 1; /* At least one byte for trailing zero */
|
||||||
|
|||||||
Reference in New Issue
Block a user