[gnome-builder] source-view: use return_val_if_fail
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] source-view: use return_val_if_fail
- Date: Tue, 2 Dec 2014 21:43:22 +0000 (UTC)
commit bb5493b8bccafdc8ff4b8d37f75199b1ae3fa586
Author: Christian Hergert <christian hergert me>
Date: Tue Dec 2 13:42:37 2014 -0800
source-view: use return_val_if_fail
src/editor/gb-source-view.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/editor/gb-source-view.c b/src/editor/gb-source-view.c
index f3e1032..ec896a1 100644
--- a/src/editor/gb-source-view.c
+++ b/src/editor/gb-source-view.c
@@ -1695,16 +1695,14 @@ gb_source_view_focus_in_event (GtkWidget *widget,
GtkSourceCompletion *completion;
gboolean ret;
- g_return_if_fail (GB_IS_SOURCE_VIEW (widget));
- g_return_if_fail (event);
+ g_return_val_if_fail (GB_IS_SOURCE_VIEW (widget), FALSE);
+ g_return_val_if_fail (event, FALSE);
ret = GTK_WIDGET_CLASS (gb_source_view_parent_class)->focus_in_event (widget, event);
completion = gtk_source_view_get_completion (GTK_SOURCE_VIEW (widget));
gtk_source_completion_unblock_interactive (completion);
- gb_source_view_scroll_to_insert (GB_SOURCE_VIEW (widget));
-
return ret;
}
@@ -1715,8 +1713,8 @@ gb_source_view_focus_out_event (GtkWidget *widget,
GtkSourceCompletion *completion;
gboolean ret;
- g_return_if_fail (GB_IS_SOURCE_VIEW (widget));
- g_return_if_fail (event);
+ g_return_val_if_fail (GB_IS_SOURCE_VIEW (widget), FALSE);
+ g_return_val_if_fail (event, FALSE);
ret = GTK_WIDGET_CLASS (gb_source_view_parent_class)->focus_out_event (widget, event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]