[evolution] Fix return values in a few functions
- From: Kjartan Maraas <kmaraas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Fix return values in a few functions
- Date: Tue, 21 Jan 2014 20:35:43 +0000 (UTC)
commit 51b3d7a000b3c5ff9ebadaaf6ea42857b888c483
Author: Kjartan Maraas <kmaraas gnome org>
Date: Wed Oct 30 18:18:55 2013 +0100
Fix return values in a few functions
e-util/e-buffer-tagger.c | 2 +-
e-util/e-filter-part.c | 6 +++---
e-util/e-filter-rule.c | 2 +-
e-util/e-web-view-gtkhtml.c | 6 +++---
e-util/e-web-view.c | 6 +++---
modules/composer-autosave/e-autosave-utils.c | 2 +-
6 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/e-util/e-buffer-tagger.c b/e-util/e-buffer-tagger.c
index 250c4ed..d79ef2f 100644
--- a/e-util/e-buffer-tagger.c
+++ b/e-util/e-buffer-tagger.c
@@ -222,7 +222,7 @@ get_url_at_iter (GtkTextBuffer *buffer,
tag_table = gtk_text_buffer_get_tag_table (buffer);
tag = gtk_text_tag_table_lookup (tag_table, E_BUFFER_TAGGER_LINK_TAG);
- g_return_val_if_fail (tag != NULL, FALSE);
+ g_return_val_if_fail (tag != NULL, NULL);
if (get_tag_bounds (iter, tag, &start, &end))
url = gtk_text_iter_get_text (&start, &end);
diff --git a/e-util/e-filter-part.c b/e-util/e-filter-part.c
index 00ab7a7..b36a81e 100644
--- a/e-util/e-filter-part.c
+++ b/e-util/e-filter-part.c
@@ -148,9 +148,9 @@ e_filter_part_xml_create (EFilterPart *part,
gchar *type, *str;
EFilterElement *el;
- g_return_val_if_fail (E_IS_FILTER_PART (part), FALSE);
- g_return_val_if_fail (node != NULL, FALSE);
- g_return_val_if_fail (E_IS_RULE_CONTEXT (context), FALSE);
+ g_return_val_if_fail (E_IS_FILTER_PART (part), 0);
+ g_return_val_if_fail (node != NULL, 0);
+ g_return_val_if_fail (E_IS_RULE_CONTEXT (context), 0);
str = (gchar *) xmlGetProp (node, (xmlChar *)"name");
part->name = g_strdup (str);
diff --git a/e-util/e-filter-rule.c b/e-util/e-filter-rule.c
index 33b626f..5d0b194 100644
--- a/e-util/e-filter-rule.c
+++ b/e-util/e-filter-rule.c
@@ -1225,7 +1225,7 @@ e_filter_rule_find_list (GList *list,
{
GList *link;
- g_return_val_if_fail (name != NULL, FALSE);
+ g_return_val_if_fail (name != NULL, NULL);
for (link = list; link != NULL; link = g_list_next (link)) {
EFilterRule *rule = link->data;
diff --git a/e-util/e-web-view-gtkhtml.c b/e-util/e-web-view-gtkhtml.c
index 0f79eb1..e371d0b 100644
--- a/e-util/e-web-view-gtkhtml.c
+++ b/e-util/e-web-view-gtkhtml.c
@@ -2021,7 +2021,7 @@ e_web_view_gtkhtml_set_cursor_image (EWebViewGtkHTML *web_view,
GtkAction *
e_web_view_gtkhtml_get_open_proxy (EWebViewGtkHTML *web_view)
{
- g_return_val_if_fail (E_IS_WEB_VIEW_GTKHTML (web_view), FALSE);
+ g_return_val_if_fail (E_IS_WEB_VIEW_GTKHTML (web_view), NULL);
return web_view->priv->open_proxy;
}
@@ -2056,7 +2056,7 @@ e_web_view_gtkhtml_get_paste_target_list (EWebViewGtkHTML *web_view)
GtkAction *
e_web_view_gtkhtml_get_print_proxy (EWebViewGtkHTML *web_view)
{
- g_return_val_if_fail (E_IS_WEB_VIEW_GTKHTML (web_view), FALSE);
+ g_return_val_if_fail (E_IS_WEB_VIEW_GTKHTML (web_view), NULL);
return web_view->priv->print_proxy;
}
@@ -2083,7 +2083,7 @@ e_web_view_gtkhtml_set_print_proxy (EWebViewGtkHTML *web_view,
GtkAction *
e_web_view_gtkhtml_get_save_as_proxy (EWebViewGtkHTML *web_view)
{
- g_return_val_if_fail (E_IS_WEB_VIEW_GTKHTML (web_view), FALSE);
+ g_return_val_if_fail (E_IS_WEB_VIEW_GTKHTML (web_view), NULL);
return web_view->priv->save_as_proxy;
}
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 5269b28..faf57a5 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -2170,7 +2170,7 @@ e_web_view_set_cursor_image_src (EWebView *web_view,
GtkAction *
e_web_view_get_open_proxy (EWebView *web_view)
{
- g_return_val_if_fail (E_IS_WEB_VIEW (web_view), FALSE);
+ g_return_val_if_fail (E_IS_WEB_VIEW (web_view), NULL);
return web_view->priv->open_proxy;
}
@@ -2209,7 +2209,7 @@ e_web_view_get_paste_target_list (EWebView *web_view)
GtkAction *
e_web_view_get_print_proxy (EWebView *web_view)
{
- g_return_val_if_fail (E_IS_WEB_VIEW (web_view), FALSE);
+ g_return_val_if_fail (E_IS_WEB_VIEW (web_view), NULL);
return web_view->priv->print_proxy;
}
@@ -2239,7 +2239,7 @@ e_web_view_set_print_proxy (EWebView *web_view,
GtkAction *
e_web_view_get_save_as_proxy (EWebView *web_view)
{
- g_return_val_if_fail (E_IS_WEB_VIEW (web_view), FALSE);
+ g_return_val_if_fail (E_IS_WEB_VIEW (web_view), NULL);
return web_view->priv->save_as_proxy;
}
diff --git a/modules/composer-autosave/e-autosave-utils.c b/modules/composer-autosave/e-autosave-utils.c
index c34c491..c96481f 100644
--- a/modules/composer-autosave/e-autosave-utils.c
+++ b/modules/composer-autosave/e-autosave-utils.c
@@ -98,7 +98,7 @@ create_snapshot_file (EMsgComposer *composer,
g_file_error_from_errno (errno),
"%s", g_strerror (errno));
g_free (path);
- return FALSE;
+ return NULL;
}
close (fd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]