Move email action handling to ConversationListBox

This allows a single widget to get constructed to handle email actions,
rather than every single ConversationEmail having to do so, and thus
related signals can also be moved to and emitted from
ConversationListBox, so that MainWindow only has to hook up to a single
object's signals for a conversation, not every email in the
conversation.
This commit is contained in:
Michael Gratton 2019-10-30 14:30:26 +11:00 committed by Michael James Gratton
parent f9cf70cc0e
commit 5cc92ef964
6 changed files with 663 additions and 450 deletions

View file

@ -26,7 +26,7 @@
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Save all attachments</property>
<property name="valign">start</property>
<property name="action_name">eml.save_all_attachments</property>
<property name="action_name">eml.save-all-attachments</property>
<property name="relief">none</property>
<child>
<object class="GtkImage">
@ -49,7 +49,7 @@
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes" comments="Note: The application will never show this button at the same time as unstar_button, one will always be hidden.">Mark this message as starred</property>
<property name="valign">start</property>
<property name="action_name">eml.star</property>
<property name="action_name">eml.mark-starred</property>
<property name="relief">none</property>
<child>
<object class="GtkImage">
@ -71,7 +71,7 @@
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes" comments="Note: The application will never show this button at the same time as star_button, one will always be hidden.">Mark this message as not starred</property>
<property name="valign">start</property>
<property name="action_name">eml.unstar</property>
<property name="action_name">eml.mark-unstarred</property>
<property name="relief">none</property>
<child>
<object class="GtkImage">
@ -92,9 +92,9 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Display the message menu</property>
<property name="valign">start</property>
<property name="relief">none</property>
<signal name="toggled" handler="on_email_menu" swapped="no"/>
<child>
<object class="GtkImage">
<property name="visible">True</property>