[gtksourceview] Completion: avoid a critical message
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: avoid a critical message
- Date: Sat, 14 Sep 2013 14:54:29 +0000 (UTC)
commit 0e3ebc2c3e1f0ecb4e8379699475b95fa9e4fa72
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Sep 14 16:50:22 2013 +0200
Completion: avoid a critical message
activate_proposal() can easily be called when no proposals is selected.
For example with the select-on-show property to FALSE. Pressing Enter in
this case, when no proposals is selected, call activate_proposal() and
triggered the critical message.
gtksourceview/gtksourcecompletion.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index bed43ec..9257f3d 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -627,7 +627,7 @@ gtk_source_completion_activate_proposal (GtkSourceCompletion *completion)
if (!get_selected_proposal (completion, &provider, &proposal))
{
- g_return_if_reached ();
+ return;
}
get_iter_at_insert (completion, &insert_iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]