[gnome-builder] plugins/clang: always set icon for completion result
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/clang: always set icon for completion result
- Date: Sat, 3 Sep 2022 06:48:55 +0000 (UTC)
commit c2a104fb03f8518a1cde3a4f300d57c999afc614
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 2 23:48:35 2022 -0700
plugins/clang: always set icon for completion result
We can use fallback "C" source icon.
src/plugins/clang/ide-clang-completion-item.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/ide-clang-completion-item.c b/src/plugins/clang/ide-clang-completion-item.c
index 8d50d4a3f..6fcbd224e 100644
--- a/src/plugins/clang/ide-clang-completion-item.c
+++ b/src/plugins/clang/ide-clang-completion-item.c
@@ -505,7 +505,11 @@ ide_clang_completion_item_display (IdeClangCompletionItem *self,
switch (column)
{
case GTK_SOURCE_COMPLETION_COLUMN_ICON:
- gtk_source_completion_cell_set_icon_name (cell, self->icon_name);
+ if (self->icon_name)
+ gtk_source_completion_cell_set_icon_name (cell, self->icon_name);
+ else
+ gtk_source_completion_cell_set_icon_name (cell, "text-x-csrc-symbolic");
+
break;
case GTK_SOURCE_COMPLETION_COLUMN_TYPED_TEXT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]