diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2009-08-27 03:51:08 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@gnome.org> | 2009-08-27 03:51:48 +0800 |
commit | a047dbf9fccf025429b270a5288f453eb10c2deb (patch) | |
tree | 4080359b0f9862aa591f9e936a9b4cce2e2134ca | |
parent | dc839e11745374f7e1d515c68948b820d029edf2 (diff) | |
download | gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.tar gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.tar.gz gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.tar.bz2 gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.tar.lz gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.tar.xz gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.tar.zst gsoc2013-evolution-a047dbf9fccf025429b270a5288f453eb10c2deb.zip |
Fix return types to match the type of function
-rw-r--r-- | e-util/e-util-labels.c | 6 | ||||
-rw-r--r-- | 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 c4b4edde3f..eeab09fe59 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 c6e3e5f833..0a2ce6204e 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")); |