Commit Graph

15 Commits

Author SHA1 Message Date
c20675d201 Don't leak parent_path, even on error
* e-folder-tree.c (e_folder_tree_add): Don't leak parent_path,
        even on error

svn path=/trunk/; revision=21498
2003-06-20 14:37:29 +00:00
d2d0eebd74 Removed unused variable.
* evolution-storage-set-view.c
(impl_StorageSetView__set_checkedFolders): Removed unused
variable.

* e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct):
Removed unused variable.

	* e-storage.c
		(e_storage_path_is_absolute)
		(e_storage_path_is_relative)
		(e_storage_async_xfer_folder)
	* e-storage-set.c
		(make_full_path)
		(get_storage_for_path)
		(signal_new_folder_for_all_folders_under_paths)
		(signal_new_folder_for_all_folders_in_storage)
		(e_storage_set_get_path_for_physical_uri)
	* e-storage-set-view.c
		(storage_sort_callback)
		(new_storage_cb)
		(removed_storage_cb)
		(new_folder_cb)
	* e-shortcuts-view.c
		(get_shortcut_info):
	* e-shell-view.c
		(handle_current_folder_removed)
	* e-shell-utils.c
		(e_shell_folder_name_is_valid):
	* e-local-storage.c
		(construct):
	* e-folder-tree.c
		(get_parent_path)
		(get_parent_path)
		(e_folder_tree_destroy)
		(e_folder_tree_add)
		(e_folder_tree_foreach)
	* e-folder-dnd-bridge.c
		(handle_data_received_path)
	* evolution-storage.c
		(make_full_uri):

* e-shell-constants.h: New #defines E_PATH_SEPARATOR and
E_PATH_SEPARATOR_S.

* e-local-storage.c (load_folder): Don't add the folder if its
type isn't registered.

svn path=/trunk/; revision=17510
2002-07-18 18:16:18 +00:00
2017b2dcec add every folder to the sequence except the root folder
2002-05-07  JP Rosevear  <jpr@ximian.com>

	* evolution-storage.c (get_folder_list_foreach): add every folder
	to the sequence except the root folder
	(impl_Storage_get_folder_list): implement corba method
	(evolution_storage_get_epv): set new method implementation

	* evolution-folder-selector-button.h: fix signal prototype

	* e-folder-tree.h: new proto

	* e-folder-tree.c (e_folder_tree_get_count): count nodes
	(count_nodes): bump count foreach path

	* e-corba-storage-registry.c
	(impl_StorageRegistry_getStorageList): implement idl method
	(corba_class_init): set epv method

	* Evolution-Storage.idl: add getStorageList and getFolderList
	methods

svn path=/trunk/; revision=16708
2002-05-07 19:53:35 +00:00
7065f6dba3 Make storages-with-toplevel-views less of a hack.
* e-folder-tree.c (e_folder_tree_add): Allow the caller to "add" a
	root folder, if the existing root folder has no children.
	(e_folder_tree_new): Use e_folder_tree_add to create the root
	folder, since it can do that now.

	* e-storage.c: (e_storage_construct): Replace toplevel_node_uri
	and toplevel_node_type args with root_folder.
	(e_storage_new): Likewise.
	(*): Remove toplevel uri/type stuff everywhere. Also remove
	display_name since now we will use the name of the root folder for
	that.

	* evolution-storage.c: Remove toplevel uri/type stuff everywhere.

	* e-local-storage.c (construct): Pass root_folder to
	e_storage_construct instead of toplevel uri/type.
	Also, evolution_storage_new no longer takes toplevel uri/type.

	* e-corba-storage.c (e_corba_storage_construct): Out with toplevel
	uri/type, in with root_folder.
	(e_corba_storage_new): Remove toplevel uri/type.

	* e-shell.c (setup_local_storage): Create a top-level folder of
	type "summary" for the Summary storage.

	* e-storage-set-view.c (set_e_shortcut_selection): Remove
	special-case for storages.
	(etree_icon_at): Remove special case for figuring out storage
	icons (but leave the code that makes the icon disappear once the
	storage is opened).
	(etree_value_at): Remove special case for storage names. (But
	still make storages always bold.) Remove unused special-case code
	for Summary.

	* e-shortcuts.c (load_shortcuts): Remove special case for
	storages, reorganize a bit.

	* e-shortcuts-view.c (get_shortcut_info): Remove special case for
	storages.

	* e-shell-view.c (update_for_current_uri): Remove special case for
	storages.
	(socket_destroy_cb): Likewise.
	(get_type_for_storage): No longer needed.
	(get_view_for_uri): No longer needs to special-case storages (but
	add a special case for folders of type "noselect", to make them
	unselectable like storages-without-toplevel-views used to be).

	* e-storage-set.c (get_storage_for_path): If passed "/foo", return
	"/" as subpath_return so e_storage_set_get_folder will DTRT in the
	NWO.

	* Evolution-Storage.idl (addStorage): Remove the toplevel_node_uri
	and toplevel_node_type arguments.

	* e-corba-storage-registry.c (impl_StorageRegistry_addStorage):
	Likewise.

