Commit Graph

879 Commits

Author SHA1 Message Date
0b63c0c627 gr. save then commit.
svn path=/trunk/; revision=13588
2001-10-11 18:54:34 +00:00
1a4d87b9d7 Remove "display_name" arg from update methods. It was only there to do the
* Evolution-Storage.idl: Remove "display_name" arg from update
	methods. It was only there to do the "Inbox (5)" hack, which is
	supported directly now.

	* evolution-storage.c (impl_Storage_updateFolder): no longer takes
	display_name.
	(evolution_storage_update_folder,
	evolution_storage_update_folder_by_uri): Likewise.
	(class_init): Update signal signature.

	* evolution-storage-listener.c
	(impl_GNOME_Evolution_StorageListener_notifyFolderUpdated): No
	longer takes display_name, but make it pass the unread_count along
	in the signal it emits.
	(class_init): Update signal signature.

	* e-local-storage.c (bonobo_interface_update_folder_cb):
	* e-corba-storage.c (impl_StorageListener_notifyFolderUpdated): No
	longer take display_name.

svn path=/trunk/; revision=13587
2001-10-11 18:53:41 +00:00
a46bcc8084 Ooops, remove debugging message.
* e-storage-set-view.c (handle_evolution_path_drag_motion): Ooops,
remove debugging message.

svn path=/trunk/; revision=13551
2001-10-10 14:13:27 +00:00
acaea79e71 Make this a no-op if the source and the destination path are the same.
* e-storage.c (e_storage_async_xfer_folder): Make this a no-op if
the source and the destination path are the same.

* e-local-storage.c (impl_async_xfer_folder): return after
returning `E_STORAGE_CANTCHANGESTOCKFOLDER' to the callback.

* e-storage-set-view.c (handle_evolution_path_drag_motion): Make
the check for dragging a folder over itself a little bit more
accurate.

svn path=/trunk/; revision=13550
2001-10-10 14:10:51 +00:00
1b0b473010 This is a message, not a warning! (command_work_online): This is also a
2001-10-05  Jon Trowbridge  <trow@ximian.com>

	* e-shell-view-menu.c (command_work_offline): This is a message,
	not a warning!
	(command_work_online): This is also a message, not a warning!
	(I'm feeling very anal today.)

svn path=/trunk/; revision=13467
2001-10-05 20:46:39 +00:00
3d76b85133 Do not invoke e_shell_restore_from_settings()' if shell' is NULL.
* main.c (idle_cb): Do not invoke
`e_shell_restore_from_settings()' if `shell' is NULL.

svn path=/trunk/; revision=13462
2001-10-05 20:06:57 +00:00
a19af27803 Get the right hpaned positions for when the shortcut bar and/or the folder
* e-shell-view.c (e_shell_view_save_settings): Get the right
hpaned positions for when the shortcut bar and/or the folder bar
are visible.

svn path=/trunk/; revision=13461
2001-10-05 20:03:43 +00:00
b36809d0b8 Handle the return value from
* e-shell.c (impl_Shell_handleURI): Handle the return value from
`evolution_shell_component_client_handle_external_uri()' as an
EvolutionShellComponentClientResult instead of treating it as a
boolean.  This prevents the incorrect NotFound exceptions we were
getting for `mailto:' invocations.

