diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-21 02:38:10 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-21 02:38:10 +0800 |
commit | 3682e0ef1f2d736ced6cff11dd4c5e87dd0fd6d8 (patch) | |
tree | 2d98889e5975b20c25dfd8e2984d0083774cdab9 /shell/e-shell-config-offline.c | |
parent | 97d578613baab00205b157c2cd87baed41dbcf5f (diff) | |
download | gsoc2013-evolution-3682e0ef1f2d736ced6cff11dd4c5e87dd0fd6d8.tar.gz gsoc2013-evolution-3682e0ef1f2d736ced6cff11dd4c5e87dd0fd6d8.tar.zst gsoc2013-evolution-3682e0ef1f2d736ced6cff11dd4c5e87dd0fd6d8.zip |
Remove exception. (cancelSyncFolder): Remove exception.
* Evolution-Offline.idl (syncFolder): Remove exception.
(cancelSyncFolder): Remove exception.
* e-shell-config-offline.c (storage_set_view_has_checkbox_func):
New.
(e_shell_config_offline_create_control): Pass it as the
@has_checkbox_func.
* e-folder.c: New member can_sync_offline in EFolderPrivate.
(init): Init to FALSE.
(e_folder_get_can_sync_offline): New.
(e_folder_to_corba): Set canSyncOffline in the returned CORBA
folder.
(e_folder_set_physical_uri): Protect from when @physical_uri and
->physical_uri are the same thing.
(e_folder_set_description): Same here with description.
(e_folder_set_type_string): And type.
* Evolution-common.idl: New member canSyncOffline in struct
Folder.
svn path=/trunk/; revision=16946
Diffstat (limited to 'shell/e-shell-config-offline.c')
-rw-r--r-- | shell/e-shell-config-offline.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/shell/e-shell-config-offline.c b/shell/e-shell-config-offline.c index 2776d32cdd..bc497fece6 100644 --- a/shell/e-shell-config-offline.c +++ b/shell/e-shell-config-offline.c @@ -155,6 +155,20 @@ init_storage_set_view_status_from_config (EStorageSetView *storage_set_view, CORBA_exception_free (&ev); } +static gboolean +storage_set_view_has_checkbox_func (EStorageSet *storage_set, + const char *path, + void *data) +{ + EFolder *folder; + + folder = e_storage_set_get_folder (storage_set, path); + if (folder == NULL) + return FALSE; + + return e_folder_get_can_sync_offline (folder); +} + BonoboObject * e_shell_config_offline_create_control (EShell *shell) { @@ -168,7 +182,7 @@ e_shell_config_offline_create_control (EShell *shell) page_data->storage_set_view = e_storage_set_new_view (e_shell_get_storage_set (shell), NULL); e_storage_set_view_set_show_checkboxes (E_STORAGE_SET_VIEW (page_data->storage_set_view), TRUE, - NULL, NULL); + storage_set_view_has_checkbox_func, NULL); gtk_widget_show (page_data->storage_set_view); init_storage_set_view_status_from_config (E_STORAGE_SET_VIEW (page_data->storage_set_view), shell); |