* evolution-storage-set-view.c
(impl_StorageSetView__get_checkedFolders): Set release for the
CORBA path sequence to TRUE.
* evolution-shell-component.c
(fill_corba_sequence_from_null_terminated_string_array): Set
release for the CORBA sequence to TRUE so it gets freed properly.
(impl__get_externalUriSchemas): Likewise for the returned
uri_chema_list.
* e-shell-offline-handler.c (duplicate_connection_list): Set
release for the connection sequence to TRUE.
* e-shell-config-offline.c (config_control_apply_callback): Set
release for the path sequence to TRUE.
* e-corba-storage-registry.c
(impl_StorageRegistry_getStorageList): Set release for the storage
sequence to TRUE.
* evolution-storage.c (impl_Storage__get_folderList): Set release
for the folder sequence to TRUE.
svn path=/trunk/; revision=17062
* e-folder-list.c (e_folder_list_construct): Use
bonobo_object_ref() instead of bonobo_object_client_ref() as the
former only refs the CORBA object [Sigh].
* e-shell-config-autocompletion.c
(e_shell_config_autocompletion_create_widget): Don't unref the
shell_client here, as we need it. :-)
svn path=/trunk/; revision=17046
* e-shell-view-menu.c (command_about_box): Connect
about_box_event_callback() to the "key_press_event" signal as
well. This way the about box is closed when you press a key too.
[#25349]
svn path=/trunk/; revision=17044
2002-05-28 Chris Toshok <toshok@ximian.com>
* e-folder-list.c (e_folder_list_set_items): skip folders that
aren't valid uri's.
(e_folder_list_get_items): didn't update this to track the change
in model columns. bad toshok.
svn path=/trunk/; revision=17028
2002-05-24 Chris Toshok <toshok@ximian.com>
[ fixes 90% of #25047 ]
* e-folder-list.c (get_folder_for_uri): shamelessly lifted from
evolution-folder-selector-button.c.
(create_display_string): modeled again after
evolution-folder-selector-button.c, so we can give a little more
context (and make the table look like the folder selector
buttons.)
(SPEC): add a pixbuf column, also remove the sorting behavior.
(columns): add a pixbuf column and another string column (for the
display string).
(add_clicked): create the display string and get the proper
pixbuf, and insert both.
(edit_clicked): removed.
(update_buttons): remove edit button handling from here.
(e_folder_list_init): remove the hooking up of button-edit's
"clicked" signal.
(e_folder_list_construct): get a reference to the storage registry
so we can look up folders.
(e_folder_list_set_items): analogous change to add_clicked - get
the display string and pixbuf and insert them.
* glade/e-folder-list.glade: remove the edit button.
* glade/e-shell-config-default-folders.glade: remove the
frame/vbox, since we embed it in a notebook and the tab has the
title already.
* e-shell-config.c (config_control_factory_cb): the only config
control we deal with here now is the folder settings control.
* e-shell-config-default-folders.c
(e_shell_config_default_folders_create_widget): rename
e_shell_config_default_folders_create_control to this, return the
widget, and take the config control to use as an arg.
* e-shell-config-offline.c (e_shell_config_offline_create_widget):
make an analogous change here as with
default_folders_create_widget.
* e-shell-config-default-folders.h
(e_shell_config_default_folders_create_widget): track change to
prototype.
* e-shell-config-offline.h (e_shell_config_offline_create_widget): same.
* GNOME_Evolution_Shell.oaf.in: remove the DefaultFolders and
OfflineFolders controls and add a FolderSettings_Control.
* Makefile.am (evolution_SOURCES): add
e-shell-config-folder-settings.[ch] and
e-shell-config-autocompletion.[ch].
* e-shell-config-folder-settings.[ch]: new files, embed (after a
fashion) the default folder, offline, and autocompletion UI's in a
notebook.
* e-shell-config-autocompletion.[ch]: Basically copy over and
shell-ize the addressbook autocompletion config control so it can
be embedded more easily with the other folder settings.
svn path=/trunk/; revision=17000
* e-shortcuts-view.c (rename_group_cb): Set the view type from the
original group, thus preserving the small-icon/large-icon state.
Fixes#6732.
svn path=/trunk/; revision=16991
* main.c (show_development_warning): Add a toggle to avoid
displaying the dialog again. Don't display the dialog at all if
the /Shell/skip_warning_dialog_1_1 bonobo-conf key is set to
FALSE.
(warning_dialog_clicked_callback): Set
/Shell/skip_warning_dialog_1_1 according to the state of the check
button.
svn path=/trunk/; revision=16986
* e-shell.c (impl_Shell_selectUserFolder): No more @default_type
arg to e_shell_folder_selection_dialog_new().
* e-shell-view-menu.c (command_goto_folder): No more @default_type
arg to e_shell_folder_selection_dialog_new().
(command_new_shortcut): Likewise.
* e-shell-importer.c (import_druid_finish): No more @default_type
arg to e_shell_folder_selection_dialog_new().
* e-shell-folder-commands.c (e_shell_command_move_folder): No more
@default_type arg to e_shell_folder_selection_dialog_new().
(e_shell_command_copy_folder): Likewise.
* e-shell-folder-selection-dialog.c: Removed default_type member
in EShellFolderSelectionDialogPrivate.
(e_shell_folder_selection_dialog_new): Removed @default_type arg.
(e_shell_folder_selection_dialog_construct): Likewise.
(impl_clicked): Just pass the first of the allowed types to
e_shell_show_folder_creation_dialog() for the default type.
* evolution-shell-client.c (user_select_folder): No more
@default_type arg to the ::userSelectFolder CORBA method.
* Evolution-Shell.idl (selectUserFolder): Remove arg
@default_type.
svn path=/trunk/; revision=16983
* main.c (view_map_callback): New callback for when the first
created view in the shell gets mapped.
(new_view_created_callback): New callback for when the first view
of the shell gets created.
(show_development_warning): New function to display a warning
about the fact that Evolution is unstable.
(idle_cb): Call show_development_warning() here unless the
EVOLVE_ME_HARDER environment variable is set.
* e-shell.c (class_init): Add the "new_view_created" signal here.
(create_view): Emit the signal here.
* e-shell.h: New signal "new_view_created".
svn path=/trunk/; revision=16977
* e-shell-user-creatable-items-handler.c: New member
default_menu_item in EShellUserCreatableItemsHandlerPrivate.
(ensure_menu_items): Set ->default_menu_item.
(get_default_action_for_view): When no default item is specified,
just return ->default_menu_item.
svn path=/trunk/; revision=16976
* e-shell.c (e_shell_prepare_for_quit): Only refuse quitting if
the result is CANCEL. This way we allow quitting if one of the
components has crashed or something else otherwise goes wrong.
Fixes#25093.
* evolution-shell-component-client.c
(result_from_async_corba_result): Handle
GNOME_Evolution_ShellComponentListener_CANCEL.
svn path=/trunk/; revision=16974
2002-05-21 Christopher James Lahey <clahey@ximian.com>
* e-corba-storage.c (async_open_folder_idle): Do async_open_folder
in an idle callback.
* e-shell-shared-folder-picker-dialog.c (user_clicked),
glade/e-shell-shared-folder-picker-dialog.glade: Added a select
names button here.
svn path=/trunk/; revision=16964
2002-05-20 Chris Toshok <toshok@ximian.com>
* evolution-folder-selector-button.c (clicked): set the parent
window insensitive before popping up the dialog and sensitive
after it's popped down, to give us semi-modal behavior. Also,
emit a "popped_up" signal when popping up the dialog, and emit
"canceled" when the return folder is NULL (when the user canceled
the dialog).
(class_init): fix typo (?) - parent type isn't
bonobo_object_get_type(), it's PARENT_TYPE. Also, initialize the
POPPED_UP and CANCELED signals.
* evolution-folder-selector-button.h (struct
_EvolutionFolderSelectorButtonClass): add popped_up and canceled
signals.
svn path=/trunk/; revision=16959
* e-corba-storage.c (impl_StorageListener_notifyFolderCreated):
Set the can_sync_offline property on the EFolder based on the
canSyncOffline value on the CORBA folder.
* evolution-test-component.c (setup_custom_storage): Pass FALSE
for @sync_offline to evolution_storage_new_folder().
* e-local-storage.c (new_folder): Pass FALSE for @sync_offline to
evolution_storage_new_folder().
* evolution-storage.h (evolution_storage_new_folder): New arg
@can_sync_offline.
* subscribe-dialog.c (recursive_add_folder): Pass TRUE for
@sync_offline to evolution_storage_new_folder().
* mail-folder-cache.c (real_flush_updates): Pass TRUE for
@sync_offline to evolution_storage_new_folder().
* gui/component/addressbook-storage.c (load_source_data): Pass
FALSE for @sync_offline to evolution_storage_new_folder().
(addressbook_storage_add_source): Pass FALSE for @sync_offline to
evolution_storage_new_folder().
svn path=/trunk/; revision=16947
* 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
* e-shell-config-offline.c
(e_shell_config_offline_create_control): Pass NULL for
@has_checkbox_func and @has_checkbox_func_data.
* evolution-storage-set-view.c
(impl_StorageSetView__set_showCheckboxes): Pass NULL for
@has_checkbox_func and @has_checkbox_func_data.
* e-storage-set-view.c: New member has_checkbox_func and
has_checkbox_func_data in EStorageSetViewPrivate.
(init): Init to NULL.
(e_storage_set_view_set_show_checkboxes): New args
@has_checkbox_func and @func_data.
(has_checkbox): Always return FALSE for the toplevels. For the
other ones return TRUE unless ->has_checkbox_func is not-NULL; in
which case, we use that function to determine whether the folder
is actually checkable.
* Evolution-ShellComponent.idl (requestQuit): Remove exception.
svn path=/trunk/; revision=16945
* e-shell.c (view_delete_event_cb): Ask e_shell_prepare_for_quit()
before destroying the view if it's the last one.
* e-shell-view-menu.c (command_close): Synthesize a delete_event
on the view instead of directly destroying it.
svn path=/trunk/; revision=16931
* e-shell-offline-handler.c
(e_shell_offline_handler_put_components_offline): Call
e_shell_offline_sync_all_folders() if no connection is reported
here.
(dialog_handle_ok): Sync all the folders here through
e_shell_offline_sync_all_folders().
* e-shell-offline-sync.c: New.
* e-shell-offline-sync.h: New.
* Evolution-Offline.idl (syncFolder): Make oneway.
(cancelSyncFolder): Likewise.
(SyncFolderProgressListener::reportSuccess): New method.
svn path=/trunk/; revision=16792
2002-05-14 Christopher James Lahey <clahey@ximian.com>
* Makefile.am: Added check-empty.xpm, check-filled.xpm, and
check-missing.xpm.
* check-empty.xpm, check-filled.xpm, check-missing.xpm: New xpms.
Copied from gal. check-missing.xpm is simply a transparent xpm of
the correct size.
* e-storage-set-view.c (etree_value_at): When getting, check if
the path doesn't have a check box and return 2 in that case.
(etree_set_value_at): Check if the path doesn't have a check box
and don't change it in that case. Also, just invert the value
here instead of paying attention to the set value passed in.
(class_init): Initialize the checks GdkPixbufs.
(e_storage_set_view_construct): Create the "optional_checkbox"
cell.
* e-storage-set-view.etspec: Changed the cell for the checkbox
column to "optional_checkbox".
svn path=/trunk/; revision=16791
2002-05-14 Christopher James Lahey <clahey@ximian.com>
* evolution-storage.c (evolution_storage_new_folder): Compute the
evolutionUri here and pass it in.
svn path=/trunk/; revision=16782
* e-shell-config-offline.c
(init_storage_set_view_status_from_config): Add a missing
CORBA_free in the case in which the typecode of the
/OfflineFolders/Paths key in the ConfigDatabase doesn't match the
expected type.
svn path=/trunk/; revision=16780
* e-shell.c (e_shell_go_offline): Pass self to
e_shell_offline_handler_new() instead of the component registry.
* e-shell-offline-handler.c: Replace member `component_registry'
in EShellOfflineHandlerPrivate with a `shell' member. Updated all
the code to retrieve the component registry from the shell instead
of directly.
(e_shell_offline_handler_construct): Get a @shell instead of a
@component_registry.
svn path=/trunk/; revision=16779
2002-05-13 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (e_storage_set_view_get_checkboxes_list):
Changed this to just walk the hash table to get the list of
checked checkboxes instead of walking the tree. (Makes it so that
checked paths will remain checked, even if they're not shown in
the tree when the list is gotten.)
svn path=/trunk/; revision=16778
2002-05-13 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (etree_set_value_at): Added a signal when
the value of the checkboxes changes.
svn path=/trunk/; revision=16776
* e-shell-shared-folder-picker-dialog.c: Add members `parent' and
`shell' in DiscoveryData.
(shell_view_destroy_callback): Callback for destruction of
->parent; set ->parent to NULL.
(shell_destroy_callback): Callback for the desctruction of the
shell; clean up everything.
(discover_folder): Initialize ->parent and shell, and add the
corresponding destruction handlers.
(shared_folder_discovery_listener_callback): Open the discovered
folder.
(setup_progress_dialog): Renamed from `show_progress_dialog'. Set
up a timeout for displaying the dialog instead of displaying it
right away.
(progress_dialog_show_timeout_callback): Callback for showing the
dialog after the callback.
svn path=/trunk/; revision=16754
* e-shell-shared-folder-picker-dialog.c
(shared_folder_discovery_listener_callback): Updated for
FolderResult instead of DiscoverSharedFolderResult.
* Evolution-Storage.idl: Remove struct DiscoverSharedFolderResult;
we want to just use FolderResult for asyncDiscoverSharedFolder.
svn path=/trunk/; revision=16751
* evolution-test-component.c: Added some tests for the custom
storage.
* evolution-storage.c: New signal DISCOVER_SHARED_FOLDER.
(impl_Storage_asyncXferFolder): Renamed from
impl_Storage_async_xfer_folder.
(impl_Storage_asyncRemoveFolder): Renamed from
impl_Storage_async_remove_folder.
(impl_Storage_asyncCreateFolder): Renamed from
impl_Storage_async_create_folder.
(impl_Storage_asyncOpenFolder): Renamed from
impl_storage_async_open_folder.
(impl_Storage_addListener): Renamed from
impl_Storage_add_listener.
(impl_Storage_removeListener): Renamed from
impl_Storage_remove_listener.
(impl_Storage_asyncDiscoverSharedFolder): New, implementation for
::asyncDiscoverSharedFolder.
(evolution_storage_get_epv): Install the CORBA method here.
(class_init): Set up the "discover_shared_folder" signal here.
(e_marshal_NONE__POINTER_POINTER): Yet Another Marshaller. Die
die die.
* Evolution-Storage.idl (Storage::asyncDiscoverSharedFolder): New
method.
(StorageListener::notifySharedFolderDiscovered): New method.
* e-shell-view-menu.c (command_open_other_users_folder): New,
implementation for the FileOpenOtherUsersFolder verb.
* Makefile.am: Generate stubs and skels for
Evolution::Addressbook::SelectNames as well.
* glade/e-shell-shared-folder-picker-dialog.glade: New.
svn path=/trunk/; revision=16746
* e-local-storage.c (construct): Pass %FALSE as
@has_shared_folders to evolution_storage_new().
* evolution-storage.c: New member has_shared_folders in
EvolutionStoragePrivate.
(init): Initialize to FALSE.
(evolution_storage_new): New arg @has_shared_folders.
(evolution_storage_construct): Likewise.
(impl_Storage__get_folderList): Renamed from
impl_Storage__get_folder_list.
(impl_Storage__get_hasSharedFolders): New, implementation for
::hasSharedFolders.
(evolution_storage_get_epv): Install the CORBA method
implementation.
* Evolution-Storage.idl: Make Storage::name a readonly attribute. New attribute Storage::
* component-factory.c (add_storage): Pass %FALSE as
@has_shared_folders to evolution_storage_new().
* gui/component/addressbook-storage.c
(addressbook_get_other_contact_storage): Pass %FALSE as
@has_shared_folders to evolution_storage_new().
svn path=/trunk/; revision=16733
* Evolution-Offline.idl: Rename NotPrepared to notPrepared and
NotSyncing to notSyncing.
* evolution-storage.c (impl_Storage__get_folder_list): Renamed
from impl_Storage_get_folder_list().
* Evolution-Storage.idl: Don't typedef FolderList here. Replace
`getFolderList' method with a readonly attribute.
* gui/e-itip-control.c (get_servers): use
GNOME_Evolution_Storage__get_folderList instead of
GNOME_Evolution_Storage_getFolderList since I have now changed
that to be an attribute instead of a method.
svn path=/trunk/; revision=16732
* evolution-test-component.c (create_new_folder_selector): Use the
new evolution_shell_client_create_storage_set_view() call.
* evolution-shell-client.c
(evolution_shell_client_create_storage_set_view): New.
svn path=/trunk/; revision=16707
* evolution-storage-set-view-factory.c
(evolution_storage_set_view_factory_new_view): Put the
EStorageSetView in an EScrollFrame.
* e-shell.c (impl_Shell_createStorageSetView):
CORBA_Object_duplicate the object before returning.
* evolution-test-component.c
(create_new_folder_selector): New function to create a simple test
environment for the new checkbox-enabled StorageSetView.
(register_component): Add user-creatable type FolderSelector.
(user_create_new_item_callback): Handle FolderSelector.
(dialog_clicked_callback): Print out the checked items in the
folder selector.
(main): Print out a message before going into bonobo_main().
* evolution-storage-set-view.c
(impl_StorageSetView__get_showFolders): Renamed from
impl_StorageSetView__get_show_folders.
(impl_StorageSetView__set_showFolders): Renamed from
impl_StorageSetView__set_show_folders.
(impl_StorageSetView__set_showCheckboxes): New, write the
showCheckboxes CORBA attribute.
(impl_StorageSetView__get_showCheckboxes): New, read the
showCheckboxes CORBA attribute.
(impl_StorageSetView__get_checkedFolders): New, read the
checkedFolders CORBA attribute.
(corba_class_init): Install the new CORBA methods methods.
* e-storage-set-view.c (essv_add_to_list): strdup() the path.
(e_storage_set_view_get_storage_set): New.
* e-folder.c (e_folder_to_corba): New.
* Evolution-StorageSetView.idl: Add showCheckboxes and
checkedFolders attributes.
* Evolution-common.idl: Add typedef for FolderList.
svn path=/trunk/; revision=16704
2002-05-03 Christopher James Lahey <clahey@ximian.com>
* e-folder-list.c: Use bonobo_object_client_(un)?ref instead of
gtk_object_(un)?ref.
(add_clicked): Don't pass NULL to
evolution_shell_client_user_select_folder.
* glade/Makefile.am: Added e-folder-list.glade
* glade/e-folder-list.glade: The glade file for e-folder-list.
svn path=/trunk/; revision=16678
2002-05-03 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (eshellinclude_HEADERS): Added e-folder-list.h.
(libeshell_la_SOURCES): Added e-folder-list.c.
* e-folder-list.c, e-folder-list.h: New widget for editing a list
of folder uris.
svn path=/trunk/; revision=16677
2002-04-29 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (e_storage_set_view_set_checkboxes_list,
e_storage_set_view_get_checkboxes_list): Added these functions.
Implemented checkboxes in the ETreeModel here.
svn path=/trunk/; revision=16637