[gtksourceview/wip/chergert/gsv-gtk4] tests: add comment area for completion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4] tests: add comment area for completion
- Date: Sun, 30 Aug 2020 21:54:49 +0000 (UTC)
commit 4119db9ee025e655a57676bd5cb105c376841dfd
Author: Christian Hergert <chergert redhat com>
Date: Sun Aug 30 14:52:11 2020 -0700
tests: add comment area for completion
tests/test-completion.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/tests/test-completion.c b/tests/test-completion.c
index 2cf3c7fc1..3e5647178 100644
--- a/tests/test-completion.c
+++ b/tests/test-completion.c
@@ -210,6 +210,19 @@ test_provider_display (GtkSourceCompletionProvider *provider,
else
gtk_source_completion_cell_set_text (cell, p->text);
}
+ else if (column == GTK_SOURCE_COMPLETION_COLUMN_COMMENT)
+ {
+ if (p->info)
+ {
+ gchar *str = g_strstrip (g_strdup (p->info));
+ gtk_source_completion_cell_set_text (cell, str);
+ g_free (str);
+ }
+ else
+ {
+ gtk_source_completion_cell_set_text (cell, NULL);
+ }
+ }
else if (column == GTK_SOURCE_COMPLETION_COLUMN_ICON)
{
if (p->icon_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]