Commit Graph

1079 Commits

Author SHA1 Message Date
e7ad5d121b Only refuse quitting if the result is CANCEL. This way we allow quitting
* 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-22 16:12:00 +00:00
ce193f6586 Do async_open_folder in an idle callback.
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-21 06:30:38 +00:00
0906183411 set the parent window insensitive before popping up the dialog and
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
2002-05-20 21:59:27 +00:00
dfbf40c628 Skip the folder if it doesn't have the can_sync_offline property set.
* e-shell-offline-sync.c (sync_folder): Skip the folder if it
doesn't have the can_sync_offline property set.

svn path=/trunk/; revision=16948
2002-05-20 19:08:26 +00:00
13c9d214fa Set the can_sync_offline property on the EFolder based on the
* 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
2002-05-20 19:06:03 +00:00
3682e0ef1f 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
2002-05-20 18:38:10 +00:00
97d578613b Pass NULL for @has_checkbox_func and @has_checkbox_func_data.
* 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
2002-05-20 18:05:55 +00:00
aad3ac6ddd Ask e_shell_prepare_for_quit() before destroying the view if it's the last
* 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
2002-05-16 14:54:55 +00:00
3d386b57d1 Check with e_shell_prepare_for_quit() before quitting.
* e-shell-view-menu.c (command_quit): Check with
e_shell_prepare_for_quit() before quitting.

* e-shell.c (e_shell_prepare_for_quit): New.

* evolution-test-component.c (request_quit_fn): New function
asking for confirmation to quit.

* evolution-shell-component.c (evolution_shell_component_new): New
arg @request_quit_fn.
(impl_requestQuit): New, implementation for
EvolutionShellComponent::requestQuit.
(evolution_shell_component_result_to_string): Handle
EVOLUTION_SHELL_COMPONENT_CANCEL.
(evolution_shell_component_client_request_quit): New.

* Evolution-ShellComponent.idl (requestQuit): New.

* component-factory.c (create_component): Pass NULL as
@request_quit_fn.

* component-factory.c (create_component): Pass NULL as
@request_quit_fn.

* gui/component-factory.c (create_object): Pass NULL as
@request_quit_fn.

* gui/component/addressbook-component.c (create_component): Pass
NULL as @request_quit_fn.

svn path=/trunk/; revision=16925
2002-05-15 21:41:51 +00:00
e0eb388a32 Add some comments to document the interface.
svn path=/trunk/; revision=16922
2002-05-15 18:35:48 +00:00
aaf8cf4876 Remove debugging spew
svn path=/trunk/; revision=16801
2002-05-15 14:21:54 +00:00
a59768d50d Committing Peter Williams patch so listeners are notified about new storages.
svn path=/trunk/; revision=16800
2002-05-15 13:34:31 +00:00
4c65eab5b1 Call e_shell_offline_sync_all_folders() if no connection is reported here.
* 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 21:34:59 +00:00
f8cc61843c Added check-empty.xpm, check-filled.xpm, and check-missing.xpm.
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 21:07:48 +00:00
8f66153101 Compute the evolutionUri here and pass it in.
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
2002-05-14 17:21:52 +00:00
e17f52c211 Add a missing CORBA_free in the case in which the typecode of the
* 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
2002-05-14 04:35:58 +00:00
48ef648a2e Pass self to e_shell_offline_handler_new() instead of the component
* 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-14 04:23:27 +00:00
17f6f9980a Changed this to just walk the hash table to get the list of checked
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-14 03:47:16 +00:00
b63eece6a3 Handle the e-shell-config-offline and e-shell-config-default-folders
* e-shell-config.c: Handle the e-shell-config-offline and
e-shell-config-default-folders pages.

* e-shell-config-offline.h: New.
* e-shell-config-offline.c: New.

* e-shell-config-default-folders.h: New.
* e-shell-config-default-folders.c: New.  Moved default folder
page configuration in from e-shell-config.c.

* GNOME_Evolution_Shell.oaf.in: Add
GNOME_Evolution_Shell_Config_OfflineFolders_Control.

