File: allow-build.diff

package info (click to toggle)
obfuscate 0.0.10-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 908 kB
  • sloc: sh: 26; makefile: 21; xml: 13
file content (36 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download | duplicates (2)
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);