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]]
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",

View file

@ -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"

View file

@ -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};

View file

@ -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)]

View file

@ -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};

View file

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

View file

@ -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;

View file

@ -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};

View file

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

View file

@ -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 {

View file

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

View file

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

View file

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

View file

@ -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;

View file

@ -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;

View file

@ -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};

View file

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

View file

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

View file

@ -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;

View file

@ -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 {

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

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

View file

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

View file

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

View file

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

View file

@ -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;

View file

@ -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},

View file

@ -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,

View file

@ -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;

View file

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

View file

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

View file

@ -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;

View file

@ -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::{

View file

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

View file

@ -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};

View file

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

View file

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

View file

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

View file

@ -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;

View file

@ -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;

View file

@ -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};

View file

@ -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,

View file

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

View file

@ -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 {

View file

@ -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};

View file

@ -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 {

View file

@ -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,

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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};

View file

@ -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::{

View file

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

View file

@ -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::{