Commit Graph

1223 Commits

Author SHA1 Message Date
ae9db3ed23 Coding style and whitespace cleanup. 2011-09-14 14:08:48 +02:00
aa4440a959 Bug #656290 - "Always carbon-copy (cc) to:" option not honored 2011-09-14 14:08:48 +02:00
6888df9c52 Bug 653568 - Forward as Redirect doesn't work
X-Evolution-Account and X-Evolution-Transport headers were not getting
set in redirected messages.
2011-09-14 14:08:35 +02:00
5b304491be EMsgComposer: Minor cleanups. 2011-09-14 14:08:35 +02:00
54e056e2dd Postpone ENameSelector loading as much as possible
Also fixes few memory leaks around ENameSelector and cancels
loading of its address books when not needed any more.
2011-06-29 18:42:32 +02:00
84339b3be5 Do not use deprecated EBook/ECal API 2011-06-29 18:42:27 +02:00
e7954c3f25 Coding style and whitespace cleanups. 2011-06-29 18:42:26 +02:00
c24038c4f6 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-06-29 18:42:20 +02:00
0c4f4aa6ce Bug #651039 - Always update signature in composer on account change 2011-06-29 18:42:20 +02:00
0d8be64df6 Revert "Correct garbled mailto: uris passed in through GApplication interface"
This reverts commit 94d5fb1b66.

Wrong solution.  See bug #650491.
2011-06-29 18:42:19 +02:00
5146ff4c53 Coding style and whitespace cleanup. 2011-06-29 18:42:17 +02:00
42580e1802 Correct garbled mailto: uris passed in through GApplication interface 2011-06-29 18:42:16 +02:00
fb38ed0bf5 Add e_activity_handle_cancellation().
Convenience function for use in GAsyncReadyCallback functions.

This acknowledges the cancellation, so that the activity's description
changes from "(cancelling)" to "(cancelled)" and the description appears
crossed out in the UI for a moment before disappearing.
2011-06-29 18:42:12 +02:00
54da4fc09c Coding style cleanups. 2011-06-29 18:42:11 +02:00
578214584c Whitespace and coding style cleanups. 2011-06-29 18:42:10 +02:00
0be9b1f878 Adapt to CamelService changes. 2011-06-29 18:41:55 +02:00
7aacf983b3 Coding style and whitespace cleanup. 2011-06-29 18:41:41 +02:00
c774933853 Bug #641805 - Clicking links in mail composer opens URL twice 2011-06-29 18:41:40 +02:00
c003c99a75 Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-06-29 18:41:39 +02:00
274697623e Remove NULL checks for GObject methods.
As of GLib 2.28 all GObject virtual methods, including constructed(),
are safe to chain up to unconditionally.  Remove unnecessary checks.
2011-06-29 18:41:34 +02:00
cc292ebbfe Composer: Add Edit -> Preferences
Opens the Preferences window to the Composer Preferences section.
2011-06-29 18:41:31 +02:00
f099f679dc Fix image dropping in composer while in HTML mode.
Dragging image data or an image URI to the message body while in HTML
mode should insert the image inline, not attach it.  Without this the
Picture Gallery feature is pointless.
2011-06-29 18:41:31 +02:00
d7ff1792f7 Bug #635144 - Using external editor duplicates signature 2011-06-29 18:41:30 +02:00
a3ba231fcc Drop backward-compatibility cruft. 2011-06-29 18:41:25 +02:00
15c32eafdb Bug 640091 - Improve error handling during send post-processing
If a newly-composed message was successfully sent but an error occurred
during post-processing (outgoing filters or appending to a Sent folder),
close the composer window and show an alert in the main window.
2011-06-29 18:41:21 +02:00
59b03835d7 Bug #553438 - Deletes lines of a reply when changing address 2011-06-29 18:41:19 +02:00
0d2d76c021 GtkSelectionData is sealed in GTK3.
Have to use accessor functions, no pointer deferencing.
2011-06-29 18:41:16 +02:00
97fac153c5 Bug #567879 - Add View >> Gallery Option In Email Composer 2011-06-29 18:41:13 +02:00
ca3faa17a9 Free/busy meeting view doesn't work due to non-working extension 2011-06-29 18:41:08 +02:00
4db00fa9f7 Bug #404570 - Ctrl-R / NNTP doesn't focus the new message 2011-06-29 18:41:05 +02:00
616f0b140b EActivity: Add an "alert-sink" property.
This is just for convenience, EActivity does not use this property.

