Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use V8StringToChar for linux SetTitle

  • Loading branch information...
commit a9374c7bab0ba6147de3599ce9e2fa7f1fe109e8 1 parent 4abdd9b
@milani milani authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/appjs_window.cpp
View
6 src/appjs_window.cpp
@@ -76,13 +76,17 @@ CREATE_INSTANCE_ACCESSOR(Window, Left, Integer, MAKE_INT32)
CREATE_INSTANCE_ACCESSOR(Window, Top, Integer, MAKE_INT32)
CREATE_INSTANCE_ACCESSOR(Window, Width, Integer, MAKE_INT32)
CREATE_INSTANCE_ACCESSOR(Window, Height, Integer, MAKE_INT32)
-CREATE_STRING_INSTANCE_ACCESSOR(Window, Title, String, V8StringToWCHAR)
CREATE_INSTANCE_ACCESSOR(Window, Topmost, Boolean, MAKE_BOOLEAN)
CREATE_INSTANCE_ACCESSOR(Window, Resizable, Boolean, MAKE_BOOLEAN)
CREATE_INSTANCE_ACCESSOR(Window, ShowChrome, Boolean, MAKE_BOOLEAN)
CREATE_INSTANCE_ACCESSOR(Window, Alpha, Boolean, MAKE_BOOLEAN)
CREATE_INSTANCE_ACCESSOR(Window, Opacity, Number, MAKE_DOUBLE)
CREATE_INSTANCE_ACCESSOR(Window, AutoResize, Boolean, MAKE_BOOLEAN)
+#ifdef __WIN__
+CREATE_STRING_INSTANCE_ACCESSOR(Window, Title, String, V8StringToWCHAR)
+#else
+CREATE_STRING_INSTANCE_ACCESSOR(Window, Title, String, V8StringToChar)
+#endif
CREATE_PROTOTYPE_INVOKER(Window, OpenDevTools)
CREATE_PROTOTYPE_INVOKER(Window, CloseDevTools)
Please sign in to comment.
Something went wrong with that request. Please try again.