Commit Graph

2460 Commits

Author SHA1 Message Date
Milan Crha 3f746c4a55 Do not flush Outbox when mail shell backend not started 2011-06-29 18:41:41 +02:00
Milan Crha f3c11101c3 Merge duplicate local sources 2011-06-29 18:41:41 +02:00
Milan Crha c003c99a75 Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-06-29 18:41:39 +02:00
Milan Crha 8850d23455 Write state.ini immediately in EShellView::dispose method 2011-06-29 18:41:37 +02:00
Matthew Barnes 3b6c8972a5 Coding style and whitespace cleanup. 2011-06-29 18:41:36 +02:00
Milan Crha 65bc58546c Bug #638333 - Critical warning when invoking File->New->Mail Folder 2011-06-29 18:41:35 +02:00
Milan Crha a4e2599f95 Fix few memory leaks 2011-06-29 18:41:35 +02:00
Matthew Barnes f03d5a9023 Bug 642171 - Implicit libgnome dependency for lockdown GConf keys
Lockdown keys have moved to gsettings-desktop-schemas, so disable
lockdown integration until we're ready for GSettings.
2011-06-29 18:41:34 +02:00
Matthew Barnes 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
Milan Crha 49a9fc336f Bug #638057 - Evolution --express doesn't remember status bar setting 2011-06-29 18:41:32 +02:00
Kjartan Maraas 8efc1bc6f9 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-06-29 18:41:31 +02:00
Matthew Barnes cc292ebbfe Composer: Add Edit -> Preferences
Opens the Preferences window to the Composer Preferences section.
2011-06-29 18:41:31 +02:00
Matthew Barnes dbc22f9de5 More whitespace cleanup. 2011-06-29 18:41:29 +02:00
Matthew Barnes 6af0c53b69 Coding style and whitespace cleanup. 2011-06-29 18:41:29 +02:00
Milan Crha 0cd61756d8 Bug #640516 - Information bar above folder list is empty 2011-06-29 18:41:26 +02:00
Rodrigo Moya b5aba428f4 Adapt size_request vfuncs to latest gtk+-3.0 API. 2011-06-29 18:41:26 +02:00
Matthew Barnes 7a49a21178 Dialogs no longer have separators. 2011-06-29 18:41:25 +02:00
Matthew Barnes a3ba231fcc Drop backward-compatibility cruft. 2011-06-29 18:41:25 +02:00
Milan Crha c36bd27fa8 Bug #634403 - Mails Label popup menu is not updated properly 2011-06-29 18:41:20 +02:00
Matthew Barnes 2485ba3936 Fudge gtk_widget_get_preferred_size() for gtk2.
Easy enough to fake gtk_widget_get_preferred_size() in gtk2 using
gtk_widget_size_request().  Reduces diff noise with gtk3 branch.
2011-06-29 18:41:19 +02:00
Milan Crha 642b32cbdb Bug #638808 - camel_shutdown() called too early 2011-06-29 18:41:17 +02:00
Matthew Barnes fdf1c024b5 Add e_shell_submit_alert().
An easy way to broadcast application-wide alerts to shell windows.
These alerts will persist in all current and future shell windows
until responded to (either programmatically or by the user).
2011-06-29 18:41:14 +02:00
Milan Crha e5cade6176 Bug #590245 - 'evolution --force-shutdown' should kill factories 2011-06-29 18:41:09 +02:00
Milan Crha ca3faa17a9 Free/busy meeting view doesn't work due to non-working extension 2011-06-29 18:41:08 +02:00
Andre Klapper 15ac6ceed3 Clarify command line parameter string 2011-06-29 18:41:08 +02:00
Milan Crha 48d805df31 Bug #207580 - Allow new mail check on individual accounts 2011-06-29 18:41:04 +02:00
Mathieu Trudel-Lapierre 89f4d51b10 Bug #635087 - Leftover files after migration of config/data/cache to XDG directories 2011-06-29 18:41:04 +02:00
Chenthill Palanisamy 89557dcfee Migrate the local store from mbox to maildir format 2011-06-29 18:41:04 +02:00
Javier Jardón 50784afa50 Add a compatibility code to previous patch 2010-11-09 23:33:23 +01:00
Javier Jardón e0a75a7125 Use gtk_paned_new() instead gtk_[v|h]paned_new() 2010-11-09 23:33:23 +01:00
Matthew Barnes 7439ad9ca1 Fix distcheck errors. 2010-11-09 23:33:23 +01:00
Matthew Barnes 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
Milan Crha d4adff17a2 Bug #597567 - Crash in comp_subject()
Fix works only when compiled with libical 0.46 or later
2010-10-21 11:39:53 +02:00
Matthew Barnes 51ebf20237 EAlert: Allow arbitrary actions to be added.
You can now amend the predefined actions in an EAlert by calling
e_alert_add_action().  Useful for adding actions from an existing
GtkUIManager.

Call e_alert_peek_actions() to obtain a combined list of predefined
and custom actions.  These will typically serve as "related" actions
for GtkButtons (cf. gtk_activatable_set_related_action()).

Also, both EShellWindow and EShellView now implement EAlertSink.  Use
EShellWindow for application-wide alerts, EShellView for view-specific
alerts.
2010-10-18 12:32:36 -04:00
Matthew Barnes 2197e6401e Implement EAlertSinkInterface in EShellContent.
Use the same alert handling policy as the composer.
2010-10-18 10:57:36 -04:00
Matthew Barnes 776d7f50b5 EShellView: Mark a string for translation. 2010-10-18 10:57:36 -04:00
Matthew Barnes 1e663aa132 Replace EBinding with GBinding.
GObject now does property bindings itself.

Requires GLib >= 2.26.
2010-10-14 07:12:52 -04:00
Matthew Barnes b4f97aea9b Bug 461769 - Add a --force-online command line option
Use it to override network availability detection as reported by
NetworkManager or other network monitoring software.
2010-10-13 16:55:07 -04:00
Matthew Barnes 3fbcc8ef80 EShellBackend: Respond to EShell::prepare-for-quit signals.
Listen for "prepare-for-quit" signals from the shell and inhibit
shutdown until all the activities we're tracking are finalized.

Also, add a couple supporting functions:

  gboolean  e_shell_backend_is_busy     (EShellBackend *shell_backend);
  void      e_shell_backend_cancel_all  (EShellBackend *shell_backend);

These will eventually replace mail_msg_active() and mail_cancel_all().
2010-10-13 16:00:03 -04:00
Milan Crha 1c6f2d154e Bug #631320 - GtkObject is gone in GTK3 2010-10-06 19:26:08 +02:00
Milan Crha 1b2fefb086 Bug #630390 - Operation stuck: Generating message list (cancelled) 2010-10-06 13:08:41 +02:00
Matthew Barnes ff397723ac Fix distcheck errors. 2010-10-04 13:53:01 -04:00
Matthew Barnes 9675f18d91 Coding style and whitespace cleanup. 2010-10-03 13:29:20 -04:00
Matthew Barnes 02452930e7 EShellBackend: Start tracking activities
EShellBackend now keeps an internal queue of live EActivity objects
passed to it via e_shell_backend_add_activity().  This will eventually
replace "mail_msg_active_table" in mail-mt.c and be used to coordinate
shutdown for all shell backends.

But first I have to eliminate mail_msg_wait().
2010-09-29 22:51:08 -04:00
Matthew Barnes a98c07a569 Add a GCancellable to EActivity.
EActivity now uses a GCancellable to manage cancellations, instead of
having its own redundant cancellation API.  API changes are as follows:

  + e_activity_get_cancellable()
  + e_activity_set_cancellable()

  - e_activity_cancel()
  - e_activity_is_cancelled()
  - e_activity_get_allow_cancel()
  - e_activity_set_allow_cancel()

EActivity's "cancelled" signal remains, but only as a repeater for
GCancellable::cancelled signals.  It should not be emitted directly.

The presence of a GCancellable implies that cancellation is allowed.
EActivity does not create its own default GCancellable, it has to be
given one.

If a CamelOperation (cast as a GCancellable) is given, EActivity will
configure itself to listen for status updates from the CamelOperation
and propagate the information to its own "primary-text" and "percent"
properties.

These changes allowed me to start cleaning up some of the incredibly
convoluted logic in mail-mt.c -- in particular, mail_operation_status()
is completely gone now.  mail-mt.c is still in a transitional state --
much more significant changes coming soon.
2010-09-18 16:40:19 -04:00
Matthew Barnes 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
Fridrich Štrba 64f53f1a53 Increase safety on Windows
Call SetDllDirectory() to reduce risk of DLL hijacking, and call SetProcessDEPPolicy() to reduce risk of rogue code execution.
2010-09-15 16:49:01 +02:00
Matthew Barnes ebcce86769 Coding style and whitespace cleanups. 2010-09-11 14:14:04 -04:00
Matthew Barnes bc9ece413f Re-work my GtkDialog:has-separator workaround.
If we're using GTK+ 2.21.8 (where gtk_dialog_set_has_separator() is
deprecated but the property is still present and defaults to TRUE), we
still need to set the property to FALSE.  So instead use g_object_set()
up through GTK+ 2.90.6, after which the property itself is gone.
2010-09-11 09:03:45 -04:00
Matthew Barnes a6e137295f Work around deprecation of gtk_dialog_set_has_separator()
Unfortunately the default value for this property is TRUE (bzzt, WRONG!)
so we can't just remove the function outright until we require GTK+ 2.22.
It was deprecated in GTK+ 2.21.8.
2010-09-11 00:30:54 -04:00