[balsa] compose window: Improve the popup context menu
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] compose window: Improve the popup context menu
- Date: Wed, 6 May 2020 23:15:15 +0000 (UTC)
commit 3b3320ce4b75ee61ce156ee3907c628616bddc5c
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.
ChangeLog | 5 +++++
src/sendmsg-window.c | 10 ++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 5a3b445ac..5fe29a6a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-05-06 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * src/sendmsg-window.c (add_attachment): Insert separators
+ between logically distinct sections of the popup menu.
+
2020-04-11 Pawel Salek <pawsa0 gmail com>
* NEWS, configure.ac, meson.build: release balsa-2.6.0
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index e115298fd..75db6f431 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]