[gnome-builder/wip/slaf/spellchecker-enchant: 2/2] spellchecker: fix store used
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/slaf/spellchecker-enchant: 2/2] spellchecker: fix store used
- Date: Sun, 16 Jul 2017 09:28:35 +0000 (UTC)
commit af841fcf8f46bc00a860416c9da0a2fa721c108f
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Jul 16 11:24:41 2017 +0200
spellchecker: fix store used
libide/editor/ide-editor-spell-language-popover.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/editor/ide-editor-spell-language-popover.c
b/libide/editor/ide-editor-spell-language-popover.c
index 22828f7..887c125 100644
--- a/libide/editor/ide-editor-spell-language-popover.c
+++ b/libide/editor/ide-editor-spell-language-popover.c
@@ -97,8 +97,8 @@ populate_popover (IdeEditorSpellLanguagePopover *self)
for (const GList *l = available_langs; l != NULL; l = l->next)
{
name = gspell_language_get_name (l->data);
- gtk_list_store_append (GTK_LIST_STORE (self->store), &iter);
- gtk_list_store_set (GTK_LIST_STORE (self->store), &iter,
+ gtk_tree_store_append (GTK_TREE_STORE (self->store), &iter, NULL);
+ gtk_tree_store_set (GTK_TREE_STORE (self->store), &iter,
COLUMN_LANGUAGE_NAME, name,
COLUMN_LANGUAGE_POINTER, l->data,
-1);
@@ -142,7 +142,7 @@ create_popover (IdeEditorSpellLanguagePopover *self)
self->selection = gtk_tree_view_get_selection (self->treeview);
gtk_tree_selection_set_mode (self->selection, GTK_SELECTION_BROWSE);
- self->store = GTK_TREE_STORE (gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, GSPELL_TYPE_LANGUAGE));
+ self->store = GTK_TREE_STORE (gtk_tree_store_new (N_COLUMNS, G_TYPE_STRING, GSPELL_TYPE_LANGUAGE));
gtk_tree_view_set_model (self->treeview, GTK_TREE_MODEL (self->store));
gtk_tree_view_insert_column_with_attributes (self->treeview, -1, NULL,
gtk_cell_renderer_text_new (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]