@ -133,3 +133,9 @@ impl Avatar {
}
impl Default for Avatar {
fn default() -> Self {
Self::new()
@ -196,3 +196,9 @@ unsafe impl<T: ContextMenuBinImpl> IsSubclassable<T> for ContextMenuBin {
<gtk::Widget as IsSubclassable<T>>::instance_init(instance);
impl Default for ContextMenuBin {
@ -172,3 +172,9 @@ impl Pill {
priv_.room.borrow().clone()
impl Default for Pill {
@ -143,3 +143,9 @@ impl RoomTitle {
priv_.subtitle.borrow().clone()
impl Default for RoomTitle {
@ -138,3 +138,9 @@ impl SpinnerButton {
priv_.stack.visible_child().as_ref() == Some(priv_.spinner.upcast_ref())
impl Default for SpinnerButton {
@ -198,6 +198,12 @@ impl Login {
impl Default for Login {
fn build_homeserver_url(server: &str) -> Result<Url, ParseError> {
if server.starts_with("http://") || server.starts_with("https://") {
Url::parse(server)
@ -227,3 +227,9 @@ impl PublicRoomRow {
priv_.button.set_loading(public_room.is_pending());
impl Default for PublicRoomRow {
@ -248,3 +248,9 @@ impl Invite {
Some(())
impl Default for Invite {
@ -228,3 +228,9 @@ impl ItemRow {
impl Default for ItemRow {
@ -81,3 +81,9 @@ impl MarkdownPopover {
glib::Object::new(&[]).expect("Failed to create MarkdownPopover")
impl Default for MarkdownPopover {
@ -446,3 +446,9 @@ fn create_widget_for_html_block(block: &HtmlBlock) -> gtk::Widget {
impl Default for MessageRow {
@ -328,3 +328,9 @@ impl RoomHistory {
impl Default for RoomHistory {
@ -178,3 +178,9 @@ impl StateRow {
};
impl Default for StateRow {
@ -450,3 +450,9 @@ impl Session {
self.room_list().handle_response_rooms(response.rooms);
impl Default for Session {
@ -155,3 +155,9 @@ impl CategoryRow {
self.notify("expanded");
impl Default for CategoryRow {
@ -98,3 +98,9 @@ impl EntryRow {
self.notify("entry");
impl Default for EntryRow {
@ -190,3 +190,9 @@ impl RoomRow {
impl Default for RoomRow {
@ -175,3 +175,9 @@ impl Row {
self.notify("list-row");
impl Default for Row {
@ -255,3 +255,9 @@ impl Sidebar {
self.notify("selected-room");
impl Default for Sidebar {