| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When I wrote e_load_cal_source_async() it didn't occur to me that a
calendar backend may emit "auth-required" after the initial connection
attempt. And because I was passing the allocated context data for the
asynchronous load operation to e_cal_set_auth_func(), meaning the data
gets freed at the end of the load operation, I was then calling
e_cal_set_auth_func(cal, NULL, NULL) after the initial authentication
was complete so that the ECal would not try to access the freed context
data after the load operation finished.
But that turned out to break the case of switching to offline mode, then
back to online mode. Most calendar backends need to re-authenticate when
they come back online.
This commit instead passes data to the authentication function by way of
g_object_set_data_full() so that the authentication function can be left
in place for the duration of the ECal instance.
Note that e_cal_set_auth_func() lacks a GDestroyNotify argument for the
user data passed to it, which rules out passing any kind of allocated
data structure. This is an API design flaw, in my opinion. But
g_object_set_data_full() *does* take a GDestroyNotify argument.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Similar to e_load_book_source_async() in libedataserverui (and may wind
up there eventually). This replaces e_auth_new_cal_from_source().
void e_load_cal_source_async (ESource *source,
ECalSourceType source_type,
icaltimezone *default_zone,
GtkWindow *parent,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
ECal * e_load_cal_source_finish (ESource *source,
GAsyncResult *result,
GError **error);
|
| |
|
| |
|
|
|
|
|
|
|
| |
This involves renaming the calendar auth-related functions to have a
prefix, and shipping the headers.
Part of https://bugzilla.gnome.org/show_bug.cgi?id=608175
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-15 Milan Crha <mcrha@redhat.com>
** Fix for bug #303738
* gui/gnome-cal.c: (client_cal_opened_cb),
(default_client_cal_opened_cb):
* gui/e-memos.c: (client_cal_opened_cb),
(default_client_cal_opened_cb):
* gui/e-tasks.c: (client_cal_opened_cb),
(default_client_cal_opened_cb):
Forget password on AuthFailed or AuthRequired and try to reopen
on AuthFailed status, which will ask for a password again.
* gui/comp-editor-factory.c: (cal_opened_cb):
Show "Authentication Required" on such status returned.
* common/authentication.c: (auth_cal_forget_password):
Do not free memory which hold ECal. Also always forget password
for calendar with the URL key.
svn path=/trunk/; revision=37080
|
|
|
|
| |
svn path=/trunk/; revision=36116
|
|
|
|
| |
svn path=/trunk/; revision=35665
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-06-10 Matthew Barnes <mbarnes@redhat.com>
* addressbook/gui/component/addressbook-component.c:
* calendar/common/authentication.c:
* calendar/gui/calendar-component.c:
* calendar/gui/comp-editor-factory.c:
* calendar/gui/dialogs/copy-source-dialog.c:
* calendar/gui/dialogs/select-source-dialog.c:
* calendar/gui/memos-component.c:
* calendar/gui/migration.c:
* calendar/gui/tasks-component.c:
* shell/test/evolution-test-component.c:
Use <glib/gi18n.h> instead of <bonobo/bonobo-i18n.h>.
svn path=/trunk/; revision=35625
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-02-18 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bnc #160049. Patch from OpenSUSE.
* common/authentication.c: (build_pass_key),
(auth_cal_forget_password):
* common/authentication.h:
* gui/e-tasks.c: (client_cal_opened_cb),
(default_client_cal_opened_cb):
* gui/gnome-cal.c: (client_cal_opened_cb):
svn path=/trunk/; revision=35035
|
|
|
|
|
|
|
|
|
| |
2007-11-14 Matthew Barnes <mbarnes@redhat.com>
** Remove trailing whitespace from source code.
svn path=/trunk/; revision=34537
|
|
|
|
|
|
|
|
|
|
| |
2007-09-02 Matthew Barnes <mbarnes@redhat.com>
* Update FSF address in header comments (#469886).
Patch from Tobias Mueller.
svn path=/trunk/; revision=34151
|
|
|
|
|
|
|
|
|
|
| |
2007-07-31 Matthew Barnes <mbarnes@redhat.com>
* common/authentication.c: Include <libedataserver/e-source.h>
to fix implicit declaration of e_source_get_duped_property().
svn path=/trunk/; revision=33915
|
|
|
|
| |
svn path=/trunk/; revision=33899
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* configure.in: Make mailer depend on libedataserverui.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* Makefile.am (eutilinclude_HEADERS)
(libeutil_la_SOURCES): Remove e-passwords from here, it now
lives in libedataserverui.
* e-passwords.[ch]: Removed.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* gui/component/addressbook-view.c:
* gui/component/addressbook.c: Include
<libedataserverui/e-passwords.h>.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* common/authentication.c:
* gui/e-pub-utils.c:
* gui/alarm-notify/alarm-notify.c:
* gui/alarm-notify/notify-main.c:
* gui/dialogs/url-editor-dialog.c:
Include <libedataserverui/e-passwords.h>.
* gui/itip-utils.c: Remove e-passwords.h include, it's not
needed.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* mail-session.c:
* mail-config.c: Include <libedataserverui/e-passwords.h>.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* gui/component.c:
* lib/e-cert-db.c:
* lib/e-pkcs12.c: Include <libedataserverui/e-passwords.h>.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* e-shell-window-commands.c:
* e-shell.c:
* main.c: Include <libedataserverui/e-passwords.h>.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* camel-gw-listener.c: Include <libedataserverui/e-passwords.h>.
2005-02-23 Hans Petter Jansson <hpj@novell.com>
* send-options.c: Include <libedataserverui/e-passwords.h>.
svn path=/trunk/; revision=28871
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2004-10-06 Rodrigo Moya <rodrigo@novell.com>
Fixes #65932
* common/authentication.c: keep a hash table of all the source lists.
(auth_new_cal_from_uri): do a search in the source list for the given
URI, and use that ESource if we find it. Also, keep the hash table of
source lists up to date.
* gui/comp-editor-factory.c (cal_opened_cb): don't assert on error
cases, just display an error dialog.
svn path=/trunk/; revision=27498
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2004-08-27 Not Zed <NotZed@Ximian.com>
* common/authentication.c (auth_func_cb): constify the strings to
remove a warning.
** See bug #64856 (workaround).
* common/authentication.c (auth_func_cb):
* gui/e-pub-utils.c(e_pub_publish): add ONLINE flag to password
request.
svn path=/trunk/; revision=27077
|
|
|
|
|
|
|
|
|
| |
2004-08-10 Not Zed <NotZed@Ximian.com>
* gui/e-pub-utils.c (e_pub_publish):
* common/authentication.c (auth_func_cb): epasswords api change.
svn path=/trunk/; revision=26882
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2004-07-20 Not Zed <NotZed@Ximian.com>
* gui/e-cal-model.c:
* importers/icalendar-importer.c:
* gui/dialogs/select-source-dialog.c:
* gui/dialogs/copy-source-dialog.c:
* gui/alarm-notify/util.c:
* common/authentication.c:
* gui/migration.c: include config.h. See #61395.
svn path=/trunk/; revision=26694
|
|
|
|
|
|
|
|
|
|
| |
2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
* common/authentication.c (auth_func_cb) : read the "auth-domain"
property to use as component name for e-password calls instead of
hard coded component name
svn path=/trunk/; revision=26074
|
|
|
|
|
|
|
|
|
| |
2004-02-18 Rodrigo Moya <rodrigo@ximian.com>
* common/authentication.c (auth_func_cb): call first e_passwords_get_password
before calling _ask_password.
svn path=/trunk/; revision=24777
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2004-02-04 JP Rosevear <jpr@ximian.com>
* importers/icalendar-importer.c (gnome_calendar_import_data_fn):
use new cal auth functions
* common/authentication.c (auth_new_cal_from_default): get a
default calendar with auth
* common/authentication.h: add proto
svn path=/trunk/; revision=24621
|
|
|
|
|
|
|
|
|
|
|
|
| |
2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
* common/authentication.c (auth_new_cal_from_source): check
return value from e_cal_new().
* gui/gnome-cal.c (gnome_calendar_construct): if there is no
default tasks folder, don't create the ECal from it.
svn path=/trunk/; revision=24219
|
|
2003-12-22 Rodrigo Moya <rodrigo@ximian.com>
* common/authentication.[ch]: new files for managing interactive
authentication with backends.
* common/Makefile.am: build new private library.
* gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar):
* gui/dialogs/event-page.c (source_changed_cb):
* gui/dialogs/task-page.c (source_changed_cb):
* gui/dialogs/copy-source-dialog.c (copy_source):
* gui/calendar-component.c (setup_create_ecal):
* gui/calendar-offline-handler.c (backend_go_offline,
backend_go_online, calendar_offline_handler_init):
* gui/comp-editor-factory.c (open_client):
* gui/e-itip-control.c (start_calendar_server):
* gui/e-tasks.c (e_tasks_add_todo_uri):
* gui/gnome-cal.c (gnome_calendar_construct,
gnome_calendar_add_event_uri):
* gui/tasks-component.c (setup_create_ecal):
* importers/icalendar-importer.c (load_file_fn, vcal_load_file_fn,
gnome_calendar_import_data_fn): create the ECal's via the
auth_new_cal_from* functions in the authentication module.
* gui/alarm-notify/Makefile.am:
* gui/Makefile.am:
* importers/Makefile.am: link new private library.
* Makefile.am: added new directory to the build.
svn path=/trunk/; revision=23999
|