1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Patch source to allow build with debian crates
Author: Matthias Geiger <werdahias@riseup.net>
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/application.rs
+++ b/src/application.rs
@@ -90,7 +90,7 @@ impl Application {
.developers(vec!["Bilal Elmoussaoui", "Alexander Mikhaylenko"])
.artists(vec!["Jakub Steiner", "Tobias Bernard"])
.build()
- .present(&self.window());
+ .present(Some(&self.window()));
}
fn window(&self) -> Window {
--- a/src/widgets/drawing_area.rs
+++ b/src/widgets/drawing_area.rs
@@ -588,7 +588,7 @@ impl DrawingArea {
let Some(renderer) = self
.root()
.and_upcast::<gtk::Native>()
- .and_then(|n| n.renderer())
+ .and_then(|n| Some(n.renderer()))
else {
return;
};
@@ -613,7 +613,7 @@
let Some(node) = snapshot.to_node() else {
return;
};
- let texture = renderer.render_texture(&node, None);
+ let texture = renderer.expect("REASON").render_texture(&node, None);
imp.history.borrow_mut().push(texture);
self.set_saved(false);
|