Skip to content

Commit b4648ec

Browse files
authored
Merge branch 'master' into mas-merge
2 parents 48f7b9e + 97be7ae commit b4648ec

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ before_install:
1313
script:
1414
- cd ui-sys
1515
- cargo build --verbose --tests --examples
16+
- xvfb-run cargo test
1617
- cd ../iui
1718
- cargo build --verbose --tests --examples
19+
- xvfb-run cargo test
1820
after_success: |
1921
[ $TRAVIS_BRANCH = master ] &&
2022
[ $TRAVIS_PULL_REQUEST = false ] &&

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,3 @@ assuming either a system or local (in `./lib/`) version of `libui` is available.
9898

9999
Note that _most of the time_, building `libui` on the fly is what you want. It does however
100100
require a copy of cmake, essential build tools, et cetera.
101-
102-
## Testing Note
103-
Travis does not connect video devices to their testing environments, so the tests cannot be run. Therefore, the "tests" only check compilation.
104-
105-
[libui]: https://github.com/andlabs/libui

iui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ is-it-maintained-open-issues = { repository = "LeoTindall/libui-rs" }
4343
maintenance = { status = "actively-developed" }
4444

4545
[dependencies]
46-
bitflags = "0.7"
46+
bitflags = "1.0"
4747
libc = "0.2"
4848
failure = "0.1.1"
4949
ui-sys = "0.1.1"

iui/src/controls/create_macro.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ macro_rules! define_control {
6767
}
6868
}
6969

70+
/// Return the underlying pointer for this control.
7071
#[allow(non_snake_case)]
71-
pub unsafe fn ptr(&self) -> *mut $sys_type {
72+
pub fn ptr(&self) -> *mut $sys_type {
7273
self.$sys_type
7374
}
7475
}

iui/src/controls/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ impl VerticalBox {
3737

3838
impl HorizontalBox {
3939
/// Create a new horizontal box layout.
40-
pub fn new(_ctx: &UI) -> VerticalBox {
41-
VerticalBox {
40+
pub fn new(_ctx: &UI) -> HorizontalBox {
41+
HorizontalBox {
4242
uiBox: unsafe { ui_sys::uiNewHorizontalBox() },
4343
}
4444
}

0 commit comments

Comments
 (0)