svn path=/trunk/; revision=13460
2001-10-05 19:49:21 +00:00
b6c919243e Also `gdk_flush()'. (idle_cb): If the user doesn't specify at least one
* main.c (quit_box_new): Also `gdk_flush()'.
(idle_cb): If the user doesn't specify at least one `evolution:'
URI, restore from the settings.  [Fixes #6093.]

svn path=/trunk/; revision=13459
2001-10-05 19:43:23 +00:00
081bd4e322 New member ping_timeout_id' in EvolutionShellComponentPrivate'.
* evolution-shell-component.c: New member `ping_timeout_id' in
`EvolutionShellComponentPrivate'.
(setup_owner_pinging): New helper function.
(impl_owner_died): Unref the owner and set ->owner_client to
%NULL.
(impl_setOwner): Don't unref here.
(destroy): Remove the source for ->ping_timeout_id if not -1.

svn path=/trunk/; revision=13451
2001-10-05 18:44:56 +00:00
e95a0b6c8b #include "e-util/e-gtk-utils.h". (quit_box_new): Queue a draw on the
* main.c: #include "e-util/e-gtk-utils.h".
(quit_box_new): Queue a draw on the window; otherwise it seems to
fail to redraw in some cases for some reason [see #11412].

svn path=/trunk/; revision=13450
2001-10-05 18:24:15 +00:00
171018d311 If the owner is dead, emit "owner_died" instead of "owner_unset".
* evolution-shell-component.c (impl_setOwner): If the owner is
dead, emit "owner_died" instead of "owner_unset".
(impl_owner_died): New, default implementation for "owner_died".
(class_init): Install it.

* evolution-shell-component.h: New signal "owner_died".

svn path=/trunk/; revision=13449
2001-10-05 18:17:48 +00:00
fc1e5673bb If setting the owner fails, print the a warning message out. Then restart
* e-shell.c (set_owner_on_components): If setting the owner fails,
print the a warning message out.  Then restart the component.

* e-component-registry.c (component_free): Return a boolean value.
%FALSE if ::unsetOwner raises an exception.
(register_type): New arg @override_duplicate, to avoid complaining
if a component gets re-registered.
(register_component): Likewise.
(e_component_registry_restart_component): New.

* e-uri-schema-registry.c
(e_uri_schema_registry_set_handler_for_schema): Changed return
type to `void'.  Just remove the old handler and set up the new
one.

* evolution-shell-component-client.c (corba_exception_to_result):
Translate ::OldOwnerHasDied into
EVOLUTION_SHELL_COMPONENT_OLDOWNERHASDIED.

* evolution-shell-component.h: New enum value
`EVOLUTION_SHELL_COMPONENT_OLDOWNERHASDIED'.

* evolution-shell-component.c (impl_setOwner): If the old owner is
not alive anymore [use CORBA_Object_non_existent() to figure this
out], emit OWNER_UNSET and raise `OldOwnerHasDied'.
(evolution_shell_component_result_to_string): New.

* Evolution-ShellComponent.idl: New exception `OldOwnerHasDied'.
(ShellComponent::setOwner): Can raise it.

* e-folder-type-registry.c
(e_folder_type_register_type_registered): New.
(e_folder_type_register_unregister_type): New.

svn path=/trunk/; revision=13446
2001-10-05 17:49:35 +00:00
c8a315a5a9 added BONOBO_GNOME_CFLAGS to make it compile with latest Bonobo
2001-10-04  Rodrigo Moya <rodrigo@ximian.com>

	* importer/Makefile.am: added BONOBO_GNOME_CFLAGS to make it compile
	with latest Bonobo

svn path=/trunk/; revision=13408
2001-10-04 11:04:21 +00:00
ba14e3cb74 [Fix #11326, The folder list can become detached from its parent
window.]

* e-shell-view.c (folder_context_menu_popped_down_cb): Pop down
the folder bar if it's popped up.

svn path=/trunk/; revision=13346
2001-10-02 20:31:13 +00:00
811d0de363 Make the crash message less dorky. [#10264]
* e-shell.c (e_shell_component_maybe_crashed): Make the crash
message less dorky.  [#10264]

svn path=/trunk/; revision=13309
2001-10-02 19:05:39 +00:00
1ea1b436aa [Don't allow dragging from a folder to one of its descendants or
onto itself, when the operation is GDK_DRAG_MOVE.  This fixes bugs
like #8737.]

* e-storage-set-view.c (handle_evolution_path_drag_motion): Don't
highlight if the user is attempting to move a folder to one of its
descendants.

svn path=/trunk/; revision=13307
2001-10-02 18:56:27 +00:00
11c665c925 Use bonobo_ui_component_new_default()', not bonobo_ui_component_new()'.
* e-shell-view.c (e_shell_view_construct): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

* mail-account-gui.c (launch_signature_editor): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

* e-msg-composer.c (setup_ui): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

* gui/dialogs/comp-editor.c (setup_widgets): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

svn path=/trunk/; revision=13306
2001-10-02 18:33:34 +00:00
df580510c9 New, callback for the ::removed_folder signal on the shell's EStorageSet.
* e-shell-view.c (storage_set_removed_folder_callback): New,
callback for the ::removed_folder signal on the shell's
EStorageSet.
(e_shell_view_construct): Connect.
(e_shell_view_remove_control_for_uri): Removed.

* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Don't call
`e_shell_view_remove_control_for_uri()'.
(e_shell_command_delete_folder): Not here either.  And don't
display the default URI either.

svn path=/trunk/; revision=13305
2001-10-02 18:21:01 +00:00
e77919dfff [Fix #8053, `GNOME_Evolution_Shortcuts' doesn't seem to work.]
* e-shell.c (e_shell_construct): Don't create the EShortcuts
object a second time.

svn path=/trunk/; revision=13236
2001-09-28 21:53:33 +00:00
8f338e40f9 [Fix #8434, Shortcut bar not shown properly.]
* e-shell-view.c (e_shell_view_show_shortcut_bar): Set the
hpaned_position from the EPaned *before* hiding it -- otherwise,
the position will of course always be zero.
(e_shell_view_save_settings): Save from ->hpaned_position and
->view_hpaned_position.

svn path=/trunk/; revision=13234
2001-09-28 21:18:57 +00:00
a36bd3b0be New place to start the intelligent importers
svn path=/trunk/; revision=13230
2001-09-28 21:04:27 +00:00
e6ab5554d4 Allow callers to set the default type of folder to be created.
svn path=/trunk/; revision=13220
2001-09-28 18:58:17 +00:00
6c47b86afe Remove. (command_new_mail_message): Removed. (command_pilot_settings):
* e-shell-view-menu.c (DEFINE_UNIMPLEMENTED): Remove.
(command_new_mail_message): Removed.
(command_pilot_settings): New.
(e_shell_view_menu_setup): Add tools verbs.

svn path=/trunk/; revision=13194
2001-09-27 18:22:54 +00:00
62c86e7472 New helper function. (folder_selected_cb): Call it.
* e-shell-view.c (setup_verb_sensitivity_for_folder): New helper
function.
(folder_selected_cb): Call it.
(folder_context_menu_popping_up_cb): New callback for the
"folder_context_menu_popping_up" signal on the folder bar's
EStorageSetView; set the sensitivities of the verbs according to
the right-clicked folder.
(folder_context_menu_popped_down_cb): New, callback for the
"folder_context_menu_popped_down" signal on the folder bar's
EStorageSetView; set the sensitivities of the verbs according to
the currently displayed folder.
(e_shell_view_get_folder_bar_right_click_path): Add a cast to
placate a warning.

* e-storage-set-view.c (class_init): Set up the
"folder_context_menu_popping_up" and
"folder_context_menu_popped_down" signals.
(right_click): Emit "folder_context_menu_popping_up" before
popping up the menu, "folder_context_menu_popped_down" after the
menu is gone.

* e-storage-set-view.h: New signals
"folder_context_menu_popping_up" and
"folder_context_menu_popped_down".

svn path=/trunk/; revision=13171
2001-09-26 22:55:27 +00:00
ba11d5d35a Put my name in alphabetical order
svn path=/trunk/; revision=13167
2001-09-26 20:59:07 +00:00
ef97ae7eb9 Added myself to about box
svn path=/trunk/; revision=13147
2001-09-26 12:11:03 +00:00
71d817f832 Change the name on the EFolder object too.
* e-shell-folder-commands.c (e_shell_command_rename_folder):
Change the name on the EFolder object too.

svn path=/trunk/; revision=13134
2001-09-25 23:26:33 +00:00
58755d5604 [Implemented the "Rename" command. Warning, it doesn't quite work
yet, as there seems to be something wrong still.]

* e-storage.c (e_storage_async_xfer_folder): Ooops.  Make the
check for CANTMOVETODESCENDANT really work.

* e-storage-set-view.c (tree_drag_data_received): Pass the
EStorageSetView as the data for the async_xfer function.
(folder_xfer_callback): Display an error dialog if something goes
wrong.

* e-shell-view-menu.c (command_rename_folder): Enable again.

* e-shell-folder-commands.c (e_shell_command_rename_folder):
Re-implemented.
(delete_dialog): Use double quotes instead of single quotes around
the folder name, for consistency with the other dialogs.

svn path=/trunk/; revision=13131
2001-09-25 23:01:33 +00:00
769e117e90 New helper function. (command_move_folder): Pass the @folder_path argument
* e-shell-view-menu.c (get_path_for_folder_op): New helper
function.
(command_move_folder): Pass the @folder_path argument to
`e_shell_command_move_folder' by using it.
(command_copy_folder): Pass the @folder_path argument to
`e_shell_command_copy_folder' by using it.
(command_delete_folder): Pass the @folder_path argument to
`e_shell_command_delete_folder()' by using it.
(command_add_folder_to_shortcut_bar): Pass the @folder_path
argument to `e_shell_command_add_to_shortcut_bar()' by using it.
(command_create_folder): Pass the @parent_folder_path argument to
`e_shell_command_create_new_folder()' by using it.
(command_new_folder): Use `get_path_for_folder_op()'.

* e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar):
New arg @folder_path.
(e_shell_command_copy_folder): New arg @folder_path.
(e_shell_command_move_folder): New arg @folder_path.
(e_shell_command_open_folder_in_other_window): New arg @folder_path.
(e_shell_command_create_new_folder): New arg @parent_folder_path.
(e_shell_command_delete_folder): New arg @folder_path.

* e-shell-view.c (e_shell_view_get_folder_bar_right_click_path): New.

* e-storage-set-view.c: New member `right_click_row_path'.
(init): Init to NULL.
(destroy): Free.
(right_click): Set.
(popup_folder_menu): Use `gnome_popup_menu_do_popup_modal()' so we
are stuck in here until the menu disappears.  After that, destroy
the menu and  call `e_tree_right_click_up()'.
(e_storage_set_view_get_right_click_path): New.

svn path=/trunk/; revision=13124
2001-09-25 21:27:00 +00:00
b138a2e0ab Expand a ~ in the path
svn path=/trunk/; revision=13062
2001-09-21 20:30:09 +00:00
c1e363ad2e Check for a component for the given row *after* trying to handle
* e-storage-set-view.c (tree_drag_motion): Check for a component
for the given row *after* trying to handle
EVOLUTION_PATH_TARGET_TYPE.  Otherwise, we always fail in the case
of dnd between a folder and the toplevel node of its storage.
(find_matching_target_for_drag_context): If not on a folder,
always return EVOLUTION_PATH_TARGET_TYPE.

svn path=/trunk/; revision=13050
2001-09-21 17:02:51 +00:00
4f77a21a2a Removed. (folder_bar_popup_map_callback): Don't connect.
* e-shell-view.c (storage_set_view_box_event_cb): Removed.
(folder_bar_popup_map_callback): Don't connect.
(reparent_storage_set_view_box_and_destroy_popup): Don't ungrab
here.
(popdown_transient_folder_bar): Ungrab here.
(popdown_transient_folder_bar_idle): New.
(switch_on_folder_tree_click): Invoke it in the idle loop.  Also,
ungrab.

svn path=/trunk/; revision=13025
2001-09-20 22:59:37 +00:00
704277492d Only start wizard thing if there are no mail accounts
svn path=/trunk/; revision=13012
2001-09-20 19:13:13 +00:00
61f61e3ecd New member tooltips' in ETaskWidgetPrivate'. (init): Init to NULL.
* e-task-widget.c: New member `tooltips' in `ETaskWidgetPrivate'.
(init): Init to NULL.
(e_task_widget_construct): Create a GtkTooltips and make
`tooltips' point to it.
(e_task_widget_update): Set the tooltip for the label too.

svn path=/trunk/; revision=12989
2001-09-19 21:32:14 +00:00
899db1fe37 Removed globals activity_client', progress'. (timeout_callback_3): Get
* evolution-test-component.c: Removed globals `activity_client',
`progress'.
(timeout_callback_3): Get the activity client from @data.
(timeout_callback_2): Likewise here.  Pass the activity client as
the user data pointer for `gtk_timeout_add()'.  Put the progress
count in a "my_progress" GtkObject data key.
(timeout_callback_1): Pass the newly created EActivityClient as
the user data pointer for `gtk_timeout_add()'.  Also, dispatch
itself again with a random timeout delay, for a maximum of
NUM_ACTIVITES times.  Initialize the "my_progress" GtkObject data
to be -1.

* e-activity-handler.c: New member `component_id' in
`ActivityInfo'.
(activity_info_new): New arg @component_id.  Init the
`component_id' member accordingly.
(activity_info_free): Free the `component_id' member.
(impl_operationStarted): Pass the component_id to
`activity_info_new()'.
(task_widget_new_from_activity_info): Pass the component_id to the
activity_info.

* e-task-widget.c: New member `component_id' in
`ETaskWidgetPrivate'.
(impl_destroy): Free it.
(init): Init to NULL.  Also init all the other members to NULL as
well.
(e_task_widget_construct): New arg @component_id.  Assign
->component_id to match it.
(e_task_widget_new): New arg @component_id here as well.  Pass it
over to `e_task_widget_construct()'.
(e_task_widget_get_component_id): New.

svn path=/trunk/; revision=12988
2001-09-19 21:13:08 +00:00
4889b42644 New arg @row. Highlight that row. (tree_drag_motion): Pass @row to
* e-storage-set-view.c (handle_evolution_path_drag_motion): New
arg @row.  Highlight that row.
(tree_drag_motion): Pass @row to
`handle_evolution_path_drag_motion()'.

svn path=/trunk/; revision=12961
2001-09-18 23:08:06 +00:00
bb51b55bcc #include "e-gtk-utils.h".
* e-splash.c: #include "e-gtk-utils.h".

svn path=/trunk/; revision=12947
2001-09-18 19:43:36 +00:00
9f792d1de5 Make the canvas backing stored.
* e-splash.c (e_splash_construct): Make the canvas backing stored.

svn path=/trunk/; revision=12944
2001-09-18 18:48:53 +00:00
0e432a12de Call `e_make_widget_backing_stored()' on the widget so it refreshes
* main.c (quit_box_new): Call `e_make_widget_backing_stored()' on
the widget so it refreshes properly even when we are busy waiting
on CORBA calls.

svn path=/trunk/; revision=12920
2001-09-17 23:21:34 +00:00
431cf62eb6 New. (quit_box_destroyed_callback): New. (no_views_left_cb): Use these two
* main.c (quit_box_new): New.
(quit_box_destroyed_callback): New.
(no_views_left_cb): Use these two functions to display a warning
message when Evolution is quitting.

svn path=/trunk/; revision=12917
2001-09-17 22:53:40 +00:00
c8c0ecf1a7 Only raise NotReady if the local storage pointer is actually NULL. This
* e-shell.c (impl_Shell_getLocalStorage): Only raise NotReady if
the local storage pointer is actually NULL.  This way it is
possible for the components to access the local storage during
initialization even if the shell is not quite finished
initializing yet.

svn path=/trunk/; revision=12914
2001-09-17 22:02:40 +00:00
1e050bd5f7 [Fix #9060, Shell crash after mailer crash.]
* e-shell-view.c (hash_foreach_destroy_view): Renamed from
`hash_forall_destroy_view'.  Don't free `name'.
(socket_destroy_cb): Use `g_hash_table_lookup()' instead of
`g_hash_table_lookup_extended()'.  Don't free the URI.
(e_shell_view_remove_control_for_uri): Likewise.
(show_existing_view): Use view->uri as the key when inserting the
view.  Remove the old view from the hash when destroying it.
(create_new_view_for_uri): Same here.

svn path=/trunk/; revision=12913
2001-09-17 21:57:33 +00:00
8fcec5b917 Hide the storage_set_view_box *before* getting the child1_size [otherwise,
* e-shell-view.c (e_shell_view_show_folder_bar): Hide the
storage_set_view_box *before* getting the child1_size [otherwise,
the latter will, um, always be zero].

svn path=/trunk/; revision=12902
2001-09-17 17:51:01 +00:00
67b6c40da6 Updated required version of gal to 0.11.99.4.
2001-09-16  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Updated required version of gal to 0.11.99.4.

From calendar/ChangeLog:

2001-09-16  Christopher James Lahey  <clahey@ximian.com>

	* gui/dialogs/meeting-page.c (build_etable): Updated this to match
	the new ETableSimple interface.

From mail/ChangeLog:

2001-09-16  Christopher James Lahey  <clahey@ximian.com>

	* message-list.c (ml_get_node_by_id): Made save_id const here.

From shell/ChangeLog:

2001-09-16  Christopher James Lahey  <clahey@ximian.com>

	* e-storage-set-view.c (etree_get_node_by_id): Made save_id const
	here.

svn path=/trunk/; revision=12870
2001-09-17 04:00:31 +00:00
9cb86dd0b0 [Automake 1.5 fixes pointed out by Richard Boulton
<richard@tartarus.org>, as per #9258.]

* importer/Makefile.am (CLEANFILES): Assign directly using `=',
instead of `+='.
* Makefile.am (CLEANFILES): Likewise.

svn path=/trunk/; revision=12846
2001-09-14 23:35:28 +00:00
8e88e78fbb Return a proper value. (impl_Shell_createStorageSetView): Likewise.
* e-shell.c (impl_Shell_getLocalStorage): Return a proper value.
(impl_Shell_createStorageSetView): Likewise.
(impl_Shell_setLineStatus): Likewise.
(impl_Shell__get_displayName): Likewise.
(impl_Shell_getComponentByType): Likewise.
(impl_Shell_createNewView): Likewise.
(impl_Shell_handleURI): Likewise.

svn path=/trunk/; revision=12834
2001-09-14 22:38:08 +00:00
2fe3340586 Fix crash and remove warning
svn path=/trunk/; revision=12828
2001-09-14 19:48:10 +00:00
3e92e7a0eb Removed unused variable.
* e-shell-importer.c (start_import): Removed unused variable.

svn path=/trunk/; revision=12827
2001-09-14 19:31:17 +00:00
1b26832f14 [Fix #8204 and the other bugs caused by allowing invocations on
the ::Shell interface to happen before the shell is actually fully
initialized.  This is a lame hack and not a nice, complete
solution for the problem, but it should do for now.]

* e-shell.c: New member `is_initialized' in `EShellPrivate'.
(init): Initialize to %FALSE.
(e_shell_construct): Set `is_initialized' to %TRUE after the
initialization sequence is finished.
(raise_exception_if_not_ready): New utility function to raise the
notReady exception if the shell is not ready.
(impl_Shell__get_displayName): Call it.
(impl_Shell_getComponentByType): Likewise.
(impl_Shell_createNewView): Likewise.
(impl_Shell_handleURI): Likewise.
(impl_Shell_selectUserFolder): Likewise.
(impl_Shell_getLocalStorage): Likewise.
(impl_Shell_createStorageSetView): Likewise.
(impl_Shell_setLineStatus): Likewise.
(e_shell_construct): Print out the repo_id of the exception from
`bonobo_get_object()' if it fails.  Also, register on OAF just
before displaying the splash.

* Evolution-Shell.idl: New exception `NotReady'.  All the CORBA
methods on ::Shell can now raise this exception.

svn path=/trunk/; revision=12826
2001-09-14 19:27:41 +00:00