Blame 0002-use-latest-compatible-crates.patch

80357c2
diff --git a/Cargo.toml b/Cargo.toml
8961911
index e59996f..9476300 100644
80357c2
--- a/Cargo.toml
80357c2
+++ b/Cargo.toml
80357c2
@@ -3,16 +3,16 @@ name = "rs"
80357c2
 version = "0.1.0"
80357c2
 
80357c2
 [dependencies]
80357c2
-bitflags = "1.0.*"
80357c2
-clap = { version = "2.32.*", default-features = false }
80357c2
+bitflags = "1.2.*"
80357c2
+clap = { version = "2.33.*", default-features = false }
80357c2
 maplit = "1.0.*"
80357c2
-regex = "1.1.*"
80357c2
+regex = "1.3.*"
80357c2
 serde = { version = "1.0.*", features = ["derive"] }
80357c2
 serde_yaml = "0.8.*"
80357c2
 xkbcommon = { version = "0.4.*", features = ["wayland"] }
80357c2
 
80357c2
 [dependencies.cairo-rs]
80357c2
-version = "0.5.*"
80357c2
+version = "0.8.*"
80357c2
 
80357c2
 [dependencies.cairo-sys-rs]
80357c2
 version = ""
80357c2
@@ -33,7 +33,7 @@ version = ""
80357c2
 features = ["v2_44"]
80357c2
 
80357c2
 [dependencies.gtk]
80357c2
-version = "0.5.*"
80357c2
+version = "0.8.*"
80357c2
 features = ["v3_22"]
80357c2
 
80357c2
 [dependencies.gtk-sys]
8961911
diff --git a/src/layout.rs b/src/layout.rs
8961911
index 09fc4f7..a56b8c3 100644
8961911
--- a/src/layout.rs
8961911
+++ b/src/layout.rs
8961911
@@ -99,8 +99,8 @@ pub mod c {
8961911
 
8961911
     impl Bounds {
8961911
         pub fn contains(&self, point: &Point) -> bool {
8961911
-            (point.x > self.x && point.x < self.x + self.width
8961911
-                && point.y > self.y && point.y < self.y + self.height)
8961911
+            point.x > self.x && point.x < self.x + self.width
8961911
+                && point.y > self.y && point.y < self.y + self.height
8961911
         }
8961911
     }
8961911
 
80357c2
diff --git a/src/popover.rs b/src/popover.rs
8961911
index 96d3a97..4f85f0e 100644
80357c2
--- a/src/popover.rs
80357c2
+++ b/src/popover.rs
80357c2
@@ -13,7 +13,7 @@ use ::resources;
80357c2
 
80357c2
 use gio::ActionMapExt;
80357c2
 use gio::SettingsExt;
80357c2
-use gio::SimpleActionExt;
80357c2
+use gtk::prelude::BuilderExtManual;
80357c2
 use glib::translate::FromGlibPtrNone;
80357c2
 use glib::variant::ToVariant;
80357c2
 use gtk::PopoverExt;
8961911
@@ -154,7 +154,7 @@ fn get_settings(schema_name: &str) -> Option<gio::Settings> {
80357c2
 fn set_layout(kind: String, name: String) {
8961911
     let settings = get_settings("org.gnome.desktop.input-sources");
8961911
     if let Some(settings) = settings {
8961911
-        let inputs = settings.get_value("sources").unwrap();
8961911
+        let inputs = settings.get_value("sources");
8961911
         let current = (kind.clone(), name.clone());
8961911
         let inputs = variants::get_tuples(inputs).into_iter()
8961911
             .filter(|t| t != ¤t;;
8961911
@@ -308,7 +308,7 @@ pub fn show(
8961911
     let settings = get_settings("org.gnome.desktop.input-sources");
8961911
     let inputs = settings
8961911
         .map(|settings| {
8961911
-            let inputs = settings.get_value("sources").unwrap();
8961911
+            let inputs = settings.get_value("sources");
8961911
             variants::get_tuples(inputs)
8961911
         })
8961911
         .unwrap_or_else(|| Vec::new());
80357c2
diff --git a/src/style.rs b/src/style.rs
80357c2
index 153431a..2d7d539 100644
80357c2
--- a/src/style.rs
80357c2
+++ b/src/style.rs
80357c2
@@ -99,13 +99,13 @@ fn get_theme_name(settings: &gtk::Settings) -> GtkTheme {
80357c2
             name: {
80357c2
                 settings.get_property("gtk-theme-name")
80357c2
                     .or_print(logging::Problem::Surprise, "No theme name")
80357c2
-                    .and_then(|value| value.get::<String>())
80357c2
+                    .and_then(|value| value.get::<String>().unwrap())
80357c2
                     .unwrap_or(DEFAULT_THEME_NAME.into())
80357c2
             },
80357c2
             variant: {
80357c2
                 settings.get_property("gtk-application-prefer-dark-theme")
80357c2
                     .or_print(logging::Problem::Surprise, "No settings key")
80357c2
-                    .and_then(|value| value.get::<bool>())
80357c2
+                    .and_then(|value| value.get::<bool>().unwrap())
80357c2
                     .and_then(|dark_preferred| match dark_preferred {
80357c2
                         true => Some("dark".into()),
80357c2
                         false => None,