Commit Graph

901 Commits

Author SHA1 Message Date
5125a8f870 No need to gtk_widget_show() the view anymore.
* e-shell-view-menu.c (command_open_folder_in_new_window): No need
to gtk_widget_show() the view anymore.

* e-shell-view.c (activate_shortcut_cb): No need to
gtk_widget_show() the view anymore.

* e-shell.c (impl_Shell_createNewView): Don't explicitly show the
new view.
(e_shell_create_view): gtk_widget_show() the new view and flush
the GTK+ event loop before sending the ::interactive notification.
(create_view): New helper function.
(e_shell_create_view): Use it.
(e_shell_create_view_from_settings): New.
(e_shell_restore_from_settings): Use
`e_shell_create_view_from_settings()'.

svn path=/trunk/; revision=13918
2001-10-22 23:59:54 +00:00
983bf4db55 Remove the ping timeout.
* evolution-shell-component.c (impl_unsetOwner): Remove the ping
timeout.

svn path=/trunk/; revision=13908
2001-10-22 23:12:41 +00:00
2808a2dce4 Don't die if the parent window has no WMHints.
* e-shell.c (impl_Shell_selectUserFolder): Don't die if the parent
window has no WMHints.

svn path=/trunk/; revision=13905
2001-10-22 22:50:37 +00:00
3b4131bb11 If the view is dead, just return FALSE. Prevents crash #12483.
* e-shell-view.c (show_existing_view): If the view is dead, just
return FALSE.  Prevents crash #12483.

svn path=/trunk/; revision=13903
2001-10-22 22:37:47 +00:00
367221fa5e New member is_interactive' in EShellPrivate'. (init): Init to %FALSE.
* e-shell.c: New member `is_interactive' in `EShellPrivate'.
(init): Init to %FALSE.
(set_interactive): New.
(e_shell_create_view): Make interactive.
(view_destroy_cb): If no views are left, make non-interactive.

* evolution-shell-component.c (class_init): Set up the
"interactive" signal.
(impl_interactive): New implementation for the ::interactive
method.
(class_init): Install.

* evolution-shell-component.h: New signal `interactive'.

* Evolution-ShellComponent.idl: New method ::interactive.

svn path=/trunk/; revision=13890
2001-10-22 19:09:24 +00:00
a5efc9cddd Pass the @folder_type to ::handleDrop.
* e-storage-set-view.c (tree_drag_data_received): Pass the
@folder_type to ::handleDrop.

* evolution-shell-component-dnd.c
(impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleMotion):
New arg @folder_type.
(impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleDrop):
Likewise.

* evolution-shell-component-dnd.h: Add @folder_type to
`DndDestinationFolderHandleDropFn' and
`DndDestinationFolderHandleMotionFn'.

* e-storage-set-view.c (tree_drag_motion): Pass the folder type to
`::handleMotion'.

* Evolution-ShellComponentDnd.idl: Pass @folder_type in
::handleDrop and ::handleMotion.

* component-factory.c (destination_folder_handle_motion): Get
@folder_type here too [to match the changes in the
EvolutionShellComponentDnd interface].  Also, remove a debugging
message.
(destination_folder_handle_drop): Likewise.

* gui/component/addressbook-component.c
(destination_folder_handle_motion): Get @folder_type here too [to
match the changes in the EvolutionShellComponentDnd interface].
Also, remove a debugging message.
(destination_folder_handle_drop): Likewise.

svn path=/trunk/; revision=13807
2001-10-19 22:01:22 +00:00
895ed271b5 Use EShellAboutBox. (zero_pointer): Removed.
* e-shell-view-menu.c (command_about_box): Use EShellAboutBox.
(zero_pointer): Removed.

* e-shell-about-box.h: New.
* e-shell-about-box.c: New.

svn path=/trunk/; revision=13804
2001-10-19 21:34:36 +00:00
ce6820bf38 Ooops. Remove stale files `e-shell-about-box.[ch]'.
* Makefile.am (evolution_SOURCES): Ooops.  Remove stale files
`e-shell-about-box.[ch]'.

svn path=/trunk/; revision=13767
2001-10-18 20:09:43 +00:00
cb0ed21028 Fix the WM problems related to the folder selection dialog being
out-of-proc.  Now it can be set to be a transient window correctly,
and fakes its WindowGroup hint appropriately.

svn path=/trunk/; revision=13765
2001-10-18 19:58:22 +00:00
621870eaa9 Urgh. Remove stale line that caused `display_default' to be set to TRUE
* main.c (idle_cb): Urgh.  Remove stale line that caused
`display_default' to be set to TRUE for all the non-NULL shell
cases.

