[geary/mjog/email-plugins: 8/13] ConversationListBox: Add convenience methods for email info bars
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/email-plugins: 8/13] ConversationListBox: Add convenience methods for email info bars
- Date: Sun, 22 Mar 2020 13:38:48 +0000 (UTC)
commit 409f07343e8cd86d2c28692e5bb25507055ae3f0
Author: Michael Gratton <mike vee net>
Date: Sun Mar 22 18:05:02 2020 +1100
ConversationListBox: Add convenience methods for email info bars
.../conversation-viewer/conversation-list-box.vala | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/src/client/conversation-viewer/conversation-list-box.vala
b/src/client/conversation-viewer/conversation-list-box.vala
index 4e501aa4..8162efed 100644
--- a/src/client/conversation-viewer/conversation-list-box.vala
+++ b/src/client/conversation-viewer/conversation-list-box.vala
@@ -893,6 +893,24 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
}
}
+ /** Adds an info bar to the given email, if any. */
+ public void add_email_info_bar(Geary.EmailIdentifier id,
+ Gtk.InfoBar info_bar) {
+ var row = this.email_rows.get(id);
+ if (row != null) {
+ row.view.primary_message.info_bars.add(info_bar);
+ }
+ }
+
+ /** Adds an info bar to the given email, if any. */
+ public void remove_email_info_bar(Geary.EmailIdentifier id,
+ Gtk.InfoBar info_bar) {
+ var row = this.email_rows.get(id);
+ if (row != null) {
+ row.view.primary_message.info_bars.remove(info_bar);
+ }
+ }
+
/**
* Increases the magnification level used for displaying messages.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]