Commit Graph

1434 Commits

Author SHA1 Message Date
7
128d15489f We want XFER_FOLDER not REMOVE_FOLDER!
2001-10-27    <NotZed@Ximian.com>

        * evolution-storage.c (impl_Storage_async_xfer_folder): We want
        XFER_FOLDER not REMOVE_FOLDER!

svn path=/trunk/; revision=14193
2001-10-27 01:35:45 +00:00
a40ab7c842 Fix the license text to make sense.
svn path=/trunk/; revision=14192
2001-10-27 01:09:28 +00:00
02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
067aaf149e Update the licensing information to require version 2 of the GPL
explicitly.

svn path=/trunk/; revision=14186
2001-10-26 23:53:35 +00:00
a590fb65bf Remove debugging messages. (finalize_offline_hash_foreach): Likewise.
* e-shell-offline-handler.c (prepare_for_offline): Remove
debugging messages.
(finalize_offline_hash_foreach): Likewise.

svn path=/trunk/; revision=14184
2001-10-26 23:42:48 +00:00
c944779866 New member finished' in EShellOfflineHandlerPrivate'.
* e-shell-offline-handler.c: New member `finished' in
`EShellOfflineHandlerPrivate'.
(finalize_offline): Ref the handler as we might get destroyed
while putting every component offline.
(impl_OfflineProgressListener_updateProgress): Don't emit
::offline_procedure_finished if ->finished is %TRUE.  Also, set it
to %TRUE after emitting the signal.
(cancel_offline): Likewise.
(finalize_offline): Likewise.
(update_dialog_clist): Guard against NULL ->dialog_gui.

svn path=/trunk/; revision=14182
2001-10-26 23:14:46 +00:00
a8dc6d1f7c Implement. (class_init): Add the signal "xfer_folder" signal.
* evolution-storage.c (impl_Storage_async_xfer_folder): Implement.
(class_init): Add the signal "xfer_folder" signal.

* evolution-storage.h: New signal "xfer_folder".

svn path=/trunk/; revision=14177
2001-10-26 22:41:11 +00:00
c26da3acf5 New, implementation for the ::async_xfer_folder method. (class_init):
* e-corba-storage.c
(async_xfer_folder): New, implementation for the
::async_xfer_folder method.
(class_init): Install it.

svn path=/trunk/; revision=14173
2001-10-26 21:51:43 +00:00
82a4a84c7a Set ->is_initialized to %FALSE. (e_shell_unregister_all): Same here.
* e-shell.c (destroy): Set ->is_initialized to %FALSE.
(e_shell_unregister_all): Same here.

svn path=/trunk/; revision=14170
2001-10-26 21:00:36 +00:00
f96780abd4 gtk_widget_show_now() the dialog. Likewise.
* e-shell-importer.c (prepare_intelligent_page):
gtk_widget_show_now() the dialog.
* e-shell-startup-wizard.c (prepare_importer_page): Likewise.

svn path=/trunk/; revision=14167
2001-10-26 20:17:07 +00:00
87f96121fc Use gtk_widget_show_now() so the stupid dialog hopefully displays all the
* main.c (quit_box_new): Use gtk_widget_show_now() so the stupid
dialog hopefully displays all the time.

