Commit Graph

133 Commits

Author SHA1 Message Date
7c0c40f833 Reorder accounts by drag-and-drop.
This implements https://bugzilla.gnome.org/show_bug.cgi?id=663527#c3.

Account reordering is now done by drag-and-drop instead of up/down
buttons.

Turned out to be a wee bit more complicated than I initially thought.

This scraps EAccountManager and EAccountTreeView and replaces them with
new classes centered around EMailAccountStore, which EMailSession owns.

EMailAccountStore is the model behind the account list in Preferences.
The folder tree model now uses it to sort its own top-level rows using
gtk_tree_path_compare().  It also broadcasts account operations through
signals so we don't have to rely so heavily on EAccountList signals,
since EAccountList is going away soon.

Also as part of this work, the e-mail-local.h and e-mail-store.h APIs
have been merged into EMailSession and MailFolderCache.
2011-12-10 21:34:19 -05:00
c75f58d01b Fix compiler warnings. 2011-11-22 14:34:11 -05:00
7ab5ae3fc7 Merge branch 'master' into wip/gsettings 2011-11-14 13:08:57 +01:00
7f962687ba Bug #636214 fetch configuration details from server
Code changes
2011-11-09 21:16:12 +05:30
e13266896b Bug #636214 get configuration details from server part2
Deleting files from capplet/settings
2011-11-09 21:13:43 +05:30
b3b35231e2 Merge branch 'master' into wip/gsettings 2011-10-28 11:38:03 +02:00
6a13d1a9ee Remove g_thread_init() calls.
g_type_init() already calls it, and has for several GLib releases.
2011-10-26 15:28:35 -04:00
2b7bb054f0 e-mail-store.c: Take EMailSession instead of EMailBackend.
My apologies for flip-flopping the API again.

e-mail-store.c functions used to take an EMailSession, then I changed
it to take an EMailBackend in preparation for my account-mgmt branch.

Having rethought some API decisions on the branch, however, the first
flip-flop proved to be unnecessary.  And now Srini needs the API to use
EMailSession for his mail-factory branch, so I'm flip-flopping again.
2011-10-26 12:46:13 -04:00
bd149b2795 Merge branch 'master' into wip/gsettings 2011-10-24 11:30:20 +02:00
8c67e84f9b Call g_thread_init() conditionally 2011-10-24 09:42:48 +02:00
5f439e5e62 Trivial little cleanups.
To synchronize with the "wip/gsettings" branch.

Mostly just removing unneeded "gconf-bridge.h" includes.
2011-10-18 12:27:13 -04:00
65a7bac6c6 Last remainig bits that can migrated to GSettings in the capplet 2011-10-13 17:28:43 +02:00
7caabe9230 Migrate mail-account-view.c to GSettings 2011-10-13 17:13:34 +02:00
1f38f4d92c Simplify library dependency flags.
We have a confusing array of nearly-identical CFLAGS/LIBS definitions in
configure.ac.  Time to simplify.  Instead let's just have one definition
that includes all the libraries provided by Evolution-Data-Server (incl.
Camel).  That, in combination with GNOME_PLATFORM, gives us most of what
we need for compliation and linking, and we can sprinkle definitions for
additional library dependencies in Makefile.am's as needed.
2011-10-04 22:27:14 -04:00
e2b6ff7a6c Miscellaneous cleanups from the account-mgmt branch.
Reducing diff noise so I can see important changes easier when comparing
branches.  A few API changes, but nothing that affects functionality.
2011-09-27 09:31:13 -04:00
c51b960295 Bug #655564 - Express remembers settings of not finished account 2011-09-06 12:33:49 +02:00
fcbbdfbd18 Coding style and whitespace cleanup. 2011-09-04 07:34:32 -04:00
079db2baea MailAccountView: Adapt to URL parameter renames.
It's "security-method" now instead of "use_ssl".
2011-08-15 11:56:26 -04:00
f59681796d Coding style and whitespace cleanup. 2011-08-13 11:27:51 -04:00
99d492b828 Adapt to CamelSession and e-passwords changes. 2011-07-04 10:20:54 -04:00
13bddd5581 Fix crash when adding account in express mode
The settings library started using an EMailBackend object, but since
it is abstract it can't be instantiated directly. So we use the EShell
to get the mail backend for us instead, after loading the modules.
2011-06-28 15:44:45 -03:00
644214f51a Bug #653358 Do not duplicate google address book
When a GMail account check that the address book does not already
exist before creating an ESource for it, and adding it to the list.