svn path=/trunk/; revision=16777
2002-05-14 03:39:12 +00:00
4c725337a0 Added a signal when the value of the checkboxes changes.
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
2002-05-14 03:17:00 +00:00
6fe392b301 Add members parent' and shell' in DiscoveryData.
* 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
2002-05-10 19:03:56 +00:00
4e2ef7120a Add the Addressbook-SelectNames interface stuff.
svn path=/trunk/; revision=16752
2002-05-10 18:42:48 +00:00
b1cecd2f33 Updated for FolderResult instead of DiscoverSharedFolderResult.
* 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
2002-05-10 18:40:53 +00:00
ea8c94879c New. New.
* e-shell-shared-folder-picker-dialog.c: New.
* e-shell-shared-folder-picker-dialog.h: New.

svn path=/trunk/; revision=16748
2002-05-10 17:28:57 +00:00
c1b5780b8a Added some tests for the custom storage.
* 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
2002-05-10 16:54:23 +00:00
d325e6d453 Pass %FALSE as @has_shared_folders to evolution_storage_new().
* 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
2002-05-09 16:10:50 +00:00
8cdcac9e18 Rename NotPrepared to notPrepared and NotSyncing to notSyncing.
* 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
2002-05-09 15:44:03 +00:00
bee907db63 New interface SyncFolderProgressListener. (Offline::cancelSyncFolder):
* Evolution-Offline.idl: New interface SyncFolderProgressListener.
(Offline::cancelSyncFolder): New.
(Offline::syncFolder): New.

svn path=/trunk/; revision=16713
2002-05-07 20:49:34 +00:00
2017b2dcec add every folder to the sequence except the root folder
2002-05-07  JP Rosevear  <jpr@ximian.com>

	* evolution-storage.c (get_folder_list_foreach): add every folder
	to the sequence except the root folder
	(impl_Storage_get_folder_list): implement corba method
	(evolution_storage_get_epv): set new method implementation

	* evolution-folder-selector-button.h: fix signal prototype

	* e-folder-tree.h: new proto

	* e-folder-tree.c (e_folder_tree_get_count): count nodes
	(count_nodes): bump count foreach path

	* e-corba-storage-registry.c
	(impl_StorageRegistry_getStorageList): implement idl method
	(corba_class_init): set epv method

	* Evolution-Storage.idl: add getStorageList and getFolderList
	methods

svn path=/trunk/; revision=16708
2002-05-07 19:53:35 +00:00
03e2a84eda Use the new evolution_shell_client_create_storage_set_view() call.
* 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
2002-05-07 18:53:10 +00:00
ee4d8e5cb0 Put the EStorageSetView in an EScrollFrame.
* 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-07 16:57:45 +00:00
905a5cfca0 Use bonobo_object_client_(un)?ref instead of gtk_object_(un)?ref.
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 20:40:20 +00:00
85d3d3acd8 Added e-folder-list.h. (libeshell_la_SOURCES): Added e-folder-list.c.
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-05-03 18:46:18 +00:00
b096d8f5c3 Added these functions. Implemented checkboxes in the ETreeModel here.
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
2002-04-29 21:34:13 +00:00
562c2676e0 Minor label tweaks; changed "Default folders" to "Default Folders", and
2002-04-19  Anna Marie Dirks  <anna@ximian.com>

	* glade/e-shell-config-default-folders.glade: Minor label tweaks;
	changed "Default folders" to "Default Folders", and added accelerators.

svn path=/trunk/; revision=16535
2002-04-19 15:41:34 +00:00
bd6359c660 emit show_settings signal (corba_class_init): assign epv method
2002-04-18  JP Rosevear  <jpr@ximian.com>

	* evolution-shell-view.c (impl_ShellView_show_settings): emit
	show_settings signal
	(corba_class_init): assign epv method
	(class_init): add signal

	* evolution-shell-view.h: new signal

	* e-shell.c (init): init settings_dialog private member
	(settings_dialog_destroy_cb): reset dialog pointer
	(e_shell_show_settings): show the settings dialog, bring it to the
	front if one already exists for this shell

	* e-shell.h: new proto

	* e-shell-view.c (corba_interface_show_settings): implement
	showSettings method
	(setup_corba_interface): listen for show_settings signal
	(e_shell_view_show_settings): show the settings dialog

	* e-shell-view.h: new proto

	* e-shell-view-menu.c (command_settings): call
	e_shell_view_show_settings instead

	* Evolution-ShellView.idl: add showSettings method

