[evolution] Fix return types to match the type of function
- From: Kjartan Maraas <kmaraas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Fix return types to match the type of function
- Date: Wed, 26 Aug 2009 20:00:40 +0000 (UTC)
commit ab6d59a3828f1b1b170d3827482ad37d89521fdb
Author: Kjartan Maraas <kmaraas gnome org>
Date: Wed Aug 26 21:51:08 2009 +0200
Fix return types to match the type of function
e-util/e-util-labels.c | 6 +++---
mail/em-folder-tree-model.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-util-labels.c b/e-util/e-util-labels.c
index c4b4edd..eeab09f 100644
--- a/e-util/e-util-labels.c
+++ b/e-util/e-util-labels.c
@@ -539,18 +539,18 @@ e_util_labels_get_color (GSList *labels, const gchar *tag, GdkColor *color)
* @param labels Cache of labels from call of @ref e_util_labels_parse.
* The returned pointer will be taken from this list, so it's alive as long as the list.
* @param tag Tag of the label of our interest.
- * @return String representation of that label, or NULL, is no such label exists.
+ * @return String representation of that label, or NULL, if no such label exists.
**/
const gchar *
e_util_labels_get_color_str (GSList *labels, const gchar *tag)
{
EUtilLabel *label;
- g_return_val_if_fail (tag != NULL, FALSE);
+ g_return_val_if_fail (tag != NULL, NULL);
label = find_label (labels, tag);
if (!label)
- return FALSE;
+ return NULL;
return label->colour;
}
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index c6e3e5f..0a2ce62 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1308,9 +1308,9 @@ em_folder_tree_model_get_folder_name (EMFolderTreeModel *model, CamelStore *stor
GtkTreeIter iter;
gchar *name = NULL;
- g_return_val_if_fail (EM_IS_FOLDER_TREE_MODEL (model), FALSE);
- g_return_val_if_fail (CAMEL_IS_STORE (store), FALSE);
- g_return_val_if_fail (full != NULL, FALSE);
+ g_return_val_if_fail (EM_IS_FOLDER_TREE_MODEL (model), NULL);
+ g_return_val_if_fail (CAMEL_IS_STORE (store), NULL);
+ g_return_val_if_fail (full != NULL, NULL);
if (!(si = g_hash_table_lookup (model->store_hash, store))) {
u(printf(" can't find store\n"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]