chore: Update libadwaita
This commit is contained in:
parent
047e4076c1
commit
96d1cb3a69
58 changed files with 47 additions and 61 deletions
9
Cargo.lock
generated
9
Cargo.lock
generated
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -6,7 +6,6 @@ use gtk::{
|
|||
gio::prelude::*,
|
||||
glib::{self, clone},
|
||||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use matrix_sdk::{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ use gtk::{
|
|||
glib,
|
||||
glib::{clone, closure_local},
|
||||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use adw::subclass::prelude::*;
|
||||
use gtk::{glib, subclass::prelude::*};
|
||||
use gtk::glib;
|
||||
|
||||
mod imp {
|
||||
use super::*;
|
||||
|
|
|
@ -4,7 +4,6 @@ use gtk::{
|
|||
gdk, gio, glib,
|
||||
glib::{clone, closure_local},
|
||||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::error;
|
||||
|
|
|
@ -3,7 +3,6 @@ use gtk::{
|
|||
gdk, glib,
|
||||
glib::{clone, closure_local},
|
||||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -3,7 +3,6 @@ use gtk::{
|
|||
gdk, glib,
|
||||
glib::{clone, closure_local},
|
||||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use adw::subclass::prelude::*;
|
||||
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate};
|
||||
use gtk::{glib, prelude::*, CompositeTemplate};
|
||||
|
||||
use crate::{
|
||||
components::Avatar,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
|
|||
use gtk::{
|
||||
glib,
|
||||
glib::{clone, FromVariant},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
|
|||
use gettextrs::gettext;
|
||||
use gtk::{
|
||||
glib::{self, clone},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::error;
|
||||
|
|
|
@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
|
|||
use gettextrs::gettext;
|
||||
use gtk::{
|
||||
glib::{self, clone},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::error;
|
||||
|
|
|
@ -5,7 +5,6 @@ use gettextrs::gettext;
|
|||
use gtk::{
|
||||
gio,
|
||||
glib::{self, clone},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::error;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use adw::{prelude::*, subclass::prelude::*};
|
||||
use gtk::{
|
||||
glib::{self, clone, closure},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::warn;
|
||||
|
|
|
@ -6,7 +6,6 @@ use gettextrs::gettext;
|
|||
use gtk::{
|
||||
gdk,
|
||||
glib::{self, clone, closure},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use matrix_sdk::ruma::events::RoomEventType;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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::{
|
||||
|
|
|
@ -3,7 +3,6 @@ use gettextrs::gettext;
|
|||
use gtk::{
|
||||
gio,
|
||||
glib::{self, clone},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::warn;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use adw::{prelude::*, subclass::prelude::*};
|
||||
use gtk::{glib, subclass::prelude::*, CompositeTemplate};
|
||||
use gtk::{glib, CompositeTemplate};
|
||||
|
||||
use crate::components::LocationViewer;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ use gettextrs::gettext;
|
|||
use gtk::{
|
||||
gdk, gio,
|
||||
glib::{self, clone},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::warn;
|
||||
|
|
|
@ -12,7 +12,6 @@ use gettextrs::gettext;
|
|||
use gtk::{
|
||||
glib,
|
||||
glib::{clone, signal::SignalHandlerId},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::warn;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -18,7 +18,6 @@ use gtk::{
|
|||
gdk, gio, glib,
|
||||
glib::{clone, signal::Inhibit},
|
||||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
use log::warn;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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::{
|
||||
|
|
|
@ -15,7 +15,6 @@ use adw::{prelude::*, subclass::prelude::*};
|
|||
use gtk::{
|
||||
gio, glib,
|
||||
glib::{clone, closure},
|
||||
subclass::prelude::*,
|
||||
CompositeTemplate,
|
||||
};
|
||||
|
||||
|
|
|
@ -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::{
|
||||
|
|
Loading…
Reference in a new issue