[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-773-g1e1dd7d7f
ticho at claws-mail.org
ticho at claws-mail.org
Thu Aug 8 20:43:00 CEST 2019
The branch, gtk3 has been updated
via 1e1dd7d7f9b25845a838ab32e94ba7502628c344 (commit)
from df5b2687888428ca65c5e19e3ea243925b583905 (commit)
Summary of changes:
src/compose.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
- Log -----------------------------------------------------------------
commit 1e1dd7d7f9b25845a838ab32e94ba7502628c344
Author: Paul <paul at claws-mail.org>
Date: Thu Aug 8 19:26:26 2019 +0100
remove "The following file has been attached..." dialogue
don't show the needless "The following file has been attached..."
dialogue when attaching files by drag'n'drop
diff --git a/src/compose.c b/src/compose.c
index e619cbf57..e03bd1fcc 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -10950,31 +10950,19 @@ static void paste_text(Compose *compose, GtkWidget *entry,
static void attach_uri_list(Compose *compose, GtkSelectionData *data)
{
GList *list, *tmp;
- int att = 0;
- gchar *warn_files = NULL;
list = uri_list_extract_filenames(
(const gchar *)gtk_selection_data_get_data(data));
for (tmp = list; tmp != NULL; tmp = tmp->next) {
gchar *utf8_filename = conv_filename_to_utf8((const gchar *)tmp->data);
- gchar *tmp_f = g_strdup_printf("%s%s\n",
- warn_files?warn_files:"",
- utf8_filename);
- g_free(warn_files);
- warn_files = tmp_f;
- att++;
compose_attach_append
(compose, (const gchar *)tmp->data,
utf8_filename, NULL, NULL);
g_free(utf8_filename);
}
- if (list) {
+ if (list)
compose_changed_cb(NULL, compose);
- alertpanel_notice(ngettext(
- "The following file has been attached: \n%s",
- "The following files have been attached: \n%s", att), warn_files);
- g_free(warn_files);
- }
+
list_free_strings_full(list);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list