svn path=/trunk/; revision=14166
2001-10-26 20:14:08 +00:00
16f5a6ab61 Clear the folder bar label to be empty. [#12553]
* e-shell-view.c (set_current_notebook_page): Clear the folder bar
label to be empty.  [#12553]

svn path=/trunk/; revision=14163
2001-10-26 19:16:08 +00:00
0aa7075d81 Draw one more line.
* e-shell-about-box.c (timeout_callback): Draw one more line.

svn path=/trunk/; revision=14161
2001-10-26 19:06:40 +00:00
df3757dada Set the GtkWindow policy so that @allow_shrink, @allow_grow and
* e-shell-view-menu.c (command_about_box): Set the GtkWindow
policy so that @allow_shrink, @allow_grow and @auto_shrink are all
%FALSE.

svn path=/trunk/; revision=14160
2001-10-26 18:44:11 +00:00
12333f4dff Don't allow invalid folder names. [#12027]
* e-shell-folder-commands.c (e_shell_command_rename_folder): Don't
allow invalid folder names.  [#12027]

* e-shell-folder-creation-dialog.c (entry_name_is_valid): Removed.
(dialog_clicked_cb): Use `e_shell_folder_name_is_valid()' instead.

* e-shell-utils.c (e_shell_folder_name_is_valid): New.  Sorry I18N
people, it breaks the string freeze slighty.

* e-component-registry.c (component_free): Add a cast.
(e_component_registry_restart_component): Argh, use the
corba_objref properly in calling `wait_for_corba_object_to_die()'.

svn path=/trunk/; revision=14152
2001-10-26 18:21:57 +00:00
966680aa9f Add accelerators for "Work Offline" and "Work Online".
* e-shell-view-menu.c (update_offline_menu_item): Add accelerators
for "Work Offline" and "Work Online".

svn path=/trunk/; revision=14119
2001-10-26 01:15:22 +00:00
b6df48bee7 Don't allow translators to translate "Ximian Evolution".
* e-shell-view.c (update_for_current_uri): Don't allow translators
to translate "Ximian Evolution".

svn path=/trunk/; revision=14116
2001-10-26 00:46:30 +00:00
79c7cb13de New helper function. (e_component_registry_restart_component): Use it.
* e-component-registry.c (wait_for_corba_object_to_die): New
helper function.
(e_component_registry_restart_component): Use it.
(component_free): Call it to wait for the unowned object to die.

svn path=/trunk/; revision=14110
2001-10-25 23:37:32 +00:00
fb5bec84e9 Handle failure from XGetClassHint properly. Also, free res_name and
* e-shell.c (impl_Shell_selectUserFolder): Handle failure from
XGetClassHint properly.  Also, free res_name and res_class in case
of success.  Fixes #13554.

svn path=/trunk/; revision=14104
2001-10-25 22:28:13 +00:00
54433d0888 Don't display an icon for storages that have subfolders.
* e-storage-set-view.c (etree_icon_at): Don't display an icon for
storages that have subfolders.

svn path=/trunk/; revision=14102
2001-10-25 21:55:39 +00:00
7e6933926a #include "e-util/e-gtk-utils.h".
* e-shell-importer.c: #include "e-util/e-gtk-utils.h".

* e-shell-folder-creation-dialog.c
(e_shell_show_folder_creation_dialog): Constify a local variable
to placate a warning.

* e-activity-handler.c (task_widget_cancel_callback): #if 0'ed
out.

* evolution-shell-component-client.c
(evolution_shell_component_client_new): Remove unused variable
`ior'.

svn path=/trunk/; revision=14100
2001-10-25 21:19:01 +00:00
4f0f5db2c0 Set ->priv to NULL. (impl_operationStarted): Check for priv not being
* e-activity-handler.c (impl_destroy): Set ->priv to NULL.
(impl_operationStarted): Check for priv not being NULL.
(impl_operationProgressing): Likewise.
(impl_operationFinished): Likewise.
(impl_requestDialog): Likewise.

svn path=/trunk/; revision=14099
2001-10-25 21:08:35 +00:00
3644ccebcc Set the ->mailer to be CORBA_OBJECT_NIL in case of an exception, otherwise
* e-shell-startup-wizard.c (make_mail_dialog_pages): Set the
->mailer to be CORBA_OBJECT_NIL in case of an exception, otherwise
the caller will not realize about the problem.

svn path=/trunk/; revision=14095
2001-10-25 18:31:57 +00:00
06a3557507 Don't use __FUNCTION__. (evolution_wizard_set_show_finish): Likewise.
* evolution-wizard.c (evolution_wizard_set_buttons_sensitive):
Don't use __FUNCTION__.
(evolution_wizard_set_show_finish): Likewise.
(evolution_wizard_set_page): Likewise.

* e-shell-startup-wizard.c (make_mail_dialog_pages): Do not use
__FUNCTION__ and __LINE__.  This breaks the string freeze, but the
old way made Evolution non-compilable with non-GNU compilers.

svn path=/trunk/; revision=14094
2001-10-25 18:25:17 +00:00
6e1b3c2bd8 Add a few names to the box.
* e-shell-about-box.c: Add a few names to the box.

svn path=/trunk/; revision=14083
2001-10-25 01:18:51 +00:00
bcd57ec7f9 g_return_if_fail if the display_name is NULL. "Fixes" 11182 although there
* evolution-storage.c (evolution_storage_new_folder):
	g_return_if_fail if the display_name is NULL. "Fixes" 11182
	although there may be a few more cases lying around that pass
	NULLs in.

svn path=/trunk/; revision=14078
2001-10-25 00:26:45 +00:00
7a2d1a768b Set the WMClass of the quit dialog to be different from the default one in
* main.c (quit_box_new): Set the WMClass of the quit dialog to be
different from the default one in an attempt to fix #13441.

svn path=/trunk/; revision=14076
2001-10-24 23:39:41 +00:00
bb7d2c4499 New. (async_xfer_folder_callback): Use it so we get the right error
* e-local-storage.c (storage_result_from_component_result): New.
(async_xfer_folder_callback): Use it so we get the right error
message.
(async_xfer_folder_complete): New arg @success.  Don't remove the
directory and the metadata if @success is %FALSE.

svn path=/trunk/; revision=13991
2001-10-24 20:44:31 +00:00
abb1c1895a Get the path and the shell view instead. (rename_callback_data_free):
* e-shell-folder-commands.c (rename_callback_data_new): Get the
path and the shell view instead.
(rename_callback_data_free): Updated accordingly.
(rename_cb): Set the name on the folder based on the path, not the
actual object [as the old object gets unreffed -- of course].

svn path=/trunk/; revision=13969
2001-10-24 00:24:21 +00:00
d998431a1e New. (rename_callback_data_free): New. (rename_cb): Rename the folder
* e-shell-folder-commands.c (rename_callback_data_new): New.
(rename_callback_data_free): New.
(rename_cb): Rename the folder here.
(e_shell_command_rename_folder): Don't rename the EFolder here.

svn path=/trunk/; revision=13967
2001-10-23 23:38:58 +00:00
a6b2711b08 Handle the return codes properly, and invoke the result callback too.
* e-local-storage.c (async_xfer_folder_callback): Handle the
return codes properly, and invoke the result callback too.

svn path=/trunk/; revision=13965
2001-10-23 22:28:46 +00:00
e6034e7e2d #if 0'ed for now, per #7427.
* e-activity-handler.c (show_cancellation_popup): #if 0'ed for
now, per #7427.

svn path=/trunk/; revision=13962
2001-10-23 22:06:57 +00:00
856e3689fb Explicitly deactivate the control frame, and display the default URI
* e-shell-view.c (storage_set_removed_folder_callback): Explicitly
deactivate the control frame, and display the default URI before
destroying the dead one.

* e-shell.c (e_shell_component_maybe_crashed): If the URI is of a
folder that doesn't exist anymore, don't assume that the
corresponding component has crashed.  Also, try pinging the
component first; if the component responds, don't pop up the
dialog.

svn path=/trunk/; revision=13960
2001-10-23 22:00:39 +00:00
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