[fractal] chore: Update libadwaita
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] chore: Update libadwaita
- Date: Wed, 3 Aug 2022 11:04:08 +0000 (UTC)
commit 96d1cb3a697c1f16b7b7c2b544219fa71e189398
Author: Julian Sparber <julian sparber net>
Date: Fri Jul 22 11:25:51 2022 +0200
chore: Update libadwaita
Cargo.lock | 9 +++++----
Cargo.toml | 3 ++-
src/account_switcher/avatar_with_selection.rs | 2 +-
src/components/action_button.rs | 2 +-
src/components/audio_player.rs | 2 +-
src/components/auth_dialog.rs | 1 -
src/components/avatar.rs | 2 +-
src/components/badge.rs | 2 +-
src/components/button_row.rs | 1 -
src/components/context_menu_bin.rs | 2 +-
src/components/custom_entry.rs | 2 +-
src/components/editable_avatar.rs | 1 -
src/components/entry_row.rs | 1 -
src/components/in_app_notification.rs | 2 +-
src/components/location_viewer.rs | 2 +-
src/components/media_content_viewer.rs | 2 +-
src/components/password_entry_row.rs | 1 -
src/components/pill.rs | 2 +-
src/components/reaction_chooser.rs | 2 +-
src/components/room_title.rs | 2 +-
src/components/spinner_button.rs | 2 +-
src/components/video_player.rs | 2 +-
src/login/login_advanced_dialog.rs | 2 +-
src/session/account_settings/devices_page/mod.rs | 2 +-
src/session/account_settings/mod.rs | 1 -
.../account_settings/user_page/change_password_subpage.rs | 1 -
.../account_settings/user_page/deactivate_account_subpage.rs | 1 -
src/session/account_settings/user_page/mod.rs | 1 -
src/session/content/explore/mod.rs | 2 +-
src/session/content/invite.rs | 2 +-
src/session/content/mod.rs | 2 +-
src/session/content/room_details/invite_subpage/mod.rs | 2 +-
src/session/content/room_details/member_page/mod.rs | 1 -
src/session/content/room_details/mod.rs | 1 -
src/session/content/room_history/divider_row.rs | 2 +-
src/session/content/room_history/item_row.rs | 2 +-
src/session/content/room_history/message_row/audio.rs | 1 -
src/session/content/room_history/message_row/file.rs | 2 +-
src/session/content/room_history/message_row/location.rs | 2 +-
src/session/content/room_history/message_row/media.rs | 1 -
src/session/content/room_history/message_row/mod.rs | 1 -
src/session/content/room_history/message_row/reaction.rs | 2 +-
src/session/content/room_history/message_row/reaction_list.rs | 2 +-
src/session/content/room_history/message_row/reply.rs | 2 +-
src/session/content/room_history/message_row/text.rs | 2 +-
src/session/content/room_history/mod.rs | 1 -
src/session/content/room_history/state_row/creation.rs | 2 +-
src/session/content/room_history/state_row/mod.rs | 2 +-
src/session/content/room_history/state_row/tombstone.rs | 2 +-
src/session/content/room_history/verification_info_bar.rs | 2 +-
src/session/content/verification/emoji.rs | 2 +-
src/session/content/verification/identity_verification_widget.rs | 2 +-
src/session/content/verification/session_verification.rs | 2 +-
src/session/event_source_dialog.rs | 2 +-
src/session/media_viewer.rs | 2 +-
src/session/room_creation/mod.rs | 2 +-
src/session/sidebar/mod.rs | 1 -
src/session/sidebar/row.rs | 2 +-
58 files changed, 47 insertions(+), 61 deletions(-)
---
diff --git a/Cargo.lock b/Cargo.lock
index b899b2e5c..dabd2ab31 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2139,10 +2139,11 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "libadwaita"
-version = "0.1.1"
+version = "0.2.0-alpha.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2ae453d28e3b91f03749f02b1531e8cfe315a1d0762b77a61797d2ab80bb87d"
+checksum = "49ad2318c7abc8629b1d1ed381bd0356c184ae8f4caebc044ef9de1782c86046"
dependencies = [
+ "futures-channel",
"gdk-pixbuf",
"gdk4",
"gio",
@@ -2156,9 +2157,9 @@ dependencies = [
[[package]]
name = "libadwaita-sys"
-version = "0.1.0"
+version = "0.2.0-alpha.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f18b6ac4cadd252a89f5cba0a5a4e99836131795d6fad37b859ac79e8cb7d2c8"
+checksum = "e835f99b92f6e7f43ddb2c0ca79d9d21124a170190876505e03484f337f7edc7"
dependencies = [
"gdk4-sys",
"gio-sys",
diff --git a/Cargo.toml b/Cargo.toml
index 4697fe2b6..0be2a9ded 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -61,7 +61,8 @@ features = ["v4_6"]
[dependencies.adw]
package = "libadwaita"
-version = "0.1.0"
+version = "0.2.0-alpha.2"
+features = ["v1_2"]
[dependencies.shumate]
package = "libshumate"
diff --git a/src/account_switcher/avatar_with_selection.rs b/src/account_switcher/avatar_with_selection.rs
index ed133cb6f..152c0485d 100644
--- a/src/account_switcher/avatar_with_selection.rs
+++ b/src/account_switcher/avatar_with_selection.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use crate::{components::Avatar, session::Avatar as AvatarItem};
diff --git a/src/components/action_button.rs b/src/components/action_button.rs
index cc627059c..7b01e949e 100644
--- a/src/components/action_button.rs
+++ b/src/components/action_button.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, glib::closure_local, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::closure_local, prelude::*, CompositeTemplate};
#[derive(Debug, Hash, Eq, PartialEq, Clone, Copy, glib::Enum)]
#[repr(u32)]
diff --git a/src/components/audio_player.rs b/src/components/audio_player.rs
index e68cb7d53..a8867ed76 100644
--- a/src/components/audio_player.rs
+++ b/src/components/audio_player.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{gio, glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gio, glib, prelude::*, CompositeTemplate};
mod imp {
use std::cell::{Cell, RefCell};
diff --git a/src/components/auth_dialog.rs b/src/components/auth_dialog.rs
index ab3d5521b..71cbe057c 100644
--- a/src/components/auth_dialog.rs
+++ b/src/components/auth_dialog.rs
@@ -6,7 +6,6 @@ use gtk::{
gio::prelude::*,
glib::{self, clone},
prelude::*,
- subclass::prelude::*,
CompositeTemplate,
};
use matrix_sdk::{
diff --git a/src/components/avatar.rs b/src/components/avatar.rs
index 717a6f37f..b18eefc9a 100644
--- a/src/components/avatar.rs
+++ b/src/components/avatar.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use crate::session::Avatar as AvatarItem;
diff --git a/src/components/badge.rs b/src/components/badge.rs
index 81aee0fc6..4bac0ddec 100644
--- a/src/components/badge.rs
+++ b/src/components/badge.rs
@@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{glib, subclass::prelude::*};
+use gtk::glib;
use crate::session::room::{MemberRole, PowerLevel, POWER_LEVEL_MAX, POWER_LEVEL_MIN};
diff --git a/src/components/button_row.rs b/src/components/button_row.rs
index 88c0b252f..d5f779b6c 100644
--- a/src/components/button_row.rs
+++ b/src/components/button_row.rs
@@ -3,7 +3,6 @@ use gtk::{
glib,
glib::{clone, closure_local},
prelude::*,
- subclass::prelude::*,
CompositeTemplate,
};
diff --git a/src/components/context_menu_bin.rs b/src/components/context_menu_bin.rs
index 16a2e57de..f7762fd9b 100644
--- a/src/components/context_menu_bin.rs
+++ b/src/components/context_menu_bin.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{gdk, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gdk, glib, glib::clone, prelude::*, CompositeTemplate};
use log::debug;
mod imp {
diff --git a/src/components/custom_entry.rs b/src/components/custom_entry.rs
index ac60aafa1..d1f093c19 100644
--- a/src/components/custom_entry.rs
+++ b/src/components/custom_entry.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, subclass::prelude::*};
+use gtk::glib;
mod imp {
use super::*;
diff --git a/src/components/editable_avatar.rs b/src/components/editable_avatar.rs
index 7582d859d..52b4195c2 100644
--- a/src/components/editable_avatar.rs
+++ b/src/components/editable_avatar.rs
@@ -4,7 +4,6 @@ use gtk::{
gdk, gio, glib,
glib::{clone, closure_local},
prelude::*,
- subclass::prelude::*,
CompositeTemplate,
};
use log::error;
diff --git a/src/components/entry_row.rs b/src/components/entry_row.rs
index 78f792b3d..ff4058f0c 100644
--- a/src/components/entry_row.rs
+++ b/src/components/entry_row.rs
@@ -3,7 +3,6 @@ use gtk::{
gdk, glib,
glib::{clone, closure_local},
prelude::*,
- subclass::prelude::*,
CompositeTemplate,
};
diff --git a/src/components/in_app_notification.rs b/src/components/in_app_notification.rs
index 980a80912..268a0b542 100644
--- a/src/components/in_app_notification.rs
+++ b/src/components/in_app_notification.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{gio, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gio, glib, glib::clone, prelude::*, CompositeTemplate};
use crate::components::Toast;
diff --git a/src/components/location_viewer.rs b/src/components/location_viewer.rs
index fe52b9c4f..ce7468490 100644
--- a/src/components/location_viewer.rs
+++ b/src/components/location_viewer.rs
@@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{glib, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, CompositeTemplate};
use shumate::prelude::*;
use crate::i18n::gettext_f;
diff --git a/src/components/media_content_viewer.rs b/src/components/media_content_viewer.rs
index b01687873..dc4bbc7e7 100644
--- a/src/components/media_content_viewer.rs
+++ b/src/components/media_content_viewer.rs
@@ -1,6 +1,6 @@
use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext;
-use gtk::{gdk, gio, glib, glib::clone, subclass::prelude::*, CompositeTemplate};
+use gtk::{gdk, gio, glib, glib::clone, CompositeTemplate};
use log::warn;
use super::{AudioPlayer, LocationViewer};
diff --git a/src/components/password_entry_row.rs b/src/components/password_entry_row.rs
index 1dbcc2e29..048404c43 100644
--- a/src/components/password_entry_row.rs
+++ b/src/components/password_entry_row.rs
@@ -3,7 +3,6 @@ use gtk::{
gdk, glib,
glib::{clone, closure_local},
prelude::*,
- subclass::prelude::*,
CompositeTemplate,
};
diff --git a/src/components/pill.rs b/src/components/pill.rs
index 2691a7870..fe7446741 100644
--- a/src/components/pill.rs
+++ b/src/components/pill.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use crate::{
components::Avatar,
diff --git a/src/components/reaction_chooser.rs b/src/components/reaction_chooser.rs
index 0f439debd..d396ae004 100644
--- a/src/components/reaction_chooser.rs
+++ b/src/components/reaction_chooser.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use crate::session::room::ReactionList;
diff --git a/src/components/room_title.rs b/src/components/room_title.rs
index 2c8d1a83d..4302efefb 100644
--- a/src/components/room_title.rs
+++ b/src/components/room_title.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use html2pango::markup;
mod imp {
diff --git a/src/components/spinner_button.rs b/src/components/spinner_button.rs
index e21c1bfb5..e7e29b8dd 100644
--- a/src/components/spinner_button.rs
+++ b/src/components/spinner_button.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
mod imp {
use glib::subclass::InitializingObject;
diff --git a/src/components/video_player.rs b/src/components/video_player.rs
index 2f79671e4..9fa6cc23c 100644
--- a/src/components/video_player.rs
+++ b/src/components/video_player.rs
@@ -1,7 +1,7 @@
use adw::subclass::prelude::*;
use gst::ClockTime;
use gst_player::{Player, PlayerGMainContextSignalDispatcher};
-use gtk::{gio, glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gio, glib, prelude::*, CompositeTemplate};
use super::VideoPlayerRenderer;
diff --git a/src/login/login_advanced_dialog.rs b/src/login/login_advanced_dialog.rs
index 80dd9e53f..4b281b2bc 100644
--- a/src/login/login_advanced_dialog.rs
+++ b/src/login/login_advanced_dialog.rs
@@ -1,7 +1,7 @@
use std::cell::Cell;
use adw::subclass::prelude::*;
-use gtk::{gdk, glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gdk, glib, prelude::*, CompositeTemplate};
mod imp {
use glib::subclass::InitializingObject;
diff --git a/src/session/account_settings/devices_page/mod.rs
b/src/session/account_settings/devices_page/mod.rs
index 29139717b..0da361a43 100644
--- a/src/session/account_settings/devices_page/mod.rs
+++ b/src/session/account_settings/devices_page/mod.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
mod device;
use self::device::Device;
diff --git a/src/session/account_settings/mod.rs b/src/session/account_settings/mod.rs
index e27e487c0..b50a0266e 100644
--- a/src/session/account_settings/mod.rs
+++ b/src/session/account_settings/mod.rs
@@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gtk::{
glib,
glib::{clone, FromVariant},
- subclass::prelude::*,
CompositeTemplate,
};
diff --git a/src/session/account_settings/user_page/change_password_subpage.rs
b/src/session/account_settings/user_page/change_password_subpage.rs
index 0e2a71f1a..157d04167 100644
--- a/src/session/account_settings/user_page/change_password_subpage.rs
+++ b/src/session/account_settings/user_page/change_password_subpage.rs
@@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext;
use gtk::{
glib::{self, clone},
- subclass::prelude::*,
CompositeTemplate,
};
use log::error;
diff --git a/src/session/account_settings/user_page/deactivate_account_subpage.rs
b/src/session/account_settings/user_page/deactivate_account_subpage.rs
index a7816b1ac..8974d0b80 100644
--- a/src/session/account_settings/user_page/deactivate_account_subpage.rs
+++ b/src/session/account_settings/user_page/deactivate_account_subpage.rs
@@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext;
use gtk::{
glib::{self, clone},
- subclass::prelude::*,
CompositeTemplate,
};
use log::error;
diff --git a/src/session/account_settings/user_page/mod.rs b/src/session/account_settings/user_page/mod.rs
index f2ff309c1..44f291979 100644
--- a/src/session/account_settings/user_page/mod.rs
+++ b/src/session/account_settings/user_page/mod.rs
@@ -5,7 +5,6 @@ use gettextrs::gettext;
use gtk::{
gio,
glib::{self, clone},
- subclass::prelude::*,
CompositeTemplate,
};
use log::error;
diff --git a/src/session/content/explore/mod.rs b/src/session/content/explore/mod.rs
index b39db04d3..34d802b2f 100644
--- a/src/session/content/explore/mod.rs
+++ b/src/session/content/explore/mod.rs
@@ -3,7 +3,7 @@ mod public_room_list;
mod public_room_row;
use adw::subclass::prelude::*;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use log::error;
use ruma::api::client::thirdparty::get_protocols;
diff --git a/src/session/content/invite.rs b/src/session/content/invite.rs
index f81b9a433..86a48a3fc 100644
--- a/src/session/content/invite.rs
+++ b/src/session/content/invite.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use crate::{
components::{Avatar, LabelWithWidgets, Pill, SpinnerButton},
diff --git a/src/session/content/mod.rs b/src/session/content/mod.rs
index 6b4fdb0b1..6f055e9ed 100644
--- a/src/session/content/mod.rs
+++ b/src/session/content/mod.rs
@@ -6,7 +6,7 @@ mod room_history;
pub mod verification;
use adw::subclass::prelude::*;
-use gtk::{gio, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gio, glib, glib::clone, prelude::*, CompositeTemplate};
use self::{
explore::Explore, invite::Invite, markdown_popover::MarkdownPopover, room_details::RoomDetails,
diff --git a/src/session/content/room_details/invite_subpage/mod.rs
b/src/session/content/room_details/invite_subpage/mod.rs
index 5aa199644..ca3e8c842 100644
--- a/src/session/content/room_details/invite_subpage/mod.rs
+++ b/src/session/content/room_details/invite_subpage/mod.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{gdk, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gdk, glib, glib::clone, prelude::*, CompositeTemplate};
mod invitee;
use self::invitee::Invitee;
diff --git a/src/session/content/room_details/member_page/mod.rs
b/src/session/content/room_details/member_page/mod.rs
index c85a5b289..795a287a5 100644
--- a/src/session/content/room_details/member_page/mod.rs
+++ b/src/session/content/room_details/member_page/mod.rs
@@ -1,7 +1,6 @@
use adw::{prelude::*, subclass::prelude::*};
use gtk::{
glib::{self, clone, closure},
- subclass::prelude::*,
CompositeTemplate,
};
use log::warn;
diff --git a/src/session/content/room_details/mod.rs b/src/session/content/room_details/mod.rs
index c49445c3c..9fc0e9904 100644
--- a/src/session/content/room_details/mod.rs
+++ b/src/session/content/room_details/mod.rs
@@ -6,7 +6,6 @@ use gettextrs::gettext;
use gtk::{
gdk,
glib::{self, clone, closure},
- subclass::prelude::*,
CompositeTemplate,
};
use matrix_sdk::ruma::events::RoomEventType;
diff --git a/src/session/content/room_history/divider_row.rs b/src/session/content/room_history/divider_row.rs
index f4bc8f110..44131cedf 100644
--- a/src/session/content/room_history/divider_row.rs
+++ b/src/session/content/room_history/divider_row.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
mod imp {
use glib::subclass::InitializingObject;
diff --git a/src/session/content/room_history/item_row.rs b/src/session/content/room_history/item_row.rs
index 62c140198..cd32f29e1 100644
--- a/src/session/content/room_history/item_row.rs
+++ b/src/session/content/room_history/item_row.rs
@@ -1,6 +1,6 @@
use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext;
-use gtk::{gio, glib, glib::clone, subclass::prelude::*};
+use gtk::{gio, glib, glib::clone};
use matrix_sdk::ruma::events::AnySyncRoomEvent;
use crate::{
diff --git a/src/session/content/room_history/message_row/audio.rs
b/src/session/content/room_history/message_row/audio.rs
index acc31d4a2..c3dc5d0aa 100644
--- a/src/session/content/room_history/message_row/audio.rs
+++ b/src/session/content/room_history/message_row/audio.rs
@@ -3,7 +3,6 @@ use gettextrs::gettext;
use gtk::{
gio,
glib::{self, clone},
- subclass::prelude::*,
CompositeTemplate,
};
use log::warn;
diff --git a/src/session/content/room_history/message_row/file.rs
b/src/session/content/room_history/message_row/file.rs
index 4211516de..b27110f37 100644
--- a/src/session/content/room_history/message_row/file.rs
+++ b/src/session/content/room_history/message_row/file.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
mod imp {
use std::cell::{Cell, RefCell};
diff --git a/src/session/content/room_history/message_row/location.rs
b/src/session/content/room_history/message_row/location.rs
index 4b1b10398..12dc03cfe 100644
--- a/src/session/content/room_history/message_row/location.rs
+++ b/src/session/content/room_history/message_row/location.rs
@@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{glib, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, CompositeTemplate};
use crate::components::LocationViewer;
diff --git a/src/session/content/room_history/message_row/media.rs
b/src/session/content/room_history/message_row/media.rs
index 3a032dfc6..d2f907fc7 100644
--- a/src/session/content/room_history/message_row/media.rs
+++ b/src/session/content/room_history/message_row/media.rs
@@ -3,7 +3,6 @@ use gettextrs::gettext;
use gtk::{
gdk, gio,
glib::{self, clone},
- subclass::prelude::*,
CompositeTemplate,
};
use log::warn;
diff --git a/src/session/content/room_history/message_row/mod.rs
b/src/session/content/room_history/message_row/mod.rs
index b2d30f6ca..2804a4014 100644
--- a/src/session/content/room_history/message_row/mod.rs
+++ b/src/session/content/room_history/message_row/mod.rs
@@ -12,7 +12,6 @@ use gettextrs::gettext;
use gtk::{
glib,
glib::{clone, signal::SignalHandlerId},
- subclass::prelude::*,
CompositeTemplate,
};
use log::warn;
diff --git a/src/session/content/room_history/message_row/reaction.rs
b/src/session/content/room_history/message_row/reaction.rs
index f01969f06..b67e54c26 100644
--- a/src/session/content/room_history/message_row/reaction.rs
+++ b/src/session/content/room_history/message_row/reaction.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use crate::session::room::ReactionGroup;
diff --git a/src/session/content/room_history/message_row/reaction_list.rs
b/src/session/content/room_history/message_row/reaction_list.rs
index a9d4e35ee..f8c31a85e 100644
--- a/src/session/content/room_history/message_row/reaction_list.rs
+++ b/src/session/content/room_history/message_row/reaction_list.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use super::reaction::MessageReaction;
use crate::session::room::ReactionList;
diff --git a/src/session/content/room_history/message_row/reply.rs
b/src/session/content/room_history/message_row/reply.rs
index 0ae21603a..fea2f0b0b 100644
--- a/src/session/content/room_history/message_row/reply.rs
+++ b/src/session/content/room_history/message_row/reply.rs
@@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{glib, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, CompositeTemplate};
use crate::{components::Pill, session::User};
diff --git a/src/session/content/room_history/message_row/text.rs
b/src/session/content/room_history/message_row/text.rs
index 05d379872..7b067e88a 100644
--- a/src/session/content/room_history/message_row/text.rs
+++ b/src/session/content/room_history/message_row/text.rs
@@ -1,5 +1,5 @@
use adw::{prelude::BinExt, subclass::prelude::*};
-use gtk::{glib, prelude::*, subclass::prelude::*};
+use gtk::{glib, prelude::*};
use html2pango::{
block::{markup_html, HtmlBlock},
html_escape, markup_links,
diff --git a/src/session/content/room_history/mod.rs b/src/session/content/room_history/mod.rs
index d84affae7..d2d0ca337 100644
--- a/src/session/content/room_history/mod.rs
+++ b/src/session/content/room_history/mod.rs
@@ -18,7 +18,6 @@ use gtk::{
gdk, gio, glib,
glib::{clone, signal::Inhibit},
prelude::*,
- subclass::prelude::*,
CompositeTemplate,
};
use log::warn;
diff --git a/src/session/content/room_history/state_row/creation.rs
b/src/session/content/room_history/state_row/creation.rs
index afcf56dc2..54b554038 100644
--- a/src/session/content/room_history/state_row/creation.rs
+++ b/src/session/content/room_history/state_row/creation.rs
@@ -1,6 +1,6 @@
use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext;
-use gtk::{glib, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, CompositeTemplate};
use matrix_sdk::ruma::events::room::create::RoomCreateEventContent;
mod imp {
diff --git a/src/session/content/room_history/state_row/mod.rs
b/src/session/content/room_history/state_row/mod.rs
index 63e9d903c..bfd4e0ddc 100644
--- a/src/session/content/room_history/state_row/mod.rs
+++ b/src/session/content/room_history/state_row/mod.rs
@@ -3,7 +3,7 @@ mod tombstone;
use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext;
-use gtk::{glib, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, CompositeTemplate};
use log::warn;
use matrix_sdk::ruma::events::{room::member::MembershipState, AnySyncStateEvent, SyncStateEvent};
diff --git a/src/session/content/room_history/state_row/tombstone.rs
b/src/session/content/room_history/state_row/tombstone.rs
index f38ef0dad..eacae8980 100644
--- a/src/session/content/room_history/state_row/tombstone.rs
+++ b/src/session/content/room_history/state_row/tombstone.rs
@@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{glib, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, CompositeTemplate};
use matrix_sdk::ruma::events::room::tombstone::RoomTombstoneEventContent;
mod imp {
diff --git a/src/session/content/room_history/verification_info_bar.rs
b/src/session/content/room_history/verification_info_bar.rs
index 43b0b2e5d..58b86fd85 100644
--- a/src/session/content/room_history/verification_info_bar.rs
+++ b/src/session/content/room_history/verification_info_bar.rs
@@ -1,6 +1,6 @@
use adw::subclass::prelude::*;
use gettextrs::gettext;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use crate::{
gettext_f,
diff --git a/src/session/content/verification/emoji.rs b/src/session/content/verification/emoji.rs
index f4504e4ea..74f2add22 100644
--- a/src/session/content/verification/emoji.rs
+++ b/src/session/content/verification/emoji.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use matrix_sdk::encryption::verification::Emoji as MatrixEmoji;
mod imp {
use glib::subclass::InitializingObject;
diff --git a/src/session/content/verification/identity_verification_widget.rs
b/src/session/content/verification/identity_verification_widget.rs
index d9e95546c..8a7f73cab 100644
--- a/src/session/content/verification/identity_verification_widget.rs
+++ b/src/session/content/verification/identity_verification_widget.rs
@@ -1,6 +1,6 @@
use adw::subclass::prelude::*;
use gettextrs::gettext;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use log::warn;
use matrix_sdk::encryption::verification::QrVerificationData;
diff --git a/src/session/content/verification/session_verification.rs
b/src/session/content/verification/session_verification.rs
index dcc970e93..9f9ef4ff9 100644
--- a/src/session/content/verification/session_verification.rs
+++ b/src/session/content/verification/session_verification.rs
@@ -1,6 +1,6 @@
use adw::subclass::prelude::*;
use gettextrs::gettext;
-use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use log::{debug, error};
use super::IdentityVerificationWidget;
diff --git a/src/session/event_source_dialog.rs b/src/session/event_source_dialog.rs
index 2901d9b94..f0e3bbb38 100644
--- a/src/session/event_source_dialog.rs
+++ b/src/session/event_source_dialog.rs
@@ -1,5 +1,5 @@
use adw::subclass::prelude::*;
-use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{glib, prelude::*, CompositeTemplate};
use sourceview::prelude::*;
use crate::session::room::Event;
diff --git a/src/session/media_viewer.rs b/src/session/media_viewer.rs
index a9b8969aa..4a5bdce3a 100644
--- a/src/session/media_viewer.rs
+++ b/src/session/media_viewer.rs
@@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{gdk, gio, glib, glib::clone, subclass::prelude::*, CompositeTemplate};
+use gtk::{gdk, gio, glib, glib::clone, CompositeTemplate};
use log::warn;
use matrix_sdk::ruma::events::{room::message::MessageType, AnyMessageLikeEventContent};
diff --git a/src/session/room_creation/mod.rs b/src/session/room_creation/mod.rs
index 49a34cfac..e7fb83d73 100644
--- a/src/session/room_creation/mod.rs
+++ b/src/session/room_creation/mod.rs
@@ -1,6 +1,6 @@
use adw::subclass::prelude::*;
use gettextrs::gettext;
-use gtk::{gdk, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate};
+use gtk::{gdk, glib, glib::clone, prelude::*, CompositeTemplate};
use log::error;
use matrix_sdk::{
ruma::{
diff --git a/src/session/sidebar/mod.rs b/src/session/sidebar/mod.rs
index 3686e77c7..fbca517c5 100644
--- a/src/session/sidebar/mod.rs
+++ b/src/session/sidebar/mod.rs
@@ -15,7 +15,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gtk::{
gio, glib,
glib::{clone, closure},
- subclass::prelude::*,
CompositeTemplate,
};
diff --git a/src/session/sidebar/row.rs b/src/session/sidebar/row.rs
index 1323bb3f5..569b9a549 100644
--- a/src/session/sidebar/row.rs
+++ b/src/session/sidebar/row.rs
@@ -1,7 +1,7 @@
use std::convert::TryFrom;
use adw::{prelude::*, subclass::prelude::*};
-use gtk::{gdk, glib, glib::clone, subclass::prelude::*};
+use gtk::{gdk, glib, glib::clone};
use super::EntryType;
use crate::session::{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]