svn path=/trunk/; revision=16510
2002-04-18 18:57:45 +00:00
a3f94ff6ad New, override for EShortcutBar::shortcut_drag_motion.
* e-shortcuts-view.c (impl_shortcut_drag_motion): New, override
for EShortcutBar::shortcut_drag_motion.
(impl_shortcut_drag_data_received): New, override for
EShortcutBar::shortcut_drag_data_received.
(class_init): Install the method overrides.

svn path=/trunk/; revision=16502
2002-04-18 02:19:27 +00:00
c2ee47d180 Bumped required gal version number to 0.19.99.11.
2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped required gal version number to 0.19.99.11.

From addressbook/ChangeLog:

2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names.c
	(e_select_names_create_categories): Changed this to use
	ECategoriesMasterListOptionMenu.

	* gui/component/select-names/e-select-names.c
	(section_right_click_cb),
	gui/widgets/e-addressbook-reflow-adapter.c,
	gui/widgets/e-addressbook-view.c: Updated these to match the new
	EPopupMenu.

From calendar/ChangeLog:

2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* gui/e-calendar-table.c, gui/e-day-view.c, gui/e-week-view.c,
	gui/dialogs/meeting-page.c: Updated these to match the new
	EPopupMenu.

From mail/ChangeLog:

2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* folder-browser.c, mail-display.c: Updated these to match the new
	EPopupMenu.

From shell/ChangeLog:

2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* e-activity-handler.c: Updated this to match the new EPopupMenu.

svn path=/trunk/; revision=16498
2002-04-17 22:29:56 +00:00
ea772d632d Removed. (impl_tree_drag_motion): Rewritten to use
* e-storage-set-view.c (handle_evolution_path_drag_motion):
Removed.
(impl_tree_drag_motion): Rewritten to use
`e_folder_dnd_bridge_motion()'.
(impl_tree_drag_data_received): Rewritten to use
`e_folder_dnd_bridge_data_received()'.
(convert_gdk_drag_action_to_corba): Removed.
(convert_corba_drag_action_to_gdk): Removed.
(find_matching_target_for_drag_context): Removed.

* e-folder-dnd-bridge.c: New.
* e-folder-dnd-bridge.h: New.

svn path=/trunk/; revision=16491
2002-04-17 15:22:25 +00:00
8ded5c9c10 Shell config page routines. Right now handles the default folders page.
* e-shell-config.c: Shell config page routines. Right now
	handles the default folders page.

	* glade/e-shell-config-default-folders.glade: New.

	* GNOME_Evolution_Shell.oaf.in: Add info for the default folders
	config page.

	* main.c (idle_cb): If we successfully registered the shell,
	register the config factory.

	* evolution-shell-client.c (evolution_shell_client_new): Note the
	fact that it frees the corba_shell when it is destroyed.

	* evolution-folder-selector-button.c
	(evolution_folder_selector_button_construct, destroy): Use
	bonobo_object_ref/unref on the shell client, not gtk.

	* e-shell.c (e_shell_construct): Pass local_directory to
	e_setup_check_db.
	(handle_default_uri): Fix the config db paths here to match the
	other routines.

	* e-setup.c (e_setup_check_db): Make this take the evolution
	directory path as well so we can properly set up file: URIs for
	the default folders.

svn path=/trunk/; revision=16423
2002-04-10 19:01:14 +00:00
35d0d166f8 Change the logic for displaying a default window, so we don't end up with
* main.c (idle_cb): Change the logic for displaying a default
window, so we don't end up with two windows all the time.

svn path=/trunk/; revision=16416
2002-04-09 21:57:10 +00:00
92d85ea01a Move <dirent.h> down the #include list so it compiles on Darwin.
* e-local-storage.c: Move <dirent.h> down the #include list so it
compiles on Darwin.

svn path=/trunk/; revision=16407
2002-04-09 16:30:53 +00:00
a1720426f1 New. Check that things that need to be in the config db are. Right now it
* e-setup.c (e_setup_check_db): New. Check that things that need
	to be in the config db are. Right now it sets up the default
	folders.

	* e-shell.c (e_shell_construct): Call e_setup_check_db after
	getting the config db.

	* e-shell-constants.h: Add E_SUMMARY_URI, E_LOCAL_INBOX_URI, etc.

	* e-shortcuts.c (e_shortcuts_add_default_group): Use
	E_LOCAL_INBOX_URI, etc.

	* e-shell-view.c: #define FALLBACK_URI to E_SUMMARY_URI

