Commit Graph

620 Commits

Author SHA1 Message Date
23587cb770 Don't hardcode/build a help URI here, use gnome_help_display() instead,
2001-08-15  Jason Leach  <jleach@ximian.com>

	* e-shell-view-menu.c (command_help): Don't hardcode/build a help
	URI here, use gnome_help_display() instead, which will figure out
	what language the user needs, etc.
	(help_verbs): Adapt these menu items to above changes, they don't
	need to pass "evolution/foo.html" to command_help, just
	"foo.html".

svn path=/trunk/; revision=12072
2001-08-15 20:28:21 +00:00
9215367892 Emit a "changed" signal at the end of this function. Bug #7232.
2001-08-15  Jason Leach  <jleach@ximian.com>

	* e-folder.c (e_folder_set_child_highlight): Emit a "changed"
	signal at the end of this function.  Bug #7232.

svn path=/trunk/; revision=12063
2001-08-15 19:36:52 +00:00
9aaa5ef3f1 Changed help menus to point to evolution/ and not evolution-guide/.
2001-08-15  Aaron Weber  <aaron@ximian.com>

	* e-shell-view-menu.c (command_about_box): Changed help menus to
	point to evolution/ and not evolution-guide/.

svn path=/trunk/; revision=12062
2001-08-15 19:35:47 +00:00
df89536d52 s/My Evolution/Summary/
svn path=/trunk/; revision=12058
2001-08-15 18:10:02 +00:00
ea623b5543 Add a new IDL function, Evolution::Shell::setLineStatus (in boolean). Bug
2001-08-15  Jason Leach  <jleach@ximian.com>

	* Evolution-Shell.idl: Add a new IDL function,
	Evolution::Shell::setLineStatus (in boolean).  Bug #3030.

	* e-shell.c (impl_Shell_setLineStatus): Implementation of the
	above.

	* evolution-shell-client.c
	(evolution_shell_client_set_line_status): A wrapper function for
	the above, this is what a component can call to set the shell
	on/offline.

svn path=/trunk/; revision=12057
2001-08-15 17:03:00 +00:00
2509462042 Use the passed-in unread_count.
* evolution-storage.c (evolution_storage_new_folder): Use the
	passed-in unread_count.

	* e-corba-storage.c (impl_StorageListener_notifyFolderCreated):
	Pass the passed-in unread_count to e_storage_new_folder.

svn path=/trunk/; revision=12018
2001-08-14 16:37:59 +00:00
5f9bdb3041 Add missing entry for `endarken_style()'.
svn path=/trunk/; revision=11979
2001-08-13 23:41:51 +00:00
6445ee2089 Chain to the parent class.
* e-gray-bar.c (impl_style_set): Chain to the parent class.

svn path=/trunk/; revision=11977
2001-08-13 23:32:38 +00:00
d36c3b0e20 Changed the "Evolution has found the following data sources" text in the
2001-08-13  Anna Marie Dirks  <anna@ximian.com>

	* importer/intelligent.c : Changed the "Evolution has found the
	following data sources" text in the import dialog to "Evolution
	can import data from the following files" in an attempt to
	increase user-friendliness.

svn path=/trunk/; revision=11976
2001-08-13 23:21:16 +00:00
6e2db6b3bd Revert the previous e-gray-bar patch as it was, um, wrong.
svn path=/trunk/; revision=11974
2001-08-13 22:50:06 +00:00
778f9780be Add some little padding to the title bar so it looks nicer.
* e-shell-view.c (setup_widgets): Add some little padding to the
title bar so it looks nicer.

svn path=/trunk/; revision=11970
2001-08-13 22:30:12 +00:00
681cee1a1d Removed. (class_init): Don't override that method anymore.
* e-gray-bar.c (impl_style_set): Removed.
(class_init): Don't override that method anymore.
(e_gray_bar_new): Call `endarken_style()' here instead.

svn path=/trunk/; revision=11967
2001-08-13 22:15:45 +00:00
febc97f6f5 [Fix #7109, Evolution crashes when the splash screen dialog is
killed by clicking the "X" button.]

