chore: Update libadwaita

This commit is contained in:
Julian Sparber 2022-07-22 11:25:51 +02:00
parent 047e4076c1
commit 96d1cb3a69
58 changed files with 47 additions and 61 deletions

9
Cargo.lock generated
View file

@ -2139,10 +2139,11 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]] [[package]]
name = "libadwaita" name = "libadwaita"
version = "0.1.1" version = "0.2.0-alpha.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2ae453d28e3b91f03749f02b1531e8cfe315a1d0762b77a61797d2ab80bb87d" checksum = "49ad2318c7abc8629b1d1ed381bd0356c184ae8f4caebc044ef9de1782c86046"
dependencies = [ dependencies = [
"futures-channel",
"gdk-pixbuf", "gdk-pixbuf",
"gdk4", "gdk4",
"gio", "gio",
@ -2156,9 +2157,9 @@ dependencies = [
[[package]] [[package]]
name = "libadwaita-sys" name = "libadwaita-sys"
version = "0.1.0" version = "0.2.0-alpha.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f18b6ac4cadd252a89f5cba0a5a4e99836131795d6fad37b859ac79e8cb7d2c8" checksum = "e835f99b92f6e7f43ddb2c0ca79d9d21124a170190876505e03484f337f7edc7"
dependencies = [ dependencies = [
"gdk4-sys", "gdk4-sys",
"gio-sys", "gio-sys",

View file

@ -61,7 +61,8 @@ features = ["v4_6"]
[dependencies.adw] [dependencies.adw]
package = "libadwaita" package = "libadwaita"
version = "0.1.0" version = "0.2.0-alpha.2"
features = ["v1_2"]
[dependencies.shumate] [dependencies.shumate]
package = "libshumate" package = "libshumate"

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use crate::{components::Avatar, session::Avatar as AvatarItem}; use crate::{components::Avatar, session::Avatar as AvatarItem};

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; 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)] #[derive(Debug, Hash, Eq, PartialEq, Clone, Copy, glib::Enum)]
#[repr(u32)] #[repr(u32)]

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{gio, glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{gio, glib, prelude::*, CompositeTemplate};
mod imp { mod imp {
use std::cell::{Cell, RefCell}; use std::cell::{Cell, RefCell};

View file

@ -6,7 +6,6 @@ use gtk::{
gio::prelude::*, gio::prelude::*,
glib::{self, clone}, glib::{self, clone},
prelude::*, prelude::*,
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use matrix_sdk::{ use matrix_sdk::{

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use crate::session::Avatar as AvatarItem; use crate::session::Avatar as AvatarItem;

View file

@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*}; 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}; use crate::session::room::{MemberRole, PowerLevel, POWER_LEVEL_MAX, POWER_LEVEL_MIN};

View file

@ -3,7 +3,6 @@ use gtk::{
glib, glib,
glib::{clone, closure_local}, glib::{clone, closure_local},
prelude::*, prelude::*,
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; 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; use log::debug;
mod imp { mod imp {

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, subclass::prelude::*}; use gtk::glib;
mod imp { mod imp {
use super::*; use super::*;

View file

@ -4,7 +4,6 @@ use gtk::{
gdk, gio, glib, gdk, gio, glib,
glib::{clone, closure_local}, glib::{clone, closure_local},
prelude::*, prelude::*,
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::error; use log::error;

View file

@ -3,7 +3,6 @@ use gtk::{
gdk, glib, gdk, glib,
glib::{clone, closure_local}, glib::{clone, closure_local},
prelude::*, prelude::*,
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; 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; use crate::components::Toast;

View file

@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gtk::{glib, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, CompositeTemplate};
use shumate::prelude::*; use shumate::prelude::*;
use crate::i18n::gettext_f; use crate::i18n::gettext_f;

View file

@ -1,6 +1,6 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext; 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 log::warn;
use super::{AudioPlayer, LocationViewer}; use super::{AudioPlayer, LocationViewer};

View file

@ -3,7 +3,6 @@ use gtk::{
gdk, glib, gdk, glib,
glib::{clone, closure_local}, glib::{clone, closure_local},
prelude::*, prelude::*,
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use crate::{ use crate::{
components::Avatar, components::Avatar,

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; 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; use crate::session::room::ReactionList;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use html2pango::markup; use html2pango::markup;
mod imp { mod imp {

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
mod imp { mod imp {
use glib::subclass::InitializingObject; use glib::subclass::InitializingObject;

View file

@ -1,7 +1,7 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gst::ClockTime; use gst::ClockTime;
use gst_player::{Player, PlayerGMainContextSignalDispatcher}; use gst_player::{Player, PlayerGMainContextSignalDispatcher};
use gtk::{gio, glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{gio, glib, prelude::*, CompositeTemplate};
use super::VideoPlayerRenderer; use super::VideoPlayerRenderer;

View file

@ -1,7 +1,7 @@
use std::cell::Cell; use std::cell::Cell;
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{gdk, glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{gdk, glib, prelude::*, CompositeTemplate};
mod imp { mod imp {
use glib::subclass::InitializingObject; use glib::subclass::InitializingObject;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
mod device; mod device;
use self::device::Device; use self::device::Device;

View file

@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gtk::{ use gtk::{
glib, glib,
glib::{clone, FromVariant}, glib::{clone, FromVariant},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };

View file

@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{ use gtk::{
glib::{self, clone}, glib::{self, clone},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::error; use log::error;

View file

@ -2,7 +2,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{ use gtk::{
glib::{self, clone}, glib::{self, clone},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::error; use log::error;

View file

@ -5,7 +5,6 @@ use gettextrs::gettext;
use gtk::{ use gtk::{
gio, gio,
glib::{self, clone}, glib::{self, clone},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::error; use log::error;

View file

@ -3,7 +3,7 @@ mod public_room_list;
mod public_room_row; mod public_room_row;
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use log::error; use log::error;
use ruma::api::client::thirdparty::get_protocols; use ruma::api::client::thirdparty::get_protocols;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use crate::{ use crate::{
components::{Avatar, LabelWithWidgets, Pill, SpinnerButton}, components::{Avatar, LabelWithWidgets, Pill, SpinnerButton},

View file

@ -6,7 +6,7 @@ mod room_history;
pub mod verification; pub mod verification;
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{gio, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{gio, glib, glib::clone, prelude::*, CompositeTemplate};
use self::{ use self::{
explore::Explore, invite::Invite, markdown_popover::MarkdownPopover, room_details::RoomDetails, explore::Explore, invite::Invite, markdown_popover::MarkdownPopover, room_details::RoomDetails,

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{gdk, glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{gdk, glib, glib::clone, prelude::*, CompositeTemplate};
mod invitee; mod invitee;
use self::invitee::Invitee; use self::invitee::Invitee;

View file

@ -1,7 +1,6 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gtk::{ use gtk::{
glib::{self, clone, closure}, glib::{self, clone, closure},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::warn; use log::warn;

View file

@ -6,7 +6,6 @@ use gettextrs::gettext;
use gtk::{ use gtk::{
gdk, gdk,
glib::{self, clone, closure}, glib::{self, clone, closure},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use matrix_sdk::ruma::events::RoomEventType; use matrix_sdk::ruma::events::RoomEventType;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
mod imp { mod imp {
use glib::subclass::InitializingObject; use glib::subclass::InitializingObject;

View file

@ -1,6 +1,6 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{gio, glib, glib::clone, subclass::prelude::*}; use gtk::{gio, glib, glib::clone};
use matrix_sdk::ruma::events::AnySyncRoomEvent; use matrix_sdk::ruma::events::AnySyncRoomEvent;
use crate::{ use crate::{

View file

@ -3,7 +3,6 @@ use gettextrs::gettext;
use gtk::{ use gtk::{
gio, gio,
glib::{self, clone}, glib::{self, clone},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::warn; use log::warn;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
mod imp { mod imp {
use std::cell::{Cell, RefCell}; use std::cell::{Cell, RefCell};

View file

@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gtk::{glib, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, CompositeTemplate};
use crate::components::LocationViewer; use crate::components::LocationViewer;

View file

@ -3,7 +3,6 @@ use gettextrs::gettext;
use gtk::{ use gtk::{
gdk, gio, gdk, gio,
glib::{self, clone}, glib::{self, clone},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::warn; use log::warn;

View file

@ -12,7 +12,6 @@ use gettextrs::gettext;
use gtk::{ use gtk::{
glib, glib,
glib::{clone, signal::SignalHandlerId}, glib::{clone, signal::SignalHandlerId},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::warn; use log::warn;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use crate::session::room::ReactionGroup; use crate::session::room::ReactionGroup;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use super::reaction::MessageReaction; use super::reaction::MessageReaction;
use crate::session::room::ReactionList; use crate::session::room::ReactionList;

View file

@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gtk::{glib, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, CompositeTemplate};
use crate::{components::Pill, session::User}; use crate::{components::Pill, session::User};

View file

@ -1,5 +1,5 @@
use adw::{prelude::BinExt, subclass::prelude::*}; use adw::{prelude::BinExt, subclass::prelude::*};
use gtk::{glib, prelude::*, subclass::prelude::*}; use gtk::{glib, prelude::*};
use html2pango::{ use html2pango::{
block::{markup_html, HtmlBlock}, block::{markup_html, HtmlBlock},
html_escape, markup_links, html_escape, markup_links,

View file

@ -18,7 +18,6 @@ use gtk::{
gdk, gio, glib, gdk, gio, glib,
glib::{clone, signal::Inhibit}, glib::{clone, signal::Inhibit},
prelude::*, prelude::*,
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };
use log::warn; use log::warn;

View file

@ -1,6 +1,6 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{glib, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, CompositeTemplate};
use matrix_sdk::ruma::events::room::create::RoomCreateEventContent; use matrix_sdk::ruma::events::room::create::RoomCreateEventContent;
mod imp { mod imp {

View file

@ -3,7 +3,7 @@ mod tombstone;
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{glib, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, CompositeTemplate};
use log::warn; use log::warn;
use matrix_sdk::ruma::events::{room::member::MembershipState, AnySyncStateEvent, SyncStateEvent}; use matrix_sdk::ruma::events::{room::member::MembershipState, AnySyncStateEvent, SyncStateEvent};

View file

@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gtk::{glib, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, CompositeTemplate};
use matrix_sdk::ruma::events::room::tombstone::RoomTombstoneEventContent; use matrix_sdk::ruma::events::room::tombstone::RoomTombstoneEventContent;
mod imp { mod imp {

View file

@ -1,6 +1,6 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use crate::{ use crate::{
gettext_f, gettext_f,

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use matrix_sdk::encryption::verification::Emoji as MatrixEmoji; use matrix_sdk::encryption::verification::Emoji as MatrixEmoji;
mod imp { mod imp {
use glib::subclass::InitializingObject; use glib::subclass::InitializingObject;

View file

@ -1,6 +1,6 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use log::warn; use log::warn;
use matrix_sdk::encryption::verification::QrVerificationData; use matrix_sdk::encryption::verification::QrVerificationData;

View file

@ -1,6 +1,6 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gettextrs::gettext; use gettextrs::gettext;
use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, glib::clone, prelude::*, CompositeTemplate};
use log::{debug, error}; use log::{debug, error};
use super::IdentityVerificationWidget; use super::IdentityVerificationWidget;

View file

@ -1,5 +1,5 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gtk::{glib, prelude::*, subclass::prelude::*, CompositeTemplate}; use gtk::{glib, prelude::*, CompositeTemplate};
use sourceview::prelude::*; use sourceview::prelude::*;
use crate::session::room::Event; use crate::session::room::Event;

View file

@ -1,5 +1,5 @@
use adw::{prelude::*, subclass::prelude::*}; 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 log::warn;
use matrix_sdk::ruma::events::{room::message::MessageType, AnyMessageLikeEventContent}; use matrix_sdk::ruma::events::{room::message::MessageType, AnyMessageLikeEventContent};

View file

@ -1,6 +1,6 @@
use adw::subclass::prelude::*; use adw::subclass::prelude::*;
use gettextrs::gettext; 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 log::error;
use matrix_sdk::{ use matrix_sdk::{
ruma::{ ruma::{

View file

@ -15,7 +15,6 @@ use adw::{prelude::*, subclass::prelude::*};
use gtk::{ use gtk::{
gio, glib, gio, glib,
glib::{clone, closure}, glib::{clone, closure},
subclass::prelude::*,
CompositeTemplate, CompositeTemplate,
}; };

View file

@ -1,7 +1,7 @@
use std::convert::TryFrom; use std::convert::TryFrom;
use adw::{prelude::*, subclass::prelude::*}; use adw::{prelude::*, subclass::prelude::*};
use gtk::{gdk, glib, glib::clone, subclass::prelude::*}; use gtk::{gdk, glib, glib::clone};
use super::EntryType; use super::EntryType;
use crate::session::{ use crate::session::{