[gnome-builder] completion: remove deprecated gtk_source_completion_item_new
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] completion: remove deprecated gtk_source_completion_item_new
- Date: Fri, 28 Oct 2016 13:01:56 +0000 (UTC)
commit 9a165d9645038ae0c565ddb44e35ec0b920231a7
Author: Sebastien Lafargue <slafargue gnome org>
Date: Fri Oct 28 14:12:59 2016 +0200
completion: remove deprecated gtk_source_completion_item_new
Instead, use the g_object_new constructor
libide/langserv/ide-langserv-completion-provider.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libide/langserv/ide-langserv-completion-provider.c
b/libide/langserv/ide-langserv-completion-provider.c
index 2b16eef..42865a0 100644
--- a/libide/langserv/ide-langserv-completion-provider.c
+++ b/libide/langserv/ide-langserv-completion-provider.c
@@ -276,7 +276,12 @@ ide_langserv_completion_provider_complete_cb (GObject *object,
else
full_label = g_strdup (label);
- item = gtk_source_completion_item_new (full_label, label, NULL, NULL);
+ //item = gtk_source_completion_item_new (full_label, label, NULL, NULL);
+ item = g_object_new (GTK_SOURCE_TYPE_COMPLETION_ITEM,
+ "label", full_label,
+ "text", label,
+ NULL);
+
list = g_list_prepend (list, g_steal_pointer (&item));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]