From 3b68476313e5bd3badae2a01ea2007e362ab7e7e Mon Sep 17 00:00:00 2001 From: Muhammad Bilal <111046732+mbilal234@users.noreply.github.com> Date: Tue, 29 Aug 2023 19:52:45 +0500 Subject: [PATCH 1/3] Create code.rs --- src/Library/demos/Separator/code.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Library/demos/Separator/code.rs diff --git a/src/Library/demos/Separator/code.rs b/src/Library/demos/Separator/code.rs new file mode 100644 index 000000000..b636133f3 --- /dev/null +++ b/src/Library/demos/Separator/code.rs @@ -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()); + + picture_one.set_file(Some(&file)); + picture_two.set_file(Some(&file)); +} From bc357b2674a4099212d736f25252f865951da9c9 Mon Sep 17 00:00:00 2001 From: Muhammad Bilal <111046732+mbilal234@users.noreply.github.com> Date: Tue, 29 Aug 2023 20:59:46 +0500 Subject: [PATCH 2/3] Update src/Library/demos/Separator/code.rs Co-authored-by: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> --- src/Library/demos/Separator/code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Library/demos/Separator/code.rs b/src/Library/demos/Separator/code.rs index b636133f3..5331c6b7d 100644 --- a/src/Library/demos/Separator/code.rs +++ b/src/Library/demos/Separator/code.rs @@ -5,7 +5,7 @@ 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()); + let file = gio::File::for_uri(&workbench::resolve("./image.png")); picture_one.set_file(Some(&file)); picture_two.set_file(Some(&file)); From f5985f4f6ac69098b5eb8094801e31393de2e1b4 Mon Sep 17 00:00:00 2001 From: Julian Hofer Date: Tue, 29 Aug 2023 20:08:00 +0200 Subject: [PATCH 3/3] Adds forgotten image.png to Separator demo --- src/Library/demos/Separator/image.png | Bin 0 -> 16882 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/Library/demos/Separator/image.png diff --git a/src/Library/demos/Separator/image.png b/src/Library/demos/Separator/image.png new file mode 100644 index 0000000000000000000000000000000000000000..ae33fbced422aeeb5284e7d1b8850cbc1a38a01f GIT binary patch literal 16882 zcmeHP4Omn48XuC9CKo@-&!UA{rjC8E!B|X1P~_qSWjgSC+d0F<$L2N!F{HFm$->mQ zYKWFMB@iw0>*59SAtSQ1TR}G~HN8d73atnvvHSm@opW~1&e_=pecb0h=(A_%<9*-% z`~KdK^MBtn-IO#ZE^yG8K|CHWFn(6-JRUFTL-^_E53W2M_rq=Q^$nU5Z-|ed$h#Aq z07}0*cz)pM!ys@-Iqv7@&x2fr;4=&yLmK!QX*;@dTWvA2=5K_2UJC z?^5uQfaANtcLn$uH#pX+1IO^so!H-5;0Q`4zT@ImNqkADSQHv21^gmOm_ih;5X<@E zFoiTyAqoR}`R#RT)NilT0)NUeTp>39_;eusDPv4bQhZDd-)u1%j2S48ms^_uymD5< zw0lo4OFsJYJ<*SDlq2PHMidpvAG@b0>4A?2RVj8X?&_}^v-R$gai@-6y40v^K6N@( z6QGG6a*MYzd*wXa^TU4q+O50fy^_0-234{U6x*q>atWmW1| z|2&;KX@1I&Ww)L_b+E4bz3g4%HtL5aY~fFj?muJu@^RBE=M+8t;CGEtw;BTLV?&=_ zJVRueymxS*r6K5cK>f+1mTkkc=7|Q_>f~n|Ck**_fBXE#n^RVmb`88#FyPQnCH0H_ z4O8L|A3Jh==m+(Iix(f4qCqD<_bV(L{OR_wTlehWa>lPM?I+df<=01ilWJX){{5Ao z{ASJ7Y#Mv%(vVSSl7FsgJbCi7HNSMsexv^W##5H2(w}r4AU1Q2>J(dwYPLde$_&*a zCLJ1@n`wp)<3&x)HEZ?hsEw~f(~MclkhY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