svn path=/trunk/; revision=15965
2002-03-07 18:26:57 +00:00
a40ab7c842 Fix the license text to make sense.
svn path=/trunk/; revision=14192
2001-10-27 01:09:28 +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
02ff1e11ae set the subfolder's parent to NULL so the subfolder list doesn't change
2001-05-14  jacob berkman  <jacob@ximian.com>

	* e-folder-tree.c (remove_folder): set the subfolder's parent to
	NULL so the subfolder list doesn't change whilst we are using it
	(folder_remove_subfolder): this function didn't used to work at
	all

svn path=/trunk/; revision=9795
2001-05-14 18:58:39 +00:00
65464a8165 #include <glib.h> and move corresponding local includes to the top.
2001-04-25  Kjartan Maraas  <kmaraas@gnome.org>

	* e-component-register.c, e-corba-storage.c, e-folder-tree.c,
	e-folder-tree.h, e-folder.c, e-local-folder.c, e-shell.c,
	e-shortcuts-view-model.c, e-shortcuts.c, e-splash.c,
	e-storage-set-view.c, e-storage-set.c, evolution-local-storage.c,
	evolution-shell-component-client.c, evolution-shell-component.c,
	evolution-storage.[ch], importer/evolution-importer-client.[ch],
	importer/evolution-importer-listener.[ch],
	importer/evolution-importer.[ch],
	importer/evolution-intelligent-importer.[ch], importer/intelligent.c:
	#include <glib.h> and move corresponding local includes to the top.

svn path=/trunk/; revision=9556
2001-04-25 07:55:21 +00:00
d6f661cd37 Remove/replace unneeded includes and move around stuff so that system
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* e-component-registry.c: Remove/replace  unneeded includes and
	move around stuff so that system headers are included first.
	* e-corba-storage.c: Replace #include <bonobo.h>
	* e-folder-tree.c: Shuffle.
	* e-folder.c: Remove #include <gtk/gtkobject.h>
	* e-local-storage.c: Replace #include <gnome.h> and <bonobo.h>
	* e-setup.c: Replace #include <glib.h> and <gnome.h>
	* e-shell-folder-creation-dialog.c: Replace #include <gnome.h>
	* e-shell-folder-title-bar.c: Replace <gnome.h>
	* e-shell-utils.c: Same here.
	* e-shell-view-menu.c: Same here (and <bonobo.h>)
	* e-shell-view.c: Replace <gnome.h> and <bonobo.h>
	* e-shell.c: Replace <gnome.h>
	* e-shell.h: Shuffle.
	* e-shortcuts-view-model.c: Replace <gnome.h>
	* e-shortcuts-view.c: Remove #include <gnome.h>
	* e-shortcuts.c: Move <string.h> up.
	* e-splash.c: Replace <gnome.h>
	* e-storage-set-view.c: Replace <gnome.h>
	* e-storage-set.c: Shuffle
	* e-storage.c: Replace <gnome.h>
	* evolution-local-storage.c: Same here
	* evolution-local-storage.h: And here.
	* evolution-session.c: Same here too.
	* evolution-session.h: Replace <bonobo.h>
	* evolution-shell-client.c: Here too.
	* evolution-shell-component-client.c: Shuffle.
	* evolution-shell-component.c: Replace <bonobo.h>
	* evolution-shell-view.c: Remove #include <bonobo.h>
	* evolution-shell-view.h: Replace <gnome.h>
	* evolution-storage-listener.c: Replace <gnome.h> and <bonobo.h>
	* evolution-storage-listener.h: Replace <gnome.h>
	* evolution-storage-set-view-listener.c: Replace <gnome.h> and <bonobo.h>
	* evolution-storage-set-view.c: Remove <gnome.h>
	* evolution-storage.c: Replace <bonobo.h>
	* main.c: Replace <gnome.h> and <bonobo.h>
	* importer/importer.c: Replace <gnome.h>
	* importer/intelligent.c: Replace <gnome.h>. Add prototype for

svn path=/trunk/; revision=9019
2001-03-29 18:39:21 +00:00
0b8f99546e Update copyrights for files modified in year 2001.
svn path=/trunk/; revision=7872
2001-01-28 10:46:00 +00:00
1979122071 Remove all instances of non-portable macro `__FUNCTION__' from the
shell.

svn path=/trunk/; revision=7841
2001-01-26 21:02:21 +00:00
4e98233a4d Fix the logic for updating the shortuct labels when the display names
of the corresponding folders change, so that it doesn't crash.

I have removed the redundant "folder_updated" signal on
`ELocalStorage' and changed EStorage so that it emits "updated_folder"
automatically when any of the folders changes its properties.

svn path=/trunk/; revision=7770
2001-01-24 00:56:21 +00:00
2b9fedff8b Make EvolutionStorage' and ELocalstorage' actually update the CORBA
listeners and fix a bug with the creation of the
`EvolutionStorageListener' servant.

svn path=/trunk/; revision=5334
2000-09-11 18:28:22 +00:00
c884f5a014 Fix `e_folder_tree_get_folder()' so that it returns NULL (instead of
segfaulting) if there is no folder at the specified @path.

svn path=/trunk/; revision=5276
2000-09-08 21:17:34 +00:00
ae4764c108 Implemented a new EFolderTree' object. Make EStorage' use it
instead of doing the folder tree bookkeeping by itself.  Fix my broken
fix to Clahey's broken warning fix.

svn path=/trunk/; revision=5272
2000-09-08 19:15:32 +00:00