* e-shell.c (setup_local_storage): Set the is_stock flag to TRUE
for the summary folder.
* e-shell-view.c (setup_verb_sensitivity_for_folder): Don't allow
folder operations on pseudo-folders that have a NULL physical_uri.
* e-corba-storage.c (async_remove_folder): Make sure the folder
has a physical URI. [#30950]
* e-shell-shared-folder-picker-dialog.c
(setup_server_option_menu): Use
e_utf8_gtk_menu_item_new_with_label() to create the option menu
items from the storage's UTF-8 name. [#31564]
svn path=/trunk/; revision=18419
* e-corba-storage.c (cancel_discover_shared_folder): New,
implementation for the cancel_discover_shared_folder virtual
method.
(class_init): Install.
* evolution-test-component.c
(storage_discover_shared_folder_callback): Instead of passing the
listener to the timeout function, just pass the storage. Put the
listener and the timeout ID on the storage object by using
gtk_object_set_data().
(shared_folder_discovery_timeout_callback): Updated accordingly.
(storage_cancel_discover_shared_folder_callback): New, callback
for the cancel_discover_shared_folder signal.
(setup_custom_storage): Connect.
* e-shell-shared-folder-picker-dialog.c: New member storage in
struct DiscoveryData. While I am at it, rename member user to
user_email_address.
(discover_folder): Set the storage member.
(cleanup_discovery): Unref storage member.
(progress_dialog_clicked_callback): New, callback for the
"clicked" signal on the dialog.
(discover_folder): Connect.
* evolution-storage.c (class_init): Install signal
"cancel_discover_shared_folder".
(impl_Storage_cancelDiscoverSharedFolder): New, implementation for
the cancelDiscoverSharedFolder CORBA method; emit
"cancel_discover_shared_folder".
(evolution_storage_get_epv): Install CORBA method implementation.
* evolution-storage.h: Add signal cancel_discover_shared_folder.
* e-storage.c (e_storage_cancel_discover_shared_folder): New.
* e-storage.h: New virtual method cancel_discover_shared_folder.
* Evolution-Storage.idl (cancelDiscoverSharedFolder): New.
svn path=/trunk/; revision=18386
* e-shell-importer.c (choose_importer_from_list): Change the
selection mode to GTK_SELECTION_BROWSE so there is always a
selection. The code here doesn't handle a NULL selection.
[#31690]
* e-shell-importer.c (import_cb): Only delay half a second
(instead of 5 seconds) when getting EVOLUTION_IMPORTER_NOT_READY
or EVOLUTION_IMPORTER_BUSY.
* importer/evolution-importer-listener.c
(impl_GNOME_Evolution_ImporterListener_notifyResult): Removed
debugging message.
svn path=/trunk/; revision=18332
2002-10-04 Chris Toshok <toshok@ximian.com>
* e-shell-folder-selection-dialog.c (delete_event_cb): new
function, emit cancelled so the folder selector button will
sensitize the parent window again.
(e_shell_folder_selection_dialog_construct): connect the
delete_event signal.
svn path=/trunk/; revision=18327
* e-shell-view-menu.c (command_remove_other_users_folder): Calls
e_shell_command_remove_shared_folder.
(file_verbs): Set up command_remove_other_users_folder.
* e-shell-folder-commands.c
(e_shell_command_remove_shared_folder): New. Calls
e_storage_set_async_remove_shared_folder with a callback to pop up
an error dialog if it fails.
* e-storage-set.c (e_storage_set_async_remove_shared_folder):
Implement. Mostly like async_remove_folder.
* e-storage.c (e_storage_supports_shared_folders,
e_storage_async_discover_shared_folder,
e_storage_async_remove_shared_folder): New methods. Default
implementations return FALSE, NOTIMPLEMENTED, and NOTIMPLEMENTED.
* e-corba-storage.c (supports_shared_folders,
async_discover_shared_folder, async_remove_shared_folder):
Implement using CORBA.
* Evolution-Storage.idl: add Storage_asyncRemoveSharedFolder
* e-shell-shared-folder-picker-dialog.c: Remove all the CORBA
stuff from here and use the new EStorage methods.
(setup_server_option_menu): Use e_storage_supports_shared_folders.
(discover_folder): Use e_storage_async_discover_shared_folder.
* evolution-storage.c (impl_Storage_asyncRemoveSharedFolder):
Implement this by emitting a REMOVE_SHARED_FOLDER signal.
(impl_Storage_asyncDiscoverSharedFolder): Make the
DISCOVER_SHARED_FOLDER signal put the Bonobo_Listener first like
all the other signals do.
(class_init): Set up REMOVE_SHARED_FOLDER signal.
svn path=/trunk/; revision=18265
* evolution-folder-selector-button.c (clicked): If we return from
evolution_shell_client_user_select_folder to find that our parent
window has been destroyed, unref it and bail out, since that means
we've been destroyed (and probably finalized) too. #31360
svn path=/trunk/; revision=18264
2002-09-25 Rodrigo Moya <rodrigo@ximian.com>
* e-shell-importer.c (importer_file_page_new): set history_id on
GnomeFileEntry, to actually get the history.
svn path=/trunk/; revision=18233
* e-shell-folder-selection-dialog.c (check_folder_type_valid):
If one of the allowed types is "type/*", allow anything starting
with "type/".
(impl_clicked): If the first allowed type is "type/*", pass "type"
to e_shell_show_folder_creation_dialog.
* evolution-folder-selector-button.c
(evolution_folder_selector_button_set_uri): Handle "type/*" as an
allowed type.
* e-shell-settings-dialog.c (e_shell_settings_dialog_show_type):
If there are no pages for the current folder type, try the parent
type (eg, "mail" for "mail/public").
* e-shell-config-autocompletion.c
(e_shell_config_autocompletion_create_widget): Use "contacts/*" as
the allowed folder type.
svn path=/trunk/; revision=18220
* e-shell-folder-commands.c (xfer_result_callback): Don't update
the shortcuts here anymore since now the shell takes care of it.
* e-shell.c (storage_set_moved_folder_callback): New callback for
EStorageSetView::folder_moved; update the shortcuts.
(e_shell_construct): Connect.
* e-storage-set.c: Renamed StorageConverterCallbackData to
StorageCallbackData. New members destination_folder,
source_folder, operation in it.
(class_init): Install "moved_folder" signal.
(storage_callback_data_new): Renamed from
storage_converter_callback_data_new.
(storage_callback_data_free): New.
(storage_callback): Renamed from storage_callback_converter. Use
storage_callback_data_free().
(e_storage_set_async_create_folder): Updated to use the
storage_callback and storage_callback_data_new().
(e_storage_set_async_remove_folder): Likewise.
(e_storage_set_async_xfer_folder): Likewise.
* e-storage-set.h: New signal "moved_folder".
svn path=/trunk/; revision=18216
* e-shell.c (folder_selection_dialog_folder_selected_cb): Don't
destroy the dialog. It does that itself whenever it emits
folder_selected.
* e-shell-folder-selection-dialog.c (double_click_cb): Don't close
the dialog if the user double-clicks a bad folder. Just ignore it
(like we do when they click OK on a bad folder).
svn path=/trunk/; revision=18205
2002-09-24 Mike Kestner <mkestner@ximian.com>
* e-storage-set-view.c (e_storage_set_enable_search): use the new
e_tree_set_search_column function instead of my lameass sort hack.
svn path=/trunk/; revision=18194
* e-shell-view-menu.c (command_close): Use
e_shell_request_close_view().
* e-shell.c (e_shell_request_close_view): New, code moved out of
view_delete_event_cb().
(view_delete_event_cb): Use it.
svn path=/trunk/; revision=18183
brokenness]
(set_dialog_size): New.
(impl_realize): Override for GtkWidget::realize; invoke
set_dialog_size() to set a minimum size.
(class_init): Install.
svn path=/trunk/; revision=18126
(resort): New.
(sort_idle_callback): Use it.
(insert_storages): Use resort() instead of queue_resort() so we
sort immediately.
svn path=/trunk/; revision=18116
2002-09-18 Not Zed <NotZed@Ximian.com>
* evolution-wizard.c (impl_GNOME_Evolution_Wizard_notifyAction):
Allow 'back' to run if we're on the finish page. For #29293.
svn path=/trunk/; revision=18106
* e-storage-set-view.c: New member sort_idle_id in
EStorageSetViewPrivate.
(init): Init to zero.
(impl_destroy): Remove the idle source if not zero.
(queue_resort): New.
(sort_idle_callback): Idle function to sort.
(setup_folder_changed_callback): New.
(new_folder_cb): Call it on the new folder so we get the callback
for new folders too.
(popup_folder_menu): Ref the folder before popping up the menu,
unref it after popping it down [the folder might be unreffed in
gnome_popup_menu_do_popup_modal() because of a folder action].
(new_storage_cb): Just queue_resort() instead of sorting.
(new_folder_cb): Likewise.
(insert_folders): Likewise.
(insert_storages): Likewise.
(folder_changed_cb): Queue a resort here too.
* e-folder.c (class_init): Set up "name_changed" signal.
(e_folder_set_name): Emit "name_changed".
* e-folder.h: New signal "name_changed".
svn path=/trunk/; revision=18093
2002-09-17 Kjartan Maraas <kmaraas@gnome.org>
* e-folder-list.c (create_display_string): Mark a string for
translation.
svn path=/trunk/; revision=18086
2002-09-05 Mike Kestner <mkestner@ximian.com>
* Makefile.am : no longer distribute the etstate files.
* e-shell-folder-selection-dialog.c : enable_search on the view.
* e-storage-set-view.c : add search_enabled flag handling.
(e_storage_set_view_set_show_checkboxes): manipulate the existing state
instead of loading a state file from disk.
(e_storage_set_view_enable_search): new. set a column in the sort_info
on the etree to allow keystroke jumping in the etree.
svn path=/trunk/; revision=18002
2002-09-05 Anna Marie Dirks <anna@ximian.com>
* GNOME_Evolution_Shell.oaf.in : Changed the description
of the folders page in the settings dialog to be more specific.
svn path=/trunk/; revision=17991
current_folder_type is NULL, just return NULL instead of passing
it to e_folder_type_registry_get_handler_for_type() [and generate
a warning]. [#21122]
svn path=/trunk/; revision=17974
* glade/e-shell-shared-folder-picker-dialog.glade: Remove the
"blah blah" text for now and change "Server" to "Account".
svn path=/trunk/; revision=17973
* e-shell.c (create_view): Pass TRUE as @queue to
e_shell_view_display_uri().
* e-shell-view-menu.c (command_activate_view): Pass TRUE as @queue
to e_shell_view_display_uri().
(goto_folder_dialog_folder_selected_cb): Likewise.
* e-shell-shared-folder-picker-dialog.c
(shared_folder_discovery_listener_callback): Pass TRUE as @queue
to e_shell_view_display_uri().
* e-shell-view.c
(display_uri): New arg @queue. If true, it allows the
delayed_selection mechanism to happen transparently (returning
TRUE, while before it used to return FALSE). Otherwise, refuse to
queue the URI and return FALSE.
(e_shell_view_display_uri): New arg @queue; pass it to
display_uri().
(handle_current_folder_removed): Pass TRUE as @queue to
e_shell_view_display_uri().
(set_folder_timeout): Likewise.
(switch_on_folder_tree_click): Likewise.
(activate_shortcut_cb): Likewise.
(corba_interface_change_current_view_cb): Likewise.
(socket_destroy_cb): Likewise.
(socket_destroy_cb): Likewise.
(e_shell_view_load_settings): Here, try displaying the old URI
with @queue set to FALSE; if this fails, display the default URI
and then invoke display again using @queue = TRUE so it gets
queued up. This should fix#27721.
svn path=/trunk/; revision=17972
* main.c (idle_cb): Pass FALSE as @restore_all_views to
e_shell_restore_from_settings() so we only restore the first view.
* e-shell.c (e_shell_restore_from_settings): New arg
@restore_all_views.
svn path=/trunk/; revision=17967
* gui/component/addressbook-component.c (create_component): Pass
NULL as @unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* gui/component-factory.c (create_object): Pass NULL as
@unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* mail-account-gui.c (mail_account_gui_save): Remove unused
variable.
* component-factory.c (unpopulate_folder_context_menu): New.
(create_component): Pass it to evolution_shell_component_new().
* component-factory.c (create_component): Pass NULL as
@unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* e-storage-set-view.c (popup_folder_menu): Remove the context
menu items using
evolution_shell_component_client_unpopulate_folder_context_menu()
instead of doing it ourself, since BonoboUI sucks.
* evolution-shell-component-client.c
(evolution_shell_component_client_unpopulate_folder_context_menu):
New.
* evolution-test-component.c (register_component): Pass NULL as
@unpopulate_folder_context_menu_fn to
evolution_shell_component_new().
* evolution-shell-component.c: New member
unpopulate_folder_context_menu_fn in
EvolutionShellComponentPrivate. New member uic in
EvolutionShellComponentPrivate.
(init): Init new members to NULL.
(destroy): bonobo_object_unref() priv->uic if not NULL.
(evolution_shell_component_new): New arg
@unpopulate_folder_context_menu_fn.
(evolution_shell_component_construct): Likewise.
(impl_populateFolderContextMenu): Set priv->uic to the newly
created UIComponent.
(impl_unpopulateFolderContextMenu): New, implementation for the
::unpopulateFolderContextMenu CORBA method.
(class_init): Install.
* Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New
method.
(AlreadyPopulated): New exception.
(populateFolderContextMenu): Can raise it.
(NotPopulated): New exception.
svn path=/trunk/; revision=17963
* e-storage-set-view.c (popup_folder_menu): Create an Items
placeholder under ComponentPlaceholder, and then
bonobo_ui_component_rm() it after we are done with the menu. This
-should- fix#29782, but it doesn't. I am not sure why.
* evolution-shell-component.h
(EVOLUTION_SHELL_COMPONENT_POPUP_PLACEHOLDER): Append a "/Items"
part.
svn path=/trunk/; revision=17952