* e-shell.c (e_shell_construct): Connect
`gtk_widget_hide_on_delete()' correctly.

svn path=/trunk/; revision=11962
2001-08-13 21:33:09 +00:00
18d674a7f6 Changed all instances of "druid" and "wizard" to "assistant".
2001-08-13  Anna Marie Dirks  <anna@ximian.com>
	* importer/import.glade : Changed all instances of "druid"
	and "wizard" to "assistant".

svn path=/trunk/; revision=11958
2001-08-13 20:40:58 +00:00
abe99cb78c Replaced the chained if' statements with a switch' statement for
* main.c (idle_cb): Replaced the chained `if' statements with a
`switch' statement for clarity.  Also, don't ref the created
shell, and release the object reference properly.

svn path=/trunk/; revision=11956
2001-08-13 20:25:21 +00:00
5f73032707 set_release on the sequence, not the buffer.
* e-corba-shortcuts.c (shortcut_list_to_corba): set_release on the
sequence, not the buffer.

svn path=/trunk/; revision=11955
2001-08-13 20:18:37 +00:00
6933a8dc80 Restore the shell reffing/unreffing here.
* e-shell.c (view_destroy_cb): Restore the shell reffing/unreffing
here.

svn path=/trunk/; revision=11954
2001-08-13 20:16:32 +00:00
6d218ecc3a Restore the shell reffing/unreffing here.
* e-shell.c (view_destroy_cb): Restore the shell reffing/unreffing
here.

svn path=/trunk/; revision=11953
2001-08-13 20:16:20 +00:00
5aaf5871d0 Don't cause an abort if the shortcut group is empty.
2001-08-13  Peter Williams  <peterw@ximian.com>

	* e-corba-shortcuts.c (shortcut_list_to_corba): Don't cause an abort
	if the shortcut group is empty.

svn path=/trunk/; revision=11952
2001-08-13 20:06:27 +00:00
da4e562c5e Add `Evolution-common.idl'.
* Makefile.am (IDLS): Add `Evolution-common.idl'.

svn path=/trunk/; revision=11947
2001-08-13 18:43:54 +00:00
c5f5808c73 Initialize priv->user_creatable_item_types. (Score: g_new: 0, g_new0: 2)
* evolution-shell-component.c (init): Initialize
	priv->user_creatable_item_types. (Score: g_new: 0, g_new0: 2)

svn path=/trunk/; revision=11946
2001-08-13 18:36:36 +00:00
2c27394b7f Remove unused variable @folder.
2001-08-13  Jason Leach  <jleach@ximian.com>

	* e-local-storage.c (remove_folder_directory): Remove unused
	variable @folder.

	* e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar):
	Give icons to shortcuts added via Right-click->Add to Shortcut
	Bar.

svn path=/trunk/; revision=11944
2001-08-13 17:59:52 +00:00
988c166c71 Grab focus on the storage set view.
* e-shell-folder-selection-dialog.c
(e_shell_folder_selection_dialog_construct): Grab focus on the
storage set view.

svn path=/trunk/; revision=11937
2001-08-12 17:32:53 +00:00
15a265e749 Use utf 8 to set the name.
* e-local-storage.c (setup_folder_as_stock): Use utf 8 to set the
name.

svn path=/trunk/; revision=11936
2001-08-12 17:02:06 +00:00
ec28908ec9 Remove debugging message.
* e-storage-set-view.c (etree_value_at): Remove debugging message.

svn path=/trunk/; revision=11934
2001-08-12 15:38:28 +00:00
1285912f04 Put the folder title bar into an EGrayBar.
* e-shell-view.c (setup_widgets): Put the folder title bar into an
EGrayBar.

* e-gray-bar.c: New.
* e-gray-bar.h: New.

svn path=/trunk/; revision=11932
2001-08-12 15:34:53 +00:00
51f77f649b [Finally! Fix #413, "Support for stock folders", and #786, "i18n:
default folder names are not translated".]

* e-local-storage.c (setup_folder_as_stock): New helper function.
(setup_stock_folders): Use it to set the default folders as
"stock" folders.  This will give them a translated name and also
make them unmodifiable.
(load_all_folders): Call `setup_stock_folders()' here.

