[fractal] Fix minor typos



commit 46696253e947d3af547ab3ad8754f4c8f50ff4da
Author: Yuri Chornoivan <yurchor ukr net>
Date:   Thu Mar 26 18:21:33 2020 +0200

    Fix minor typos

 fractal-gtk/src/actions/message.rs       | 2 +-
 fractal-gtk/src/actions/room_settings.rs | 2 +-
 fractal-gtk/src/app/backend_loop.rs      | 2 +-
 fractal-gtk/src/widgets/avatar.rs        | 2 +-
 fractal-gtk/src/widgets/divider.rs       | 4 ++--
 fractal-gtk/src/widgets/room_history.rs  | 8 ++++----
 fractal-matrix-api/src/model/message.rs  | 2 +-
 7 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/fractal-gtk/src/actions/message.rs b/fractal-gtk/src/actions/message.rs
index 26d61cda..53c4637e 100644
--- a/fractal-gtk/src/actions/message.rs
+++ b/fractal-gtk/src/actions/message.rs
@@ -48,7 +48,7 @@ pub fn new(
     let delete = SimpleAction::new("delete", glib::VariantTy::new("s").ok());
     let show_source = SimpleAction::new("show_source", glib::VariantTy::new("s").ok());
 
-    /* TODO: use statefull action to keep  track if the user already reqeusted new messages */
+    /* TODO: use stateful action to keep  track if the user already requested new messages */
     let load_more_messages =
         SimpleAction::new("request_older_messages", glib::VariantTy::new("s").ok());
 
diff --git a/fractal-gtk/src/actions/room_settings.rs b/fractal-gtk/src/actions/room_settings.rs
index 491cdee8..4cb8065e 100644
--- a/fractal-gtk/src/actions/room_settings.rs
+++ b/fractal-gtk/src/actions/room_settings.rs
@@ -25,7 +25,7 @@ pub fn new(
     access_token: AccessToken,
 ) -> gio::SimpleActionGroup {
     let actions = SimpleActionGroup::new();
-    // TODO create two stats loading interaction and conect it to the avatar box
+    // TODO create two stats loading interaction and connect it to the avatar box
     let change_avatar = SimpleAction::new_stateful(
         "change-avatar",
         glib::VariantTy::new("s").ok(),
diff --git a/fractal-gtk/src/app/backend_loop.rs b/fractal-gtk/src/app/backend_loop.rs
index c86494ac..ae1a7623 100644
--- a/fractal-gtk/src/app/backend_loop.rs
+++ b/fractal-gtk/src/app/backend_loop.rs
@@ -47,7 +47,7 @@ pub fn backend_loop(rx: Receiver<BKResponse>) {
                     APPOP!(show_error_dialog_in_settings, (error));
                 }
                 BKResponse::GetTokenEmail(Err(Error::Denied)) => {
-                    let error = i18n("Please enter a valid email adress.");
+                    let error = i18n("Please enter a valid email address.");
                     APPOP!(show_error_dialog_in_settings, (error));
                 }
                 BKResponse::GetTokenPhone(Err(Error::TokenUsed)) => {
diff --git a/fractal-gtk/src/widgets/avatar.rs b/fractal-gtk/src/widgets/avatar.rs
index 1968857e..ee7e6fef 100644
--- a/fractal-gtk/src/widgets/avatar.rs
+++ b/fractal-gtk/src/widgets/avatar.rs
@@ -195,7 +195,7 @@ impl AvatarExt for gtk::Overlay {
 
 fn load_pixbuf(path: &str, size: i32) -> Option<Pixbuf> {
     if let Some(pixbuf) = Pixbuf::new_from_file(&path).ok() {
-        // FIXME: We end up loading the file twice but we need to load the file first to find out its 
dimentions to be
+        // FIXME: We end up loading the file twice but we need to load the file first to find out its 
dimensions to be
         // able to decide wether to scale by width or height and gdk doesn't provide simple API to scale a 
loaded
         // pixbuf while preserving aspect ratio.
         if pixbuf.get_width() > pixbuf.get_height() {
diff --git a/fractal-gtk/src/widgets/divider.rs b/fractal-gtk/src/widgets/divider.rs
index 22f43723..c13f34af 100644
--- a/fractal-gtk/src/widgets/divider.rs
+++ b/fractal-gtk/src/widgets/divider.rs
@@ -42,13 +42,13 @@ impl NewMessageDivider {
 
         /* Self destruction
          * destroy the NewMessageDivider after it's added to the History with a couple of
-         * secounds delay */
+         * seconds delay */
         let revealer_weak = revealer.downgrade();
         row.connect_parent_set(move |_, _| {
             revealer_weak.upgrade().map(|revealer| {
                 let revealer_weak = revealer.downgrade();
                 gtk::timeout_add(5000, move || {
-                    /* when the user closes the room the divider gets destroyed and this tiemout
+                    /* when the user closes the room the divider gets destroyed and this timeout
                      * does nothing, but that's fine */
                     revealer_weak.upgrade().map(|r| {
                         r.set_reveal_child(false);
diff --git a/fractal-gtk/src/widgets/room_history.rs b/fractal-gtk/src/widgets/room_history.rs
index e8692dcb..946c2afc 100644
--- a/fractal-gtk/src/widgets/room_history.rs
+++ b/fractal-gtk/src/widgets/room_history.rs
@@ -433,7 +433,7 @@ impl RoomHistory {
         let queue = self.queue.clone();
         let rows = self.rows.clone();
 
-        /* TO-DO: we could set the listbox height the 52 * length of messages, to descrease jumps of the
+        /* TO-DO: we could set the listbox height the 52 * length of messages, to decrease jumps of the
          * scrollbar. 52 is the normal height of a message with one line
          * self.listbox.set_size_request(-1, 52 * messages.len() as i32); */
 
@@ -495,7 +495,7 @@ impl RoomHistory {
                         rows.borrow_mut().add_top(day_divider);
                     }
                 } else {
-                    /* Remove the source id, since the closure is destoryed */
+                    /* Remove the source id, since the closure is destroyed */
                     source_id.borrow_mut().take();
                     return Continue(false);
                 }
@@ -511,7 +511,7 @@ impl RoomHistory {
         }
     }
 
-    /* This is a temporary function to make the listbox accesibile from outside the history, it is
+    /* This is a temporary function to make the listbox accessible from outside the history, it is
      * currently needed for temp messages (which should also be moved to the room history) */
     pub fn get_listbox(&self) -> gtk::ListBox {
         let listbox = self.rows.borrow().listbox.clone();
@@ -644,7 +644,7 @@ impl RoomHistory {
     }
 }
 
-/* This function creates the content for a Row based on the conntent of msg */
+/* This function creates the content for a Row based on the content of msg */
 fn create_row(
     row: MessageContent,
     has_header: bool,
diff --git a/fractal-matrix-api/src/model/message.rs b/fractal-matrix-api/src/model/message.rs
index 353cb139..451713e0 100644
--- a/fractal-matrix-api/src/model/message.rs
+++ b/fractal-matrix-api/src/model/message.rs
@@ -157,7 +157,7 @@ impl Message {
                 self.thumb = Some(t);
             }
             "m.text" => {
-                // Only m.text messages can be replies for backward compatability
+                // Only m.text messages can be replies for backward compatibility
                 // https://matrix.org/docs/spec/client_server/r0.4.0.html#rich-replies
                 self.in_reply_to = c["m.relates_to"]["m.in_reply_to"]["event_id"]
                     .as_str()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]