Commit Graph

1201 Commits

Author SHA1 Message Date
d0782a45b1 Set the is_stock flag to TRUE for the summary folder.
* 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
2002-10-23 17:45:58 +00:00
58573777e8 (e_get_activation_failure_msg): If the exception_id is NULL,
return NULL instead of crashing.  [#25891]

svn path=/trunk/; revision=18397
2002-10-21 15:20:47 +00:00
d91364b056 New, implementation for the cancel_discover_shared_folder virtual method.
* 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
2002-10-17 20:47:06 +00:00
fdb774412d Change the selection mode to GTK_SELECTION_BROWSE so there is always a
* 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-07 16:19:18 +00:00
b48e07f7ca new function, emit cancelled so the folder selector button will sensitize
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
2002-10-04 21:00:27 +00:00
43dfa91e96 It's a grand old string-review! Nitpicky and minor changes; details in the appropriate ChangeLog files.
svn path=/trunk/; revision=18268
2002-09-30 20:11:15 +00:00
45fd176750 Calls e_shell_command_remove_shared_folder. (file_verbs): Set up
* 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
2002-09-30 18:41:05 +00:00
b887e5c2f6 If we return from evolution_shell_client_user_select_folder to find that
* 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-30 18:21:26 +00:00
849f3cac38 (load_folder): Always return TRUE, even in the
unknown-type case.

svn path=/trunk/; revision=18236
2002-09-26 18:17:23 +00:00
e04d2b2255 set history_id on GnomeFileEntry, to actually get the history.
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
2002-09-26 14:41:23 +00:00
82f2740249 If one of the allowed types is "type/*", allow anything starting with
* 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
2002-09-25 21:40:17 +00:00
6a5efeb0f9 [Finish fixing #11645.]
* 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
2002-09-25 18:06:29 +00:00
efa2ba8ab0 Placate compiler.
* e-shell-view-menu.c (launch_pilot_settings): Placate compiler.

* e-shell-folder-commands.c (xfer_result_callback): When
FOLDER_COMMAND_MOVE, update the shortcuts by using
e_shortcuts_update_shortcuts_for_changed_uri().

* e-shortcuts.c (e_shortcuts_update_shortcuts_for_changed_uri):
New.

svn path=/trunk/; revision=18206
2002-09-24 21:01:04 +00:00
ab7d63ce8e Don't destroy the dialog. It does that itself whenever it emits
* 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 20:05:20 +00:00
adf048e050 Add PilotConduitSettings verb. [#14019]
(command_pilot_conduit_settings): Implementation for the verb.
(launch_pilot_settings): Helper function.

svn path=/trunk/; revision=18201
2002-09-24 15:53:14 +00:00
87f9823068 use the new e_tree_set_search_column function instead of my lameass sort
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
2002-09-24 07:13:15 +00:00
ca308322e6 (e_shell_construct): Oops, no @shell argument to
e_shell_startup_wizard_create().

svn path=/trunk/; revision=18184
2002-09-23 21:48:00 +00:00
92ec933b19 Use e_shell_request_close_view().
* 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
2002-09-23 21:30:57 +00:00
b0b2ebe9c3 (get_type_from_parent_path):
Return "mail" instead of NULL when we don't have a parent folder.
[#28232]

svn path=/trunk/; revision=18179
2002-09-23 20:07:30 +00:00
621e8e3bfa Added some missing names.
* e-shell-about-box.c: Added some missing names.

* main.c (main): Declare --force-upgrade correctly so it works.

svn path=/trunk/; revision=18175
2002-09-23 19:16:46 +00:00
182f312858 Removed member sort_idle_id in
EStorageSetViewPrivate.
(resort): Removed.
(sort_traverse_callback): Removed.
(sort_idle_callback): Removed.
(queue_resort): Removed.
(impl_destroy): Removed.
(folder_name_changed_cb): Sort now instead of queueing a resort.

svn path=/trunk/; revision=18146
2002-09-20 20:42:20 +00:00
d4f22aebb0 [Fix #28495 with a lame hack that works around Bonobo sizing
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
2002-09-19 19:56:14 +00:00
ee6920fde5 (async_create_cb): Don't set
the current folder for E_STORAGE_EXISTS.  [#30533]

svn path=/trunk/; revision=18124
2002-09-19 19:24:30 +00:00
e5775b9f55 (evolution_storage_update_folder): Do not
stop propagating the notification to the listeners if
::notifyFolderUpdate() fails.  [#27662 (?)]

svn path=/trunk/; revision=18117
2002-09-19 17:10:21 +00:00
5f467a8f64 (resort): New. (sort_idle_callback): Use it. (insert_storages): Use
(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-19 17:03:09 +00:00
fb51bbedb0 bandaid for 30248.
2002-09-18  Mike Kestner  <mkestner@ximian.com>

	* e-storage-set-view.c (etree_value_at): bandaid for 30248.

svn path=/trunk/; revision=18115
2002-09-19 16:36:18 +00:00
8b0060a215 Allow 'back' to run if we're on the finish page. For #29293.
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
2002-09-19 01:37:46 +00:00
b8560907ad updated .cvsignore
svn path=/trunk/; revision=18104
2002-09-19 00:09:21 +00:00
79c77a6559 Add description for E_STORAGE_NOTONLINE.
* e-storage.c (e_storage_result_to_string): Add description for
E_STORAGE_NOTONLINE.

* e-corba-storage.c
(e_corba_storage_corba_result_to_storage_result): Support
GNOME_Evolution_Storage_NOT_ONLINE (E_STORAGE_NOTONLINE).

* Evolution-Storage.idl: Add NOT_ONLINE to enum Result.

* e-storage.h: Add E_STORAGE_NOTONLINE to EStorageResult enum.

svn path=/trunk/; revision=18097
2002-09-17 20:52:02 +00:00
266cd02466 Remove unused variable.
* e-storage-set-view.c (sort_idle_callback): Remove unused
variable.

* e-shell-view.c (shell_line_status_changed_cb): Make Send/Receive
insensitive when in offline mode.  [#27855]

svn path=/trunk/; revision=18096
2002-09-17 20:42:36 +00:00
e774bd7f2d [Fix #28451.]
* 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 19:27:04 +00:00
bae24dcd13 Invoke gettext on strings coming from the .oaf files.
2002-09-17  Kjartan Maraas  <kmaraas@gnome.org>

	* e-shell-settings-dialog.c (page_new): Invoke gettext on
	strings coming from the .oaf files.

svn path=/trunk/; revision=18092
2002-09-17 19:25:32 +00:00
3d1b5c1a2e Remove some leftover junk.
svn path=/trunk/; revision=18088
2002-09-17 16:45:36 +00:00
b893058f41 Mark a string for translation.
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-17 16:33:46 +00:00
c395aaafd6 (e_storage_removed_folder): When a highlighted
folder gets removed, update the parent to not have a highlight.
[#24062]

svn path=/trunk/; revision=18085
2002-09-17 16:23:45 +00:00
aa526a8c07 New script to run Evolution under a
non-GNOME session when using a non-default GNOME prefix and a
non-default Evolution prefix.

svn path=/trunk/; revision=18082
2002-09-16 21:01:17 +00:00
fd5752f425 (setup_bonobo_conf_private_directory): g_free() not
free(), since we allocate with glib functions.  [#19899]

svn path=/trunk/; revision=18047
2002-09-11 20:45:10 +00:00
6f4d80d825 no longer distribute the etstate files. enable_search on the view. add
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-06 14:51:37 +00:00
2bd6772c82 Changed the description of the folders page in the settings dialog to be
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
2002-09-05 18:54:01 +00:00
0857bf4b47 Add a -DPREFIX.
* Makefile.am (INCLUDES): Add a -DPREFIX.

* main.c (main): New command-line option "force-upgrade".
(show_development_warning): Suggest 1.0.8, not 1.0.5.
(upgrade_from_1_0_if_needed): New.
(idle_cb): Call it.

svn path=/trunk/; revision=17982
2002-09-04 22:39:30 +00:00
a6939cf10d Return FALSE here. (get_base_url): Add a cast.
* upgrade-mailer.c (upgrade): Return FALSE here.
(get_base_url): Add a cast.

* component-factory.c (storage_xfer_folder): Removed unused
variables.

* Makefile.am: Rename upgrade-mailer to evolution-mail-upgrade.

svn path=/trunk/; revision=17981
2002-09-04 22:39:24 +00:00
2dd03125d5 (new_folder_cb): Pass FALSE as @queue to
e_shell_view_display_uri() here.

svn path=/trunk/; revision=17977
2002-09-04 20:37:57 +00:00
d44e32c675 (e_shell_view_get_current_component_id): If the
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
2002-09-04 19:53:38 +00:00
ef964d6f94 Remove the "blah blah" text for now and change "Server" to "Account".
* 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
2002-09-04 19:47:47 +00:00
ee467a65b1 Pass TRUE as @queue to e_shell_view_display_uri().
* 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
2002-09-04 19:33:15 +00:00
6b346389dc Pass FALSE as @restore_all_views to e_shell_restore_from_settings() so we
* 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
2002-09-04 18:36:21 +00:00
ddaa0af2ce Pass NULL as @unpopulate_folder_context_menu_fn to
* 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
2002-09-04 16:05:35 +00:00
9859a941bc Ooops. I committed the wrong version of the file.
svn path=/trunk/; revision=17953
2002-09-03 20:30:05 +00:00
2c29a42ba0 Create an Items placeholder under ComponentPlaceholder, and then
* 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
2002-09-03 20:28:29 +00:00
6e93c76b30 Argh, didn't mean to commit this.
svn path=/trunk/; revision=17946
2002-09-03 16:00:04 +00:00