Commit graph

1198 commits

Author SHA1 Message Date
Paul
a546095316 fix bug 4239, 'Preferences: Text Options Header Display modal is not modal' (sic)
... and so on
2019-11-19 09:52:18 +00:00
Paul
1e1dd7d7f9 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
2019-08-08 20:42:56 +02:00
Colin Leroy
95bd2a18ed Compose: handle pasted images and text/uri-list (files) and attach them 2019-08-08 19:34:16 +02:00
Paul
9b490d0614 fix bug 4167, 'Max line length exceeded when forwarding mail' 2019-05-04 16:42:07 +02:00
Andrej Kacian
8adbf38cfe Remove use of deprecated gtk_scrolled_window_add_with_viewport() 2019-01-12 23:51:19 +01:00
Andrej Kacian
af9f8c535c Improve line breaks in compose window
Fixes bug #3070: misbehaving text wrapping when URL chars are present
2019-01-12 12:51:28 +01:00
Paul
b42968f69c fix bug 4134, ''Save message to' option not set when it should be' 2018-12-20 00:44:52 +01:00
Andrej Kacian
a8d84bd455 Get rid of our strcmp2() in favour of glib's g_strcmp0() 2018-12-15 18:49:49 +01:00
Paul
95f481ee3a fix for smtp-only accounts when global pref for save sent msg is set 2018-11-03 19:35:54 +01:00
Paul
f3144f7517 revert 874a232f1, it breaks stuff 2018-11-03 19:35:29 +01:00
Andrej Kacian
874a232f1c Handle compose "Save Message to" checkbox state in compose_set_save_to() only.
Fixes bug #4107 - Sent messages do not appear in "Sent" folder...
2018-10-28 22:02:11 +01:00
Andrej Kacian
a630926120 Set correct color properties of GtkTextTag after move to GdkRGBA. 2018-10-28 12:15:41 +01:00
Andrej Kacian
d2d11e22e3 Use GdkRGBA instead of deprecated GdkColor where possible, and also instead of internal unsigned long representation.
The internal representation was buggy anyway, converting
to and from GdkColor improperly, changing slightly RGB values.
I guess nobody ever noticed slight hue changes.

GdkColor is still used when setting widget colors with (also
deprecated) GtkStyle, and when using other deprecated
functions, which will eventually be replaced.
2018-10-28 11:40:58 +01:00
Paul
4b8281ea03 only show warning about privacy system 'none' on replies to signed or encrypted msgs 2018-10-27 19:16:42 +02:00
Paul
1d543fc73d always use folder pref for save msg location if set 2018-10-27 19:16:36 +02:00
Paul
c498960ee9 allow account pref and folder pref to override global pref for saving sent msgs 2018-10-27 19:16:33 +02:00
Paul
21716c0133 less haste 2018-10-27 19:16:29 +02:00
Paul
9bf0041560 remove wrongly pushed change in bfc9552997 2018-10-27 19:16:27 +02:00
Paul
42a8b321b0 don't leave the user in limbo when privacy system is 'none' and auto signing/encrypting is set 2018-10-27 19:16:23 +02:00
Colin Leroy
12d02a4874 Fix crash in dangling message search. 2018-10-27 19:15:46 +02:00
Colin Leroy
429ab1b06c Fix performance loss on certain file I/O that doesn't need
to be safe
2018-10-16 19:11:35 +02:00
Colin Leroy
b7e7385fa2 Rename claws_io to file-utils, and move file-related functions
from utils.c to file-utils.c
2018-10-16 19:02:31 +02:00
Colin Leroy
0cfddd54ce Wrap file I/O to claws_* to benefit from custom locking when
available. Gains about 33% on I/O bound tasks.
2018-10-16 19:01:44 +02:00
Colin Leroy
dc7dfb44b1 Fix build 2018-10-16 18:59:31 +02:00
Colin Leroy
d8b3d1705d Implement safe_fclose() so we can respect the "Metadata handling"
preference for every data file we write into.
2018-10-16 18:45:37 +02:00
Colin Leroy
31fce04fdc Fix bug #3889, "Address and quoted message inconsistent in reply"
* Fix right-click replying to messages in summaryview
* Fix corner-case when selected and opened messages are different,
  and one of them is to a mailing-list.
2018-10-04 19:32:28 +02:00
Paul
deaf6940f7 fix warning dialogue when a re-edited draft compose window is closed after a send failure
prevents unexpected loss of drafted message
2018-09-14 11:29:14 +02:00
wwp
144e8a2911 Add new folder options: enable/disable per-folder signing and
encrypting (by default: obey to applicable account preference).
2018-09-14 11:29:05 +02:00
wwp
6c2c5640b5 Rename activate_privacy_system() to compose_activate_privacy_system(). 2018-09-14 11:28:35 +02:00
Olivier Brunel
592f6d1325 Preserve flags & tags when re-editing a message
When re-editing a message, let's preserve its flags (color labels, etc)
and tags. Can be especially useful for those who use such things on queued
messages, and find themselves re-editing messages afterwards but before
actually sending them.
2018-09-14 11:27:30 +02:00
wwp
53710532cd Since we depend on GLib 2.28, make real use of GList/GSList's _free_full
functions. Remove unused list freeing functions.
2018-05-26 15:14:44 +02:00
wwp
2b5bf3d617 Fix few unchecked return values reported by Coverity:
1434187, 1434189, 1434192, 1434193, 1434195, 1434196, 1434198, 1434200, 1434202, 1434203
And few more. Change few silent returns into debug ones (cm_return_if_fail).
2018-05-26 15:09:11 +02:00
wwp
afd4f40000 Fix code compilation when configure --enable-generic-umpc code has been used. 2018-05-06 23:28:39 +02:00
wwp
3b3156d944 Clean-up in comments (The Commit Of The Year). 2018-04-28 20:45:37 +02:00
Andrej Kacian
7087f6b973 Fix two missed return values in compose_write_to_file() from commit e9f610a4f.
Thanks to wwp for finding the issue!
2018-04-28 20:45:31 +02:00
Andrej Kacian
b8db458023 Fix for e9f610a4f for the rare cases the privacy system has no error string ready. 2018-04-13 20:26:51 +02:00
Andrej Kacian
06cd7d5ff5 Rework and simplify how compose_queue() return values are handled
Also closes bug #3960 - Sends unencrypted emails when encryption fails
because we now return from compose_queue() with an error when
that happens, instead of ignoring it.
2018-04-13 20:09:36 +02:00
wwp
7e99816361 Fix broken templates attachments due to commit 814b087,
which clears template internals (including attachments list)
wherever template contains any field to apply (To/Subject/etc.)
and before attachments could be processed. Simply process
attachments before attachments list may be cleared by fields
processing. Ideally we should change quote_fmt_reset_vartable()
or its uses in compose.c at least.
2018-04-10 18:35:31 +02:00
Andrej Kacian
ebd2fafbef Fix a dumb double-free on Windows.
Closes bug 3957: Claws-Mail 64bit crashes when saving a draft
2018-02-28 19:47:56 +01:00
Ricardo Mones
27c4b31bae Replace deprecated gtk_misc_set_alignment() in core 2018-02-20 19:08:45 +01:00
Andrej Kacian
ab0270f13e Correctly set initial size for main and compose windows.
Use gtk_window_set_default_size() instead of
gtk_widget_set_size_request(), since in GTK3, the latter
sets minimum allowed size for a widget, and we're
interested in just setting initial size here. User
should be allowed to make the windows smaller.
2018-02-17 11:37:35 +01:00
Andrej Kacian
0463f92df1 Fix compose textview not using full window height. 2018-02-11 13:38:23 +01:00
Andrej Kacian
1d07c0f5db Limit external editor feature to UNIX OS with X11.
It uses GtkSocket, which is only available on X11
with GTK3.
2018-02-11 13:38:23 +01:00
wwp
a99a6bc52c Update few occurrences to the new alertpanel() API (and by the way,
solve a leaking button_label strinc allocation).
2018-02-09 22:36:41 +01:00
Andrej Kacian
5ab9e6e799 Rework of alertpanel default button focus handling.
Instead of using "+" prefix with button labels and/or
the default_value parameter, we introduce "focus"
parameter, which will point to first, second or third
button.

Advantages:
- we got rid of the "+" prefix, which won't work with GTK3
  with GTK3
- instead of having two ways to indicate which button
  should have focus, which can be in conflict, and
  are not very straightforward, there is just one,
  arguably more intuitive
- some small memory leaks fixed along the way
  (using g_strconcat() directly as function argument)
2018-02-09 14:44:30 +01:00
Ralph Sennhauser
59309a6501 Drop ifdefs for old gtk+2
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2018-02-06 20:27:53 +01:00
Ricardo Mones
8363e45874 Move all colors into an array 2018-02-05 21:18:03 +01:00
Andrej Kacian
b190f09ab3 Fix missing GError initialization in compose_draft(). 2017-12-20 10:46:01 +01:00
Andrej Kacian
9df59ba025 Add proper ifdefs around master_passphrase() calls. 2017-12-14 23:24:20 +01:00
Ricardo Mones
5b7108e97e Fix bug 3935: build from GIT master broken on arch linux
Completes 48f72c22f9 to allow building
with disabled LDAP support.
2017-12-12 18:27:32 +01:00