[geary/mjog/misc-fixes: 5/5] Composer.Widget: API doc comment updates
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/misc-fixes: 5/5] Composer.Widget: API doc comment updates
- Date: Sat, 27 Jun 2020 05:29:06 +0000 (UTC)
commit d0efd003860c4e5313cc99eba13e92a9a31003ec
Author: Michael Gratton <mike vee net>
Date: Sat Jun 27 13:49:09 2020 +1000
Composer.Widget: API doc comment updates
src/client/composer/composer-widget.vala | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 5e46c22a0..19b853cbd 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -24,7 +24,11 @@ private extern Type components_reflow_box_get_type();
public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
- /** The email fields the composer requires for referred email. */
+ /**
+ * The email fields the composer requires for context email.
+ *
+ * @see load_context
+ */
public const Geary.Email.Field REQUIRED_FIELDS = ENVELOPE | HEADER | BODY;
/// Translators: Title for an empty composer window
@@ -667,6 +671,7 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
base_unref();
}
+ /** Loads an empty message into the composer. */
public async void load_empty_body(Geary.RFC822.MailboxAddress? to = null)
throws GLib.Error {
if (to != null) {
@@ -675,6 +680,7 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
yield finish_loading("", "", false);
}
+ /** Loads a mailto: URL into the composer. */
public async void load_mailto(string mailto)
throws GLib.Error {
Gee.HashMultiMap<string, string> headers = new Gee.HashMultiMap<string, string>();
@@ -734,7 +740,11 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
}
/**
- * Loads the message into the composer editor.
+ * Loads a draft, reply, or forwarded message into the composer.
+ *
+ * If the given context email does not contain the fields
+ * specified by {@link REQUIRED_FIELDS}, it will be loaded from
+ * the current account context's store with those.
*/
public async void load_context(ContextType type,
Geary.Email context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]