* e-shell-folder-commands.c (delete_cb): Display an error dialog
if the deletion fails.
(e_shell_command_delete_folder): Pass the shell view to the delete
callback.

* e-storage.c (e_storage_result_to_string): Add a string for
`E_STORAGE_CANTCHANGESTOCKFOLDER' as well.

* e-local-storage.c (remove_folder): Don't allow a stock folder to
be removed.
(impl_async_xfer_folder): Don't allow a stock folder to be moved.

* e-corba-storage.c (async_remove_folder): Don't allow a stock
folder to be removed.

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

* e-folder.c: Make member `self_highlight' a :1 int.  New :1 int
member `is_stock'.
(init): Init `is_stock' to %FALSE.
(e_folder_set_is_stock): New.
(e_folder_get_is_stock): New.

* e-local-storage.c (bonobo_interface_update_folder_cb): For now,
don't set the display name.

svn path=/trunk/; revision=11931
2001-08-12 14:00:02 +00:00
0ea43e6ee7 `#if 0'ed out. (rename_cb): Likewise.
* e-shell-folder-commands.c (rename_clicked): `#if 0'ed out.
(rename_cb): Likewise.

* evolution-shell-component.c (destroy): Fixed a confusion between
GList and GSList.

svn path=/trunk/; revision=11876
2001-08-10 09:13:52 +00:00
513bfe0292 Only free the `type_list' if not NULL. (setup_menu_xml): Deal with the
* e-shell-user-creatable-items-handler.c (component_free): Only
free the `type_list' if not NULL.
(setup_menu_xml): Deal with the case of `type_list' being NULL
gracefully.
(verb_fn): Same here.
(add_verbs_to_ui_component): Likewise.

svn path=/trunk/; revision=11873
2001-08-10 05:22:02 +00:00
5b9b2f83d3 [Fix #6787, Removing a storage with children and then re-adding it
causes a crash.]

* e-storage-set-view.c (convert_corba_drag_action_set_to_gdk):
Removed `#if 0'ed function.
(etree_node_destroy_func): New destroy function.
(e_storage_set_view_construct): Set this as the new destroy
function on the ETreeMemory.

svn path=/trunk/; revision=11869
2001-08-10 04:34:11 +00:00
d471640fe8 Updated to display the parent folder's URI and its type as well.
* evolution-test-component.c (user_create_new_item_callback):
Updated to display the parent folder's URI and its type as well.

* evolution-shell-component.c (impl_userCreateNewItem): Updated to
get the @parent_folder_physical_uri and the @parent_folder_type.
(class_init): Update the "user_create_new_item" signal to have
@parent_folder_physical_uri and @parent_folder_type args.

* e-shell-view.c (get_type_for_folder): Don't bork on a NULL
@physical_uri_return.
(e_shell_view_get_current_physical_uri): New.
(e_shell_view_get_current_folder_type): New.

* e-shell-user-creatable-items-handler.c
(e_shell_user_creatable_items_handler_setup_menus): Replace
@ui_component arg with a @shell_view arg.  Set it on the
UIComponent using gtk_object_set_data().
(verb_fn): Pass the type and physical URI of the current folder;
retrieve that from the shell_view got with gtk_object_get_data().

* Evolution-ShellComponent.idl
(userCreateNewItem): New args @parent_folder_uri,
@parent_folder_type.

svn path=/trunk/; revision=11863
2001-08-10 01:07:46 +00:00
8aeb5d2034 Cast the toplevel to be passed to `e_request_string()' to GtkWindow, not
* e-shortcuts-view.c (show_new_group_dialog): Cast the toplevel to
be passed to `e_request_string()' to GtkWindow, not GtkWidget.
Also, remove unused variables.
(get_efolder_from_shortcut): Constify @item_url.
(get_storage_set_path_from_uri): Removed.

