Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library: ported Separator in rust #549

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Library/demos/Separator/code.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use crate::workbench;
use gtk::gio;

pub fn main() {
let picture_one: gtk::Picture = workbench::builder().object("picture_one").unwrap();
let picture_two: gtk::Picture = workbench::builder().object("picture_two").unwrap();

let file = gio::File::for_uri(workbench::resolve("./image.png").as_str());
mbilal234 marked this conversation as resolved.
Show resolved Hide resolved

picture_one.set_file(Some(&file));
picture_two.set_file(Some(&file));
}