svn path=/trunk/; revision=13743
2001-10-18 00:27:43 +00:00
77886091c3 Re-set the owner on the component that raised OldOwnerHasDied.
* e-shell.c (set_owner_on_components): Re-set the owner on the
component that raised OldOwnerHasDied.

svn path=/trunk/; revision=13730
2001-10-17 20:26:32 +00:00
327b4ddd88 Fix bug 11114
svn path=/trunk/; revision=13685
2001-10-15 21:02:48 +00:00
c425788e1c Add two missing codes.
* e-corba-storage.c (async_folder_cb):
	* e-storage.c (e_storage_result_to_string): Add two missing codes.

svn path=/trunk/; revision=13670
2001-10-14 18:21:40 +00:00
e3ab855984 New function to try to activate a component when you know it's going to
* evolution-shell-component-utils.c (e_activation_failure_dialog):
	New function to try to activate a component when you know it's
	going to fail, and then pop up a dialog explaining why it failed.

svn path=/trunk/; revision=13657
2001-10-13 17:28:42 +00:00
74d8c78022 Fix strings and the importer window not drawing correctly
svn path=/trunk/; revision=13636
2001-10-12 22:12:21 +00:00
9b86a51681 [Fix #7643, Starting new view doesn't honor "view" settings.]
* e-shell-view-menu.c (command_open_folder_in_new_window): Pass
the parent @shell_view as the @template_view arg to
`e_shell_create_view()'

* e-shell-view.c (activate_shortcut_cb): Pass the _view as the
@template_view arg to `e_shell_create_view()'.

* e-shell-folder-commands.c
(e_shell_command_open_folder_in_other_window): Pass the parent
@shell_view as the @template_view arg to `e_shell_create_view()'.

* e-shell.c (e_shell_create_view): New arg @template_view.
(impl_Shell_createNewView): Pass %NULL as @template_view when
calling it.
(e_shell_restore_from_settings): Likewise.

svn path=/trunk/; revision=13618
2001-10-12 06:29:09 +00:00
33423ed255 Also flush GDK after flushing GTK. Otherwise GTK might queue draw requests
* main.c (quit_box_new): Also flush GDK after flushing GTK.
Otherwise GTK might queue draw requests to X that don't get
executed.

svn path=/trunk/; revision=13617
2001-10-12 05:37:56 +00:00
ac07e6a338 [Hopefully really, finally fix #8615 and friends.]
* main.c (no_views_left_cb): Invoke `e_shell_disconnect_db()'
before unreffing the shell.

* e-shell.c (e_shell_disconnect_db): New.
(destroy): Call it instead of unreffing the db manually here.

svn path=/trunk/; revision=13616
2001-10-12 05:23:47 +00:00
e7ea619548 Don't free the folder_command_data here. It is supposed to be freed in the
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Don't free the
folder_command_data here.  It is supposed to be freed in the async
callback.  The leak that Dan supposedly fixed was probably only
due to the fact that the component that was supposed to perform
the xfer didn't report a result.  Now that xfer actually works, it
was triggering the crash instead.  [Fixes #9769.]

svn path=/trunk/; revision=13615
2001-10-12 04:21:19 +00:00
7bb7bfa681 Only invoke `progress_listener_servant_free()', no need to also do
* e-shell-offline-handler.c (prepare_for_offline): Only invoke
`progress_listener_servant_free()', no need to also do `__fini()'
on it as `__fini()' is also called by the former.  [Fixes #12329.]
Also, print out the CORBA exception that gets raised so we have
some more clues about what is wrong.

svn path=/trunk/; revision=13614
2001-10-12 04:04:47 +00:00
9d6d152922 Don't die if the folder_bar_popup is %NULL. Fixes #10922.
* e-shell-view.c
(reparent_storage_set_view_box_and_destroy_popup): Don't die if
the folder_bar_popup is %NULL.  Fixes #10922.

svn path=/trunk/; revision=13613
2001-10-12 04:01:22 +00:00
1b235d03d5 Display the default view only if we are starting our own shell, or if the
* main.c (idle_cb): Display the default view only if we are
starting our own shell, or if the command-line has no arguments
and we are talking to an already existing shell.

* e-uri-schema-registry.c
(e_uri_schema_registry_set_handler_for_schema): Do not return a
value.

svn path=/trunk/; revision=13611
2001-10-12 03:48:22 +00:00
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