[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-947-gfc95e5a90
paul at claws-mail.org
paul at claws-mail.org
Thu May 7 12:11:31 CEST 2020
The branch, gtk3 has been updated
via fc95e5a9099c14c01a55ed4e339cf8f0185ccf47 (commit)
from a5f7e7be8f757a2e2977ec8775b1f78024494292 (commit)
Summary of changes:
src/foldersel.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit fc95e5a9099c14c01a55ed4e339cf8f0185ccf47
Author: Paul <paul at claws-mail.org>
Date: Thu May 7 11:10:41 2020 +0100
allow inheriting folder prefs/properties from the move/copy dialogue when creating new folders here
diff --git a/src/foldersel.c b/src/foldersel.c
index 8ace61e3a..21f310c54 100644
--- a/src/foldersel.c
+++ b/src/foldersel.c
@@ -41,6 +41,7 @@
#include "inputdialog.h"
#include "folder.h"
#include "prefs_common.h"
+#include "folder_item_prefs.h"
enum {
FOLDERSEL_FOLDERNAME,
@@ -566,9 +567,12 @@ static void foldersel_new_folder(GtkButton *button, gpointer data)
return;
store = GTK_TREE_STORE(model);
- new_folder = input_dialog(_("New folder"),
- _("Input the name of new folder:"),
- _("NewFolder"));
+ new_folder = input_dialog_with_checkbtn(_("New folder"),
+ _("Input the name of new folder:"),
+ _("NewFolder"),
+ _("Inherit properties and processing rules from parent folder"),
+ &(prefs_common.inherit_folder_props));
+
if (!new_folder) return;
AUTORELEASE_STR(new_folder, {g_free(new_folder); return;});
@@ -602,6 +606,10 @@ static void foldersel_new_folder(GtkButton *button, gpointer data)
return;
}
+ if (prefs_common.inherit_folder_props) {
+ folder_item_prefs_copy_prefs(selected_item, new_item);
+ }
+
/* add new child */
foldersel_append_item(store, new_item, &new_child, &selected);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list