Commit Graph

813 Commits

Author SHA1 Message Date
e9a3200abe New. (get_efolder_from_shortcut): Removed. (impl_shortcut_dropped): Use
* e-shortcuts-view.c (get_shortcut_info): New.
(get_efolder_from_shortcut): Removed.
(impl_shortcut_dropped): Use `get_shortcut_info()' instead.

svn path=/trunk/; revision=12628
2001-09-05 20:42:57 +00:00
000b01e9a1 Replace "Evolution" with "Ximian Evolution" in a bunch of user-visible
places.

svn path=/trunk/; revision=12625
2001-09-05 19:27:03 +00:00
cb704fd31b [Fix #6474 and friends, crash when selecting things from the
context activity context menu.]

* e-activity-handler.c: New member `menu' in struct
`ActivityInfo'.
(activity_info_new): Init to NULL.
(show_cancellation_popup): Set the `menu' member to point to this
newly created pop-up, use `gnome_popup_menu_do_popup_modal()'
instead of `gnome_popup_menu_do_popup()', and set the `menu'
member to NULL when the menu is gone.
(activity_info_free): Destroy `menu' member.
(impl_requestDialog): Return
`GNOME_Evolution_Activity_DIALOG_ACTION_ERROR' instead of nothing.

svn path=/trunk/; revision=12624
2001-09-05 18:55:28 +00:00
bc21d949ca [Fix #6971, Default folder should be the Summary.]
* main.c (idle_cb): s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/.

* e-shell.c (e_shell_create_view):
s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/.

* e-shell-view.c (socket_destroy_cb):
s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/.
(e_shell_view_save_settings): Likewise.

* e-shell-folder-commands.c (e_shell_command_delete_folder):
s/DEFAULT_URI/E_SHELL_VIEW_DEFAULT_URI/.

* e-shell-view.h (DEFAULT_URI): Rename to
`E_SHELL_VIEW_DEFAULT_URI'.  Change from "evolution:/local/Inbox"
to be "evolution:/summary".

svn path=/trunk/; revision=12618
2001-09-05 00:10:03 +00:00
e68545150a [Fix ^#7675, Crashes trying to empty trash folder.]
* e-shortcuts.c (e_shortcuts_construct): Use
`gtk_signal_connect_while_alive()' so we don't invoke the
callbacks on dead EShortcuts objects.

svn path=/trunk/; revision=12612
2001-09-04 23:12:51 +00:00
4a0b4b24d0 Report errors in the dialog
svn path=/trunk/; revision=12611
2001-09-04 23:11:18 +00:00
fef8a88102 Just ignore the request if the activity handler has the
* e-activity-handler.c (impl_operationProgressing): Just ignore
the request if the activity handler has the GTK_OBJECT_DESTROYED()
flag set.  This should prevent crashes like #7542 and friends when
the components are not well-behaved enough to respect the Bonobo
refcounting.
(impl_operationStarted): Likewise.
(impl_operationFinished): Likewise.
(impl_requestDialog): Likewise.

svn path=/trunk/; revision=12609
2001-09-04 22:57:18 +00:00
00164176ef Check the file exists before trying to import it
svn path=/trunk/; revision=12603
2001-09-04 21:42:45 +00:00
012f7f454a Shut down other components correctly when cancelling the first time startup dialog
svn path=/trunk/; revision=12600
2001-09-04 21:20:57 +00:00
1b240a84be Remove debugging message. (tree_drag_motion): Likewise.
* e-storage-set-view.c (tree_drag_motion): Remove debugging
message.
(tree_drag_motion): Likewise.

svn path=/trunk/; revision=12598
2001-09-04 20:53:22 +00:00
3e05c18406 Add the root node to the hash. (e_storage_set_view_set_show_folders):
* e-storage-set-view.c (e_storage_set_view_construct): Add the
root node to the hash.
(e_storage_set_view_set_show_folders): Likewise.

svn path=/trunk/; revision=12594
2001-09-04 19:54:48 +00:00
3b17294f86 Remove the folder from the EvolutionStorage as well as the EStorage.
2001-08-30  Peter Williams  <peterw@ximian.com>

	* e-local-storage.c (async_xfer_folder_complete): Remove the folder from
	the EvolutionStorage as well as the EStorage.

2001-08-29  Peter Williams  <peterw@ximian.com>

	* e-storage-set-view.c (etree_node_destroy_func): Only call
	remove_node_from_hash if it's not the root node.
	(removed_storage_cb): Don't remove the node from the hash here,
	because it will be removed in the node_destroyed callback.
	(removed_folder_cb): Same.

	* e-shell-view.c (e_shell_view_remove_control_for_uri): Disconnect
	from the destroy signal so as not to confuse ourselves. Also, the
	page remove in the notebook destroys the control and the socket, so don't
	do that explicitly.

	* e-shell-folder-commands.c
	(folder_selection_dialog_folder_selected_callback): Remove the control
	for the source view if we're moving.

svn path=/trunk/; revision=12578
2001-09-04 15:30:13 +00:00
578b942b6a Don't convert folder name to UTF-8 manually... (setup_stock_folders): ...
* e-local-storage.c
(setup_folder_as_stock): Don't convert folder name to UTF-8 manually...
(setup_stock_folders): ... just use U_() here.
(impl_get_display_name): Marked string for translation (with U_).

* e-storage-set-view.c
(storage_sort_callback): s/strcasecmp/g_utf8_collate/
(folder_sort_callback): ditto

* e-summary-storage.c (impl_get_display_name):
Marked string for translation (with U_).

svn path=/trunk/; revision=12546
2001-08-31 21:44:24 +00:00
553de94865 Fix the Pine and Netscape importers. Give them a nice progress reporting GUI.
Revert Jason's changes so that creating a folder works again.

svn path=/trunk/; revision=12536
2001-08-30 23:21:56 +00:00
8ece4a0086 Check for \r in the folder name, this is an invalid char. Also take a
2001-08-30  Jeffrey Stedfast  <fejj@ximian.com>

	* e-shell-folder-creation-dialog.c (entry_name_is_valid): Check
	for \r in the folder name, this is an invalid char. Also take a
	"reason" argument so we can inform the user why his folder name is
	invalid.
	(dialog_clicked_cb): Tell the user why the folder name is invalid.

svn path=/trunk/; revision=12533
2001-08-30 21:04:45 +00:00
5248c1282c Handle the case when there is no URI without crashing. Only add shortcuts
* e-shortcuts.c (load_shortcuts): Handle the case when there is no
URI without crashing.  Only add shortcuts when they are evolution:
URIs.

svn path=/trunk/; revision=12506
2001-08-29 00:21:44 +00:00
d671e29102 Studlycapsize all the IDs that are not. Likewise. Updated accordingly.
* Evolution-ShellComponent.idl: Studlycapsize all the IDs that are
not.
* Evolution-common.idl: Likewise.
* evolution-activity-client.c: Updated accordingly.
* evolution-shell-component.c: Likewise.
* evolution-storage.c: Likewise.
* e-activity-handler.c: Likewise.
* e-component-registry.c: Likewise.
* e-corba-storage.c: Likewise.
* e-shell-user-creatable-items-handlers.c: Likewise.

* e-local-storage.c (remove_folder): Remove unused variable.

* e-shell-view.c (update_for_current_uri): Assign zero to
`unread_count', not NULL.

* e-shell-importer.c (import_druid_finish): Remove unused
variable.

* e-shell-user-creatable-items-handler.c: #include
"e-corba-utils.h".

* e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h".

* e-shell-startup-wizard.h: #include <glib.h>

* e-summary-weather.c (weather_make_html): Make local variable
`icon_name' const.  Remove unused variable `uri'.

* e-summary.h: Reformatted in GTK+ style.
(e_summary_remove_online_connection): Added prototype.

* e-summary-preferences.c (fill_mail_shown_clist): Constify local
variable `name'.

* e-summary-mail.c: #include "e-util/e-path.h".  Updated to match
the new studlyCapsification in shell/Evolution*.idl.

* mail-local.c: Match the studlyCapsification of
shell/Evolution*.idl.

* mail-config-druid.h: Change type of `event_source' from
`Bonobo_EventSource *' to `Bonobo_EventSource'.

* mail-accounts.c (mail_delete): Remove unused local variable
`label'.

* folder-info.c (do_get_info): `#if 0' unused variables.

* gui/component/addressbook-component.c: Get rid of a warning by
initializing the closing NULL element in folder_types correctly.

* gui/component/select-names/e-select-names.c: Updated to match
the studlyCapsification of attributes in shell/Evolution*.idl.

svn path=/trunk/; revision=12495
2001-08-28 00:18:34 +00:00
bcb7c5c83e Remove the stupid "do you want me to initialize stuff?" dialog.
* e-setup.c (copy_default_stuff): Remove the stupid "do you want
me to initialize stuff?" dialog.

svn path=/trunk/; revision=12465
2001-08-24 23:07:22 +00:00
bebd05b36a Change the `selected_row_path' to be non-const. (destroy): Free it.
* e-storage-set-view.c: Change the `selected_row_path' to be
non-const.
(destroy): Free it.
(e_storage_set_view_set_current_folder): Set the selected_row_path
to be this path.
(tree_drag_begin): Free the selected_row_path and strdup() the
value we assign.

svn path=/trunk/; revision=12463
2001-08-24 22:50:14 +00:00
17a85e8669 Ooops. Save the pointer to the control for use after the view struct is
* e-shell-view.c (e_shell_view_remove_control_for_uri): Ooops.
Save the pointer to the control for use after the view struct is
freed.

svn path=/trunk/; revision=12458
2001-08-24 21:38:15 +00:00
277ddb9abe New struct View'. Replace uri_to_control' in `EShellViewPrivate' with
* e-shell-view.c: New struct `View'.  Replace `uri_to_control' in
`EShellViewPrivate' with `uri_to_view'.
(view_new): New.
(hash_forall_destroy_view): New, replacing
`hash_forall_destroy_control'.
(destroy): Updated to match the uri_to_control -> uri_to_view
changes.
(socket_destroy_cb): Likewise.
(get_view_for_uri): Renamed from `get_control_for_uri'.  Return a
View instead of a GtkWidget.
(show_existing_view): Updated to use `get_view_from_uri', get a
@view instead of a @control.
(e_shell_view_display_uri): Updated to use `uri_to_view' instead
of `uri_to_control'.
(e_shell_view_remove_control_for_uri): Likewise.

svn path=/trunk/; revision=12457
2001-08-24 21:06:29 +00:00
34f9e86684 Changed to get a @title and a @type. (update_for_current_uri): Updated
* e-shell-view.c (update_folder_title_bar): Changed to get a
@title and a @type.
(update_for_current_uri): Updated accordingly.
(update_window_icon): Get a @type instead of a @folder.
(update_for_current_uri): Updated accordingly.

svn path=/trunk/; revision=12452
2001-08-24 20:08:30 +00:00
059103efde [Fix #5978, "If a component dies, it's toolbar buttons remain".]
* e-shell-view.c (socket_destroy_cb): If the view belongs to a
toplevel storage node, get the right type information with
`e_storage_get_toplevel_node_uri()' instead of trying to get the
[non-existing] folder for it.

svn path=/trunk/; revision=12451
2001-08-24 19:38:55 +00:00
b5f2ca08cf Implement the rest of the Evolution_Wizard events
svn path=/trunk/; revision=12449
2001-08-24 19:19:35 +00:00
31850e8de9 Added accelerators for the right-click shortcut menu.
* e-shortcuts-view.c: Added accelerators for the right-click
shortcut menu.

svn path=/trunk/; revision=12448
2001-08-24 19:15:37 +00:00
99cf86d7dd Added the missing part of my patch:
#include <gal/widgets/e-unicode.h>

svn path=/trunk/; revision=12447
2001-08-24 19:12:51 +00:00
921aa25a35 Convert names of the default group and shortcuts to UTF-8.
2001-08-23  Zbigniew Chyla  <cyba@gnome.pl>

	* e-shortcuts.c (e_shortcuts_add_default_group): Convert names of the
	default group and shortcuts to UTF-8.

svn path=/trunk/; revision=12441
2001-08-24 18:22:42 +00:00
ce251b85ce Convert the name of the group to GTK+ locale before displaying it in a
2001-08-23  Zbigniew Chyla  <cyba@gnome.pl>

	* e-shortcuts-view.c (destroy_group_cb): Convert the name of the group
	to GTK+ locale before displaying it in a dialog.

svn path=/trunk/; revision=12439
2001-08-24 18:07:25 +00:00
94326a9ac8 If we get no data, don't notify the receiving component at all.
* e-storage-set-view.c (tree_drag_data_received): If we get no
data, don't notify the receiving component at all.

svn path=/trunk/; revision=12423
2001-08-23 21:28:43 +00:00
8aecd161b7 [Fix #5736, crashing when copying a message with drag and drop.]
* e-storage-set-view.c (tree_drag_data_received): Handle NULL data
gracefully.

svn path=/trunk/; revision=12422
2001-08-23 21:09:03 +00:00
bb662dceb3 If the remove_source is %TRUE and destination is a descendant of the
* e-storage.c (e_storage_async_xfer_folder): If the remove_source
is %TRUE and destination is a descendant of the parent, pass an
`E_STORAGE_CANTMOVETODESCENDANT' error code to the callback.

* e-storage.h: New value `E_STORAGE_CANTMOVETODESCENDANT' in
`EStorageResult'.

svn path=/trunk/; revision=12397
2001-08-22 21:41:32 +00:00
b6463ef46a Actually return if the folder is being moved into one of its descendants.
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Actually
return if the folder is being moved into one of its descendants.

svn path=/trunk/; revision=12395
2001-08-22 21:29:31 +00:00
26a78dd6c5 `#if 0'ed out. (make_bold): Likewise.
* e-shell-folder-title-bar.c (label_realize_callback): `#if 0'ed
out.
(make_bold): Likewise.
(e_shell_folder_title_bar_construct): Don't call it.

* e-local-storage.c (component_async_remove_folder_callback): Only
remove the directory if the component succeeds.

svn path=/trunk/; revision=12392
2001-08-22 20:49:12 +00:00
3e805202e4 Fix the improper construction of the new folder's physical URI.
2001-08-22  Peter Williams  <peterw@ximian.com>

	* e-local-storage.c (async_xfer_folder_callback): Fix the improper
	construction of the new folder's physical URI.

svn path=/trunk/; revision=12391
2001-08-22 20:30:11 +00:00
57516b50db Don't remove the folder directory here.
* e-local-storage.c (remove_folder): Don't remove the folder
directory here.
(component_async_remove_folder_callback): Remove it here instead.

svn path=/trunk/; revision=12390
2001-08-22 19:19:48 +00:00
5bfca4b535 [Fix #7775, crash trying to do New Task]
* e-shell-user-creatable-items-handler.c (verb_fn): Make sure we
don't pass NULL strings to
`GNOME_Evolution_ShellComponent_userCreateNewItem()'.

svn path=/trunk/; revision=12388
2001-08-22 18:53:47 +00:00
06def2fd56 unref the rc_style.
2001-08-21  Damon Chaplin  <damon@ximian.com>

	* e-gray-bar.c (endarken_style): unref the rc_style.

svn path=/trunk/; revision=12373
2001-08-21 23:05:01 +00:00
bd6877fa15 #include "e-shell-startup-wizard.h".
* e-shell.c: #include "e-shell-startup-wizard.h".

* e-shell-startup-wizard.h: New.

svn path=/trunk/; revision=12359
2001-08-21 20:35:13 +00:00
77ccc83ed0 Add sgmldocs.make' to EXTRA_DIST'.
* Makefile.am: Add `sgmldocs.make' to `EXTRA_DIST'.

svn path=/trunk/; revision=12358
2001-08-21 20:29:51 +00:00
ac60c7f9c9 Show an error dialog when the Evolution Mailer Wizard interface cannot be created
svn path=/trunk/; revision=12354
2001-08-21 20:25:14 +00:00
bf7641addc Fix a leak: unref the EFont after we have used it. Also, don't crash if
* e-shell-folder-title-bar.c (label_realize_callback): Fix a leak:
unref the EFont after we have used it.  Also, don't crash if
`e_font_to_gdk_font()' returns NULL.  [This should fix #7666,
Folder View crashes Evo.]

svn path=/trunk/; revision=12353
2001-08-21 20:18:49 +00:00
fa883ee48a Don't print a NULL. Crashes on Solaris
svn path=/trunk/; revision=12349
2001-08-21 19:22:12 +00:00
f3d8243e63 Do the import correctly.
svn path=/trunk/; revision=12327
2001-08-20 22:28:04 +00:00
ee21a426da Don't set the paneds' positions if the respective left-hand elements [i.e.
* e-shell-view.c (e_shell_view_load_settings): Don't set the
paneds' positions if the respective left-hand elements [i.e. the
shortcut bar and the folder bar] are hidden.
(e_shell_view_show_folder_bar): Set the paned position to zero
when hiding.
(e_shell_view_show_shortcut_bar): Likewise.

svn path=/trunk/; revision=12321
2001-08-20 19:51:59 +00:00
8346dd4f6c Don't free the returned displayname.
* e-shell-startup-wizard.c (finish_func): Don't free the returned
displayname.

svn path=/trunk/; revision=12318
2001-08-20 19:08:55 +00:00
dea477a5a1 Make sure we display a pin when we are popped up.
* e-shell-view.c (pop_up_folder_bar): Make sure we display a pin
when we are popped up.

svn path=/trunk/; revision=12259
2001-08-20 07:31:23 +00:00
fa88272dac Don't set the paned tree position.
* e-shell-view.c (setup_widgets): Don't set the paned tree
position.

svn path=/trunk/; revision=12250
2001-08-20 05:59:16 +00:00
45ca18de52 fill the corba sequence for the accepted_dnd_types.
2001-08-19  Chris Toshok  <toshok@ximian.com>

	* evolution-shell-component.c (impl__get_supported_types): fill
	the corba sequence for the accepted_dnd_types.

svn path=/trunk/; revision=12249
2001-08-20 05:49:12 +00:00
85a2968706 Don't show the vbox here. (setup_widgets): Don't show the
* e-shell-view.c (setup_storage_set_subwindow): Don't show the
vbox here.
(setup_widgets): Don't show the storage_set_view_box here.

svn path=/trunk/; revision=12246
2001-08-20 05:16:14 +00:00
d9ed7a6a63 Added display_name and description to the type.
* evolution-test-component.c: Added display_name and description
to the type.

* evolution-shell-component.c (impl__get_supported_types): Pass
`display_name' and `description' here.
(evolution_shell_component_construct): Likewise.

* evolution-shell-component.h: New members `display_name',
`description' in `EvolutionShellComponentFolderType'.

* e-component-registry.c (register_type): New args @description
and @display_name.  Pass to
`e_folder_type_registry_register_type()'.
(register_component): Pass the values returned in the sequence
from __get_supported_types.

* e-folder-type-registry.c: New members `display_name' and
`description' in `struct _FolderType'.
(folder_type_new): New args @description and @display_name.
Initialize the respective fields in the `FolderType' accordingly.
(folder_type_free): Free `display_name' and `description'.
(register_folder_type): New args @display_name, @description.
(e_folder_type_registry_register_type): New args @display_name,
@description.
(e_folder_type_registry_get_description_for_type): New.
(e_folder_type_registry_get_display_name_for_type): New.

* Evolution-ShellComponent.idl: Added `display_name' and
`description' fields to the `FolderType' struct.

svn path=/trunk/; revision=12245
2001-08-20 04:42:04 +00:00