[gtksourceview] Do not start interactive completion on non-editable parts of the buffer
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtksourceview] Do not start interactive completion on non-editable parts of the buffer
- Date: Sat, 2 Jan 2010 11:02:53 +0000 (UTC)
commit 0107850e094251e6d1bc49ae57eabfa132064c9a
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sat Jan 2 12:02:08 2010 +0100
Do not start interactive completion on non-editable parts of the buffer
gtksourceview/gtksourcecompletion.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 48ac4f0..470ba7c 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1608,6 +1608,12 @@ update_interactive_completion (GtkSourceCompletion *completion,
GtkTextIter *iter,
gboolean start_completion)
{
+ /* Only handle interactive completion in editable parts of the buffer */
+ if (!gtk_text_iter_editable (iter, gtk_text_view_get_editable (GTK_TEXT_VIEW (completion->priv->view))))
+ {
+ return;
+ }
+
if (completion->priv->context == NULL)
{
/* Schedule for interactive showing */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]