Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Jan 26, 2024
1 parent de2fa76 commit 3018597
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fltk-webview"
version = "0.4.0"
version = "0.4.1"
authors = ["MoAlyousef <mohammed.alyousef@neurosrg.com>", "Adia Robbie <adyaro37@gmail.com>"]
edition = "2021"
description = "Webview for embedded fltk windows"
Expand All @@ -14,7 +14,7 @@ license = "MIT"
[dependencies]
# fltk = { version = "1.4", features = ["fltk-bundled"] }
fltk = "1.4"
fltk-webview-sys = { version = "0.3.0", path = "fltk-webview-sys" }
fltk-webview-sys = { version = "0.3.2", path = "fltk-webview-sys" }

# for the examples
[dev-dependencies]
Expand Down
23 changes: 23 additions & 0 deletions examples/basic2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
use fltk::{app, prelude::*, group, input, window};
use fltk_webview::*;

fn main() {
let app = app::App::default();
let mut win = window::Window::default()
.with_size(800, 600)
.with_label("Webview");
let mut col = group::Flex::default_fill().column();
col.set_margin(5);
let inp = input::Input::default();
col.fixed(&inp, 30);
let mut wv_win = window::Window::default();
col.end();
win.end();
win.make_resizable(true);
win.show();

let wv = Webview::create(false, &mut wv_win);
wv.navigate("https://google.com");

app.run().unwrap();
}
4 changes: 2 additions & 2 deletions fltk-webview-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fltk-webview-sys"
version = "0.3.1"
version = "0.3.2"
authors = ["MoAlyousef <mohammed.alyousef@neurosrg.com>", "Adia Robbie <adyaro37@gmail.com>"]
edition = "2018"
description = "Webview for embedded fltk windows"
Expand All @@ -12,7 +12,7 @@ readme = "../README.md"
license = "MIT"

[dependencies]
wv-sys = "0.1"
wv-sys = "0.1.2"

[build-dependencies]
pkg-config = "0.3"
Expand Down

0 comments on commit 3018597

Please sign in to comment.