svn path=/trunk/; revision=16405
2002-04-09 15:54:24 +00:00
c10d63c7c2 If the shell fails to display all of the requested URIs, fall back to
the default URI (Summary).

svn path=/trunk/; revision=16404
2002-04-09 15:33:45 +00:00
f61f9beaaf Oops. Add ChangeLog entries for some changes that accidentally escaped
into my last commit.

	* main.c (idle_cb): Check for "default:" URIs and treat them the
	same way as "evolution:" URIs.

	* e-shell.c (impl_Shell_handleURI): Handle "default:" URIs by
	looking up the default folders in the config db.

svn path=/trunk/; revision=16403
2002-04-09 15:11:24 +00:00
2a3a53e9cf Add a "view_info" argument.
* Evolution-ShellComponent.idl (createView): Add a "view_info"
	argument.

	* e-shell-view.c (get_view_for_uri): if the URI contains a '#',
	split it into a URI and a "view_info" at that point. (Otherwise,
	pass "" for the view_info to ShellComponent_createView.) This can
	be used for things like specifying day/month/week view to the
	calendar.

	* e-shell.c (create_view): Ignore e_shell_view_display_uri's
	return code: it's possible/likely that the requested URL is remote
	and hasn't been filled in yet.
	(impl_Shell_handleURI): Don't use Shell_createNewView directly,
	call e_shell_create_view_from_uri_and_settings. (For the above fix
	and some others.)

	* evolution-shell-component.c (impl_createView): Add view_info.

	* evolution-shell-component-client.c
	(evolution_shell_component_client_create_view): Add view_info.

	* evolution-test-component.c (create_view_fn): add view_data.

	* e-corba-storage-registry.c
	(impl_StorageRegistry_getFolderByUri): kill a warning

svn path=/trunk/; revision=16397
2002-04-09 14:59:26 +00:00
c357c63804 Fix "evolution evolution:/path/to/folder" to use default view
prefs.

	* e-shell.c (impl_Shell_createNewView): Use
	e_shell_create_view_from_uri_and_settings to create the new view
	based on saved view 0 instead of always using the initial
	evolution defaults.
	(e_shell_create_view_from_uri_and_settings): Renamed and
	simplified; the template_view argument was useless and
	settings_found would always be set to TRUE in the context it was
	being used it.
	(e_shell_restore_from_settings): Simplify for
	e_shell_create_view_from_uri_and_settings changes.

	* e-shell-view.c (e_shell_view_load_settings): Only load the
	DisplayedURI if the view isn't already displaying a URI. Also,
	pass an &ev to the first bonobo_config_get_long so we can tell if
	it failed and bail out.

	* e-shell-view.h: Remove a prototype for a non-existent function
	(e_shell_view_remove_control_for_uri).

	* main.c (idle_cb): Add some comments here and remove some dead
	code.

svn path=/trunk/; revision=16389
2002-04-08 15:30:02 +00:00
fc85f0ce45 set type (load_pages): get the oaf property for type and track the page
2002-04-06  JP Rosevear  <jpr@ximian.com>

	* e-shell-settings-dialog.c (page_new): set type
	(load_pages): get the oaf property for type and track the page
	number of the highest priority for each type
	(destroy_type_entry): destroy hash func
	(impl_destroy): destroy the hash table
	(init): create private struct and hash table
	(e_shell_settings_dialog_show_type): show the page of the given
	type

	* e-shell-view-menu.c (command_settings): show the page for the
	current folder type by default

	* e-shell-settings-dialog.h: new proto

svn path=/trunk/; revision=16376
2002-04-06 20:00:51 +00:00
d235696811 Set the title of the dialog.
* e-shell-settings-dialog.c (init): Set the title of the dialog.

svn path=/trunk/; revision=16370
2002-04-06 12:05:08 +00:00
02dee9478c Fix a memory mixup.
* evolution-shell-client.c
	(evolution_shell_client_get_pixbuf_for_type): Fix a memory mixup.

svn path=/trunk/; revision=16359
2002-04-04 22:32:12 +00:00