[geary/mjog/email-templates: 60/72] ConversationListBox: Remove obsolete action and signal



commit f2ee824a03d3b2bf824eb9fa017838bb148edc25
Author: Michael Gratton <mike vee net>
Date:   Sun Apr 19 15:56:37 2020 +1000

    ConversationListBox: Remove obsolete action and signal

 src/client/conversation-viewer/conversation-list-box.vala | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-list-box.vala 
b/src/client/conversation-viewer/conversation-list-box.vala
index e727a3cb..f8cd1f42 100644
--- a/src/client/conversation-viewer/conversation-list-box.vala
+++ b/src/client/conversation-viewer/conversation-list-box.vala
@@ -33,7 +33,6 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
     internal const string EMAIL_ACTION_GROUP_NAME = "eml";
 
     internal const string ACTION_DELETE = "delete";
-    internal const string ACTION_EDIT = "edit";
     internal const string ACTION_FORWARD = "forward";
     internal const string ACTION_MARK_LOAD_REMOTE = "mark-load-remote";
     internal const string ACTION_MARK_READ = "mark-read";
@@ -70,7 +69,6 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
     );
     private const ActionEntry[] email_action_entries = {
         { ACTION_DELETE, on_email_delete, ACTION_TARGET_TYPE },
-        { ACTION_EDIT, on_email_edit, ACTION_TARGET_TYPE },
         { ACTION_FORWARD, on_email_forward, ACTION_TARGET_TYPE },
         { ACTION_MARK_LOAD_REMOTE, on_email_load_remote, ACTION_TARGET_TYPE },
         { ACTION_MARK_READ, on_email_mark_read, ACTION_TARGET_TYPE },
@@ -640,9 +638,6 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
     /** Fired when the user clicks "delete" in the message menu. */
     public signal void delete_email(Geary.Email email);
 
-    /** Fired the edit draft button is clicked. */
-    public signal void edit_email(Geary.Email email);
-
 
     /**
      * Constructs a new conversation list box instance.
@@ -1483,14 +1478,6 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
         }
     }
 
-    private void on_email_edit(GLib.SimpleAction action,
-                               GLib.Variant? param) {
-        ConversationEmail? view = action_target_to_view(param);
-        if (view != null) {
-            edit_email(view.email);
-        }
-    }
-
     private void on_email_trash(GLib.SimpleAction action,
                                 GLib.Variant? param) {
         ConversationEmail? view = action_target_to_view(param);


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