[balsa/balsa-2.5-gmime-2.6] compose window: Improve the popup context menu



commit 82fa87edf3b74e9d8425236c856a8bf432e01fcd
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed May 6 19:13:58 2020 -0400

    compose window: Improve the popup context menu
    
    * src/sendmsg-window.c (add_attachment): Insert separators
      between logically distinct sections of the popup context menu.

 src/sendmsg-window.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 8d5ab0fb8..a0461e10e 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -1811,6 +1811,12 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
                              menu_item);
     }
 
+    if (can_inline || !is_a_temp_file) {
+        /* Need a separator */
+        menu_item = gtk_separator_menu_item_new();
+        gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu), menu_item);
+    }
+
     /* an attachment can be removed */
     menu_item =
        gtk_menu_item_new_with_label(_("Remove"));
@@ -1820,6 +1826,10 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
     gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
                          menu_item);
 
+    /* Insert another separator */
+    menu_item = gtk_separator_menu_item_new();
+    gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu), menu_item);
+
     /* add the usual vfs menu so the user can inspect what (s)he actually
        attached... (only for non-message attachments) */
     if (!is_fwd_message)


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