diff options
author | Dan Winship <danw@src.gnome.org> | 2001-01-20 05:13:25 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-01-20 05:13:25 +0800 |
commit | ad68d3656f56b4a4f8194f9cc68721769041260f (patch) | |
tree | c8658e56094b61433c9e2a6de2ba8edc4161d0e1 /shell | |
parent | 9a33302fa098fa5a93e7919c32a2aa67a7e092da (diff) | |
download | gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.gz gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.bz2 gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.lz gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.xz gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.zst gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.zip |
New function. Obvious.
* evolution-storage.c (evolution_storage_folder_exists): New
function. Obvious.
svn path=/trunk/; revision=7654
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/evolution-storage.c | 16 | ||||
-rw-r--r-- | shell/evolution-storage.h | 2 |
3 files changed, 23 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 0fd988508e..b33f999574 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-01-19 Dan Winship <danw@ximian.com> + + * evolution-storage.c (evolution_storage_folder_exists): New + function. Obvious. + 2001-01-19 Jason Leach <jasonleach@usa.net> (Bug #883: Shortcut bar does not update when a folders display diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c index c87c031cd0..75b15ee25e 100644 --- a/shell/evolution-storage.c +++ b/shell/evolution-storage.c @@ -734,5 +734,21 @@ evolution_storage_removed_folder (EvolutionStorage *evolution_storage, return result; } +gboolean +evolution_storage_folder_exists (EvolutionStorage *evolution_storage, + const char *path) +{ + EvolutionStoragePrivate *priv; + + g_return_val_if_fail (EVOLUTION_IS_STORAGE (evolution_storage), + EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER); + g_return_val_if_fail (path != NULL, EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER); + g_return_val_if_fail (g_path_is_absolute (path), EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER); + + priv = evolution_storage->priv; + + return e_folder_tree_get_folder (priv->folder_tree, path) != NULL; +} + E_MAKE_TYPE (evolution_storage, "EvolutionStorage", EvolutionStorage, class_init, init, PARENT_TYPE) diff --git a/shell/evolution-storage.h b/shell/evolution-storage.h index 824c7ea12a..8336f14adc 100644 --- a/shell/evolution-storage.h +++ b/shell/evolution-storage.h @@ -105,6 +105,8 @@ EvolutionStorageResult evolution_storage_update_folder_by_uri (EvolutionStorage gboolean highlighted); EvolutionStorageResult evolution_storage_removed_folder (EvolutionStorage *evolution_storage, const char *path); +gboolean evolution_storage_folder_exists (EvolutionStorage *evolution_storage, + const char *path); #ifdef __cplusplus } |