[gtksourceview] Completion: always hide completion when insert mark moves
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: always hide completion when insert mark moves
- Date: Sun, 24 Feb 2013 14:25:40 +0000 (UTC)
commit 67765384ad53e33811901613cd03b870c379c653
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Feb 23 17:18:55 2013 +0100
Completion: always hide completion when insert mark moves
gtksourceview/gtksourcecompletion.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 3399f3d..8519892 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1487,27 +1487,10 @@ buffer_mark_set_cb (GtkTextBuffer *buffer,
GtkTextMark *mark,
GtkSourceCompletion *completion)
{
- GtkTextIter it;
-
- if (mark != gtk_text_buffer_get_insert (buffer) ||
- !completion->priv->active_providers)
- {
- return;
- }
-
- /* Check if the cursor is still on the completion line */
- gtk_source_completion_context_get_iter (completion->priv->context,
- &it);
-
- if (!gtk_text_iter_equal (iter, &it))
+ if (mark == gtk_text_buffer_get_insert (buffer))
{
gtk_source_completion_hide (completion);
- return;
}
-
- update_completion (completion,
- completion->priv->active_providers,
- g_object_ref (completion->priv->context));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]