Skip to content

Commit fce8d32

Browse files
committed
small fixes
1 parent 3df3d06 commit fce8d32

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

examples/fire_event.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![allow(unused_variables)]
33
#![allow(non_snake_case)]
44

5-
#[macro_use]
65
extern crate sciter;
76

87
use sciter::Element;

examples/minimal.htm

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
<head>
33
<title>Minimalistic Sciter demo</title>
44
<style>
5-
5+
66
html {
77
background: radial-gradient(75% 75%, circle farthest-side, white, orange, rgb(0,0,204));
88
color:#fff;
99
}
10-
10+
1111
html:rtl {
1212
mapping: left-to-right(background);
1313
}
14-
14+
1515
</style>
1616
<script type="text/tiscript">
1717
stdout.println("hello, rust!");
1818
stdout.println("hello, again!");
1919

2020
view.caption = $(head > title).value;
21-
21+
2222
$(#machine).text = Sciter.machineName();
23-
23+
2424
var counter = 0;
25-
25+
2626
$(button#append).on("click", function(){
2727
$(body).$append(<h1#test>{++counter }</h1>);
2828
});
29-
29+
3030
$(button#open).on("click", function(){
31-
31+
3232
var fn = view.selectFile(#open,
3333
"HTML Files (*.htm,*.html)|*.HTM;*.HTML|All Files (*.*)|*.*" , "html" );
3434

@@ -42,13 +42,17 @@
4242

4343
<h1>Minimal Sciter Application</h1>
4444
<p>Running on <em #machine /> machine</p>
45-
45+
4646
<button #append>Append</button>
4747
<button #open>Open</button>
4848
<select>
4949
<option>First</option>
5050
<option>Second</option>
5151
<option>Third</option>
5252
</select>
53+
54+
<form>
55+
Text: <input type="text">
56+
</form>
5357
</body>
5458
</html>

src/capi/scgraphics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Sciter's platform independent graphics interface.
22
33
#![allow(non_camel_case_types, non_snake_case)]
4+
#![allow(dead_code)]
45

56
use capi::sctypes::{LPVOID};
67

0 commit comments

Comments
 (0)