Especially useful in async function callbacks when the operation
failed and now you have to do something useful with the GError.
2010-11-09 23:33:20 +01:00
4a929caada Pass an EAlertSink to e_alert_sink_submit_alert().
Passing a random GtkWidget and then searching its ancestors for an
EAlertSink turned out to be not as useful as I thought.  Most of the
time we know about and have access to the widget that implements
EAlertSink, so just pass it directly as an EAlertSink.
2010-11-09 23:33:20 +01:00
02b36ad15e Fix build break. 2010-11-09 23:33:19 +01:00
20651e4f09 Set Date: when building a CamelMimeMessage in composer. 2010-11-09 23:33:19 +01:00
f544e10b71 Skip writing to Outbox when sending.
When sending a message from a composer window, it seems pointless to
write message to Outbox only to immediately read it back and mark it
for deletion.  Instead, bypass the Outbox folder when sending, and if
an error occurs, offer to save the message to Outbox instead.
2010-11-09 23:33:19 +01:00
c881b5bc5e Simplify EActivity.
With unintrusive error dialogs gone, we can cut some unnecessary bits
out of EActivity.

I'm also adding a new enum property called "state", which is one of:

    E_ACTIVITY_RUNNING
    E_ACTIVITY_WAITING
    E_ACTIVITY_CANCELLED
    E_ACTIVITY_COMPLETED

The state of an activity must be explicitly changed.  In particular,
when the user cancels an activity the state should be set only after
confirming the operation has been cancelled and not when cancellation
is requested (e.g. after receiving a G_IO_ERROR_CANCELLED, not when
the GCancellable emits "cancelled").  EActivityBar and EActivityProxy
widgets have been updated to make this distinction clearer in the UI.

E_ACTIVITY_WAITING will be used when activities have to be queued and
dispatched in sequence, which I haven't written yet.
2010-10-22 14:21:22 -04:00
d4e5485e02 Bug 632127 - Composer is editable while sending message 2010-10-14 16:32:29 -04:00
1e663aa132 Replace EBinding with GBinding.
GObject now does property bindings itself.

Requires GLib >= 2.26.
2010-10-14 07:12:52 -04:00
4118d671d4 Composer: Show cancellable operations and errors inline.
'Send' and 'Save Draft' are now asynchronous and run outside of
Evolution's MailMsg infrastructure.

Add an EActivityBar to the composer window so these asynchronous
operations can be tracked and cancelled even in the absense of a main
window.  Also add an EAlertBar to the composer window so error messages
can be shown directly in the window.

Instead of calling e_alert_dialog_run_for_args(), call e_alert_submit()
and pass the EMsgComposer as the widget argument.  The EMsgComposer will
decide whether to show an EAlertDialog or use the EAlertBar, depending
on the GtkMessageType of the alert.
2010-10-12 13:59:00 -04:00
1c6f2d154e Bug #631320 - GtkObject is gone in GTK3 2010-10-06 19:26:08 +02:00
0e4c54eddc Messin around with EAlerts.
Trying out a new interface called EAlertSink.  The idea is to centralize
how errors are shown to the user.  A GtkWindow subclass would implement
the EAlertSink interface, which consists of a single method:

    void  (*submit_alert)  (EAlertSink *alert_sink, EAlert *alert);

The subclass has complete control over what to do with the EAlert,
although I imagine we'll wind up implementing various alert-handling
policies as standalone widgets such as EAlertDialog.  I'd like to try
an EAlertInfoBar.

Code that would otherwise display an error dialog itself would instead
pass the EAlert to an appropriate EAlertSink and be done with it.

Nothing is final yet.  Still hacking on EAlert trying to find an API
that feels right for these use cases.
2010-09-29 21:11:44 -04:00
31b57ed038 Adapt to Camel API changes. 2010-09-28 11:35:55 -04:00
a91eeb6471 Pass GCancellable to Camel. 2010-09-28 11:35:55 -04:00
afe6f502c3 Use new GDK keysym names if available.
In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*.

I've added backward-compatibility macors to gtk-compat.h, which can be
dumped as soon as we require GTK+ >= 2.22.0.
2010-09-17 18:39:59 -04:00
e6067ccb6c Bug 616073 - Various translation issues 2010-09-10 18:51:26 -04:00
d5dae027a8 Bug 629049 - Memory leak in e_composer_pose_header_set_account() 2010-09-08 09:09:55 -04:00
101305e1c7 Various memory leaks 2010-09-07 18:39:46 +02:00
429234ff21 Convert composer autosave to an EExtension.
Given the way the autosave feature was awkwardly bolted on to the
composer, an EExtension seemed like a natural fit.  And it helped
clean up some object lifecycle hacks (and bugs).

What we have now is a new module consisting of two EExtensions:

   EComposerAutosave extends EMsgComposer and determines when to
   kick off an asynchronous autosave operation.

   EComposerRegistry extends EShell and offers to restore orphaned
   autosave files on startup (which is also asynchronous now).

e-autosave-utils.c holds the actual asynchronous functions and a few
other miscellaneous utility functions.

Source code for the new module lives in /modules/composer-autosave.
2010-09-02 13:37:31 -04:00
035fbcd841 Composer autosave cleanups.
This simplifies the async autosave logic and improves error handling.

Hoping this will solve bug #616987 but I've yet to reproduce it myself.
2010-08-30 14:26:00 -04:00
4c05b9e925 Coding style and whitespace cleanup. 2010-08-29 11:22:28 -04:00