[evolution/wip/webkit2] Correct return value for some methods
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Correct return value for some methods
- Date: Fri, 4 Mar 2016 07:55:52 +0000 (UTC)
commit ff59ac625eff8604df7dcdf8bb7dfcca82921e55
Author: Tomas Popela <tpopela redhat com>
Date: Fri Mar 4 08:55:12 2016 +0100
Correct return value for some methods
e-util/e-html-editor-selection.c | 2 +-
e-util/e-web-view.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 61b8e9c..31d76c3 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -1460,7 +1460,7 @@ e_html_editor_selection_unindent (EHTMLEditorSelection *selection)
gboolean
e_html_editor_selection_is_bold (EHTMLEditorSelection *selection)
{
- g_return_if_fail (E_IS_HTML_EDITOR_SELECTION (selection));
+ g_return_val_if_fail (E_IS_HTML_EDITOR_SELECTION (selection), FALSE);
return selection->priv->is_bold;
}
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 40caf27..8e60d7d 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -2918,7 +2918,7 @@ e_web_view_is_selection_active (EWebView *web_view)
{
GDBusProxy *web_extension;
- g_return_val_if_fail (E_IS_WEB_VIEW (web_view), NULL);
+ g_return_val_if_fail (E_IS_WEB_VIEW (web_view), FALSE);
web_extension = e_web_view_get_web_extension_proxy (web_view);
if (web_extension) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]