aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-file-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Use g_simple_async_result_set_check_cancellable().Matthew Barnes2012-05-131-0/+2
| | | | Always call it immediately after g_simple_async_result_new().
* Prefer g_simple_async_result_take_error().Matthew Barnes2011-10-061-2/+1
| | | | | | | | | Slightly more efficient and convenient than: g_simple_async_result_set_from_error (simple, error); g_error_free (error); One less GError to copy and destroy.
* Including <glib.h> directly is rarely needed.Matthew Barnes2011-05-281-1/+0
|
* Bug #646109 - Fix use of include <config.h> to make sure translations workMilan Crha2011-05-271-0/+2
|
* Add e_activity_handle_cancellation().Matthew Barnes2011-05-121-3/+1
| | | | | | | | 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.
* Simplify EActivity.Matthew Barnes2010-10-231-28/+50
| | | | | | | | | | | | | | | | | | | | | | 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.
* Drop support for migrating from Evolution < 2.0.Matthew Barnes2010-03-301-105/+0
| | | | | | | There's too much ancient, crufty code there that we can't realistically support anymore. A workaround for those poor users still on 1.x is to upgrade to some 2.x release first, then upgrade again to 3.x. An error dialog explaining this will be shown at startup.
* Bug 612679 - Crash when saving to a directory without permissionMatthew Barnes2010-03-121-9/+9
|
* Update API documentation.Matthew Barnes2010-02-101-2/+2
| | | | Also, start fixing some Gtk-Doc warnings. There's a lot.
* Coding style and whitespace cleanup.Matthew Barnes2009-12-261-1/+2
|
* Convert some "Save As" actions to run asynchronously.Matthew Barnes2009-11-081-2/+37
| | | | | | | | | | This introduces e-shell-utils for miscellaneous utility functions that integrate with the shell or shell settings. First function is e_shell_run_save_dialog(), which automatically remembers the selected folder in the file chooser dialog. Also, kill some redundant save dialog functions, as well as some write-this-string-to-disk functions that block.
* Test drive EIOActivity with a simple asynchronous function.Matthew Barnes2009-11-081-0/+281
Rename e-fsutils to e-file-utils. This is where we'll add asynchronous functions for common file I/O operations with EActivity integration. Start with e_file_replace_contents_async() (and corresponding finish() function). This is a simple wrapper for g_file_replace_contents_async() which also returns an EActivity. It replaces e_write_file_uri(). Also redesign EIOActivity to -contain- a GAsyncResult rather than implement the interface for itself. This is easier for now but I may change my mind again when I figure out how to tie centralized error reporting into the EActivity framework.