[gtksourceview] completion: clear previous cell data on display
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] completion: clear previous cell data on display
- Date: Sat, 3 Sep 2022 18:29:33 +0000 (UTC)
commit 508ce7ed41ecfb285127c6c563731d64bbeccade
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 3 11:29:13 2022 -0700
completion: clear previous cell data on display
.../completion-providers/snippets/gtksourcecompletionsnippets.c | 4 ++++
gtksourceview/completion-providers/words/gtksourcecompletionwords.c | 4 ++++
2 files changed, 8 insertions(+)
---
diff --git a/gtksourceview/completion-providers/snippets/gtksourcecompletionsnippets.c
b/gtksourceview/completion-providers/snippets/gtksourcecompletionsnippets.c
index ed5f400e..f11db5fa 100644
--- a/gtksourceview/completion-providers/snippets/gtksourcecompletionsnippets.c
+++ b/gtksourceview/completion-providers/snippets/gtksourcecompletionsnippets.c
@@ -346,6 +346,10 @@ gtk_source_completion_snippets_display (GtkSourceCompletionProvider *provider,
{
gtk_source_completion_cell_set_text (cell, p->info.description);
}
+ else
+ {
+ gtk_source_completion_cell_set_text (cell, NULL);
+ }
}
static void
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index bc088ebf..51d9c6f8 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -374,6 +374,10 @@ gtk_source_completion_words_display (GtkSourceCompletionProvider *provider,
{
gtk_source_completion_cell_set_icon_name (cell, "completion-word-symbolic");
}
+ else
+ {
+ gtk_source_completion_cell_set_text (cell, NULL);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]