* evolution-shell-component.c (destroy): `p' shall be a GList, not
a GSList.

svn path=/trunk/; revision=11857
2001-08-10 00:15:46 +00:00
20801a94aa Add the menu items using the EShellUserCreatableItemsHandler.
* e-shell-view.c (e_shell_view_construct): Add the menu items
using the EShellUserCreatableItemsHandler.

* e-shell-user-creatable-items-handler.c: New.
* e-shell-user-creatable-items-handler.h: New.

* e-shell.c: New member `user_creatable_items_handler' in
`EShellPrivate'.
(init): Initialize to NULL.
(destroy): Unref.
(e_shell_construct): Create here.
(e_shell_get_user_creatable_items_handler): New accessor.
(setup_components): Add the registered components to the
user_creatable_items_handler.

* evolution-test-component.c (factory_fn): Add a couple sample
user-creatable items.
(user_create_new_item_callback): New callback for the
"user_create_new_item" signal on the EvolutionShellComponent.
(factory_fn): Connect.

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

* evolution-shell-component.c: New enum value
`USER_CREATE_NEW_ITEM'.  New member `user_create_item_types' in
`_EvolutionShellComponentPrivate'.
(init): Init to NULL.
(impl_destroy): Free it.
(user_creatable_item_type_free): New helper function.
(user_creatable_item_type_new): New helper function.
(impl_userCreateNewItem): New, implementation for
::userCreateNewItem.
(class_init): Install the "user_create_new_item" signal and the
userCreateNewItem impl.
(impl__get_external_uri_schemas): Renamed from
`impl_ShellComponent__get_external_uri_schemas'.
(impl___get_supported_types): Renamed from
`impl_ShellComponent__get_supported_types'.
(impl__get_user_creatable_item_types): New, implementation for the
`user_creatable_item_types' attribute.
(class_init): Install it.
(evolution_shell_component_add_user_creatable_item): New.

* evolution-shell-component.h: Added signal
`user_create_new_item'.

* Evolution-ShellComponent.idl: Added typedefs
`UserCreatableItemType', `UserCreatableItemTypeList'.  New
attribute `user_creatable_item_types'.
(userCreateNewItem): New.

svn path=/trunk/; revision=11849
2001-08-09 23:37:56 +00:00
2f419416b8 Chain to the destroy handler in the parent class!
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* e-component-registry.c (destroy): Chain to the destroy handler
	in the parent class!

	* e-shortcuts-view-model.c (impl_destroy): Likewise.  Sigh.

svn path=/trunk/; revision=11818
2001-08-09 06:23:13 +00:00
31047e36fe [Fixes, among other things, #5705, "Ampersands not handled
correctly in drag + drop".  Thanks to Nat for actually discovering
the problem.]

* e-shortcuts.c (save_shortcuts): Use `xmlNewTextChild()' instead
of `xmlNewChild()'.

* e-local-folder.c (save_metadata): Use `xmlNewTextChild' instead
of `xmlNewChild()'.

svn path=/trunk/; revision=11783
2001-08-08 11:54:51 +00:00
8a3a5c7b9a Set the release flag on the sequence, and CORBA_string_dup() the strings
* evolution-shell-component.c
(fill_corba_sequence_from_null_terminated_string_array): Set the
release flag on the sequence, and CORBA_string_dup() the strings
anyway.

svn path=/trunk/; revision=11781
2001-08-08 10:47:48 +00:00
588f0d537f Set the release flag on the returned folder type list too.
* evolution-shell-component.c
(impl_ShellComponent__get_supported_types): Set the release flag
on the returned folder type list too.

* evolution-activity-client.c (create_icon_from_pixbuf): Set the
release flag on the sequence, not the struct that contains it.

svn path=/trunk/; revision=11779
2001-08-08 10:18:41 +00:00
bb74dae1ce Set the release flag for the newly allocated sequence.
* e-corba-shortcuts.c (shortcut_list_to_corba): Set the release
flag for the newly allocated sequence.

* e-activity-handler.c (impl_operationStarted): Unref the
icon_pixbuf.

* e-task-widget.c (impl_destroy): g_free the private struct.

svn path=/trunk/; revision=11778
2001-08-08 09:56:34 +00:00
119cea086d clarify last entry
svn path=/trunk/; revision=11776
2001-08-08 09:40:32 +00:00
98bb9f7348 Set the icon for the folder tree correctly.
2001-08-08  Jason Leach  <jleach@ximian.com>

	* e-storage-set-view.c (etree_icon_at): Set the icon for the
	folder tree correctly.

svn path=/trunk/; revision=11775
2001-08-08 09:40:02 +00:00
e835aa2faf Fill the CORBA sequence once.
* evolution-shell-component.c
(impl_ShellComponent__get_supported_types): Fill the CORBA
sequence once.

* e-activity-handler.c (activity_info_free): Unref the icon.

svn path=/trunk/; revision=11773
2001-08-08 09:38:46 +00:00
3f704068b6 Sigh. If the function says "prepend", of course the function to call is
* e-task-bar.c (e_task_bar_prepend_task): Sigh.  If the function
says "prepend", of course the function to call is
`g_list_prepend()', not `g_list_append()'.  You dumbass.

svn path=/trunk/; revision=11771
2001-08-08 09:23:34 +00:00
91fe573ce4 Set the sensitivity for the OK button when a storage is selected too. Bug
2001-08-08  Jason Leach  <jleach@ximian.com>

	* e-shell-folder-creation-dialog.c
	(storage_set_view_storage_selected_cb): Set the sensitivity for
	the OK button when a storage is selected too.  Bug #6473.

svn path=/trunk/; revision=11765
2001-08-08 06:56:22 +00:00
da776b9652 Set the release flag on the returned icon to %TRUE.
* evolution-activity-client.c (create_icon_from_pixbuf): Set the
release flag on the returned icon to %TRUE.

svn path=/trunk/; revision=11764
2001-08-08 06:43:19 +00:00
a3075377cc If the shortcut points to some folder in the storage set, get the type
* e-shortcuts.c (load_shortcuts): If the shortcut points to some
folder in the storage set, get the type from it.

* e-storage-set.c (signal_new_folder_for_all_folders_under_paths):
New helper function.
(signal_new_folder_for_all_folders_in_storage): New helper
function.
(e_storage_set_add_storage): Call the latter to emit a
"new_folder" signal for all the folders contained in the newly
added storage.

svn path=/trunk/; revision=11750
2001-08-07 23:16:30 +00:00
3bc73b6a38 [This should fix #5407, application crash on re-opening.]
* e-shell.c (e_shell_construct): Call
`gtk_widget_hide_on_delete()' on the splash.

* e-splash.c (e_splash_add_icon): Don't check for destruction
here.
(e_splash_set_icon_highlight): Not even here.
(button_press_event): Use a GTK+ cast.

svn path=/trunk/; revision=11743
2001-08-07 21:47:25 +00:00
6feb0b5e5c [Updated the shortcuts view implementation to set the icons on a
per-shortcut basis (instead of a per-URL basis) according to the
changes in the EShortcutBar API.]

* e-shortcuts-view-model.c (load_group_into_model): Get the icon
from the folder type registry.
(shortcuts_new_shortcut_cb): Likewise.
(shortcuts_update_shortcut_cb): Likewise.

* e-shortcuts-view.c (icon_callback): Removed.
(e_shortcuts_view_construct): Don't set the icon callback anymore.

svn path=/trunk/; revision=11741
2001-08-07 21:13:52 +00:00
d4b5090830 Don't use a leaky hash to get folder names with unread count, use
2001-08-07  Jason Leach  <jleach@ximian.com>

	* e-storage-set-view.c (etree_value_at): Don't use a leaky hash to
	get folder names with unread count, use gtk_object_set_data_full
	and gtk_object_get_data on the EFolder.
	(etree_icon_at): Give the "My Evolution" storage an icon through a
	non-generic way.  Will be replaced by a generic method when other
	storages get icons too.

svn path=/trunk/; revision=11735
2001-08-07 18:33:57 +00:00
db2a3227a2 Free the CORBA version of the animated icon.
* evolution-activity-client.c
(evolution_activity_client_construct): Free the CORBA version of
the animated icon.

svn path=/trunk/; revision=11731
2001-08-07 17:28:08 +00:00
40e6b9ec16 Unref the listener when done.
2001-08-07  Not Zed  <NotZed@Ximian.com>

        * evolution-activity-client.c (impl_destroy): Unref the listener
        when done.

svn path=/trunk/; revision=11725
2001-08-07 07:58:36 +00:00