aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-27 11:42:02 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-27 11:42:02 -0500
commitf131668edad1ed20a3ac095925b602836503c8e8 (patch)
tree55d06ef6e8258073e422e09de54d1c71577dc44f /src/textadept.c
parent3ff8a429000f8333e5a86209bedab0950f8ae7dd (diff)
downloadtextadept-f131668edad1ed20a3ac095925b602836503c8e8.tar.gz
textadept-f131668edad1ed20a3ac095925b602836503c8e8.zip
Changed cec_store from GtkTreeStore type to GtkListStore.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textadept.c b/src/textadept.c
index c129d14b..1cf899e0 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -62,7 +62,7 @@ static void button_clicked(GtkWidget *button, gpointer);
// Command Entry
GtkWidget *command_entry;
-GtkTreeStore *cec_store;
+GtkListStore *cec_store;
GtkEntryCompletion *command_entry_completion;
static void c_activated(GtkWidget *widget, gpointer);
@@ -208,7 +208,7 @@ void create_ui() {
NULL, NULL);
gtk_entry_completion_set_popup_set_width(command_entry_completion, FALSE);
gtk_entry_completion_set_text_column(command_entry_completion, 0);
- cec_store = gtk_tree_store_new(1, G_TYPE_STRING);
+ cec_store = gtk_list_store_new(1, G_TYPE_STRING);
gtk_entry_completion_set_model(command_entry_completion,
GTK_TREE_MODEL(cec_store));
gtk_entry_set_completion(GTK_ENTRY(command_entry), command_entry_completion);
@@ -1037,6 +1037,6 @@ static gbool cec_match_selected(GtkEntryCompletion*, GtkTreeModel *model,
g_signal_emit_by_name(G_OBJECT(command_entry), "insert-at-cursor", text, 0);
g_free(text);
- gtk_tree_store_clear(cec_store);
+ gtk_list_store_clear(cec_store);
return TRUE;
}