https://bugzilla.gnome.org/show_bug.cgi?id=653358
2011-06-27 16:53:38 -03:00
38790d8478 Do not use deprecated EBook/ECal API 2011-06-14 08:54:20 +02:00
756c8abcb8 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-05-27 15:23:07 +02:00
9692758dc5 EMFolderTree: Store an EMailBackend instead of an EMailSession.
All this so EMFolderTree can submit EActivity instances for async ops.
You can obtain an EMailSession from an EMailBackend, but not vice versa.

Creates lots of pretty ripples in the mail code, but ultimately reduces
complexity.  So it's a code cleanup of sorts.
2011-05-23 21:50:50 -04:00
cb97c2dc8f Coding style and whitespace cleanup. 2011-05-21 17:56:06 -04:00
8a186c3588 Coding style cleanups. 2011-05-08 13:37:20 -04:00
4cfb84c573 Whitespace and coding style cleanups. 2011-05-07 18:48:38 -04:00
a88e617009 Rip out Anjal-specific cruft we don't need.
Need to trim off the fat if we're ever going to merge the souped up mail
account wizard.  Still a long way to go...
2011-03-27 18:38:40 -04:00
a391e7f522 evolution-settings doesn't really need to be unique.
This thing is kind of a weird hybrid of Anjal and Evolution code anyway.
We should figure out if and where it really belongs in Evolution and get
the Anjal references cleaned up.
2011-03-24 14:55:25 -04:00
c6fd77460f Coding style and whitespace cleanup. 2011-03-05 12:34:28 -05:00
1301cf02ef Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-02-25 16:20:41 +01:00
fcb29478f6 Coding style and whitespace cleanup. 2011-02-18 20:44:24 -05:00
08c98477b9 Bug #637924 - Shows duplicate sentence while click "Back-Sending" button 2011-02-11 13:55:15 +01:00
7f62e90b69 Bug #637923 - Wrap long text in Yahoo email setup 2011-02-11 13:34:17 +01:00
2c31a5bc23 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-02-08 11:57:50 -05:00
bd7a0270f0 Bug 641003 - Build failure in mail-capplet 2011-01-31 08:00:18 -05:00
0109aa3a92 More whitespace cleanup. 2011-01-30 11:33:28 -05:00
f191531136 Bug #640536 - Warnings when adding a google account in express mode 2011-01-27 10:35:39 +01:00
309060a4e7 No more "expose-event" on GtkWidget 2011-01-25 12:06:16 -05:00
72a11da2fc Adapt gdk_window_get_geometry for gtk+-3.0
Depth parameter has been removed now.
Some other random fixes for gtk+-3.0 too.
2011-01-25 10:37:16 -05:00
753c60fc67 Drop backward-compatibility cruft. 2011-01-25 10:28:26 -05:00
85f2dfabd1 Call setlocale() instead of gtk_set_locale().
gtk_set_locale() has been deprecated in GTK+ 2.23.3.
2010-12-22 20:25:24 -05:00
5a25840bbb Bug #636058 - Account setup issues express mode.
Widget name required to update.
2010-12-01 14:39:33 +05:30
51d17b48e4 Bug #632962 - Duplicate "On this computer" sources after update 2010-11-24 13:37:15 +01:00
0e7b23b94d Miscellaneous fixups. 2010-10-18 14:31:16 -04:00
ec170e47fd Move more account utilities to e-account-utils.c. 2010-10-18 12:32:38 -04:00
35e55a8d6e Send errors to an EAlertSink instead of the task bar.
This marks the end of unintrusive error dialogs, which were too
unintrusive.  We now show errors directly in the main window using
the EAlert / EAlertSink framework.
2010-10-18 12:32:37 -04:00
a06e4484b8 Give MailSession a permanent home.
Global variables in shared libraries are a bad idea.  EMailBackend now
owns the MailSession instance, which is actually now EMailSession.

Move the blocking utility functions in mail-tools.c to e-mail-session.c
and add asynchronous variants.  Same approach as Camel.

Replace EMailReader.get_shell_backend() with EMailReader.get_backend(),
which returns an EMailBackend.  Easier access to the EMailSession.
2010-10-12 13:58:59 -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