summary refs log tree commit diff stats
path: root/src/fe-gtk/editlist.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-02-07 02:27:44 -0500
committerTingPing <tingping@tingping.se>2014-02-07 02:27:44 -0500
commit02275dff51c00d9fda640f729917fd0cdd3db79b (patch)
treee236213d0e262359b1f6481e5383d87e2944a624 /src/fe-gtk/editlist.c
parent34cf164aa28c45c15ecf39b855f2de833a9b7c2d (diff)
Fix some warnings in editlist
Diffstat (limited to 'src/fe-gtk/editlist.c')
-rw-r--r--src/fe-gtk/editlist.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fe-gtk/editlist.c b/src/fe-gtk/editlist.c
index 9f00dbcf..1a9a28b6 100644
--- a/src/fe-gtk/editlist.c
+++ b/src/fe-gtk/editlist.c
@@ -223,7 +223,7 @@ editlist_edited (GtkCellRendererText *render, gchar *pathstr, gchar *new_text, g
 	gint column = GPOINTER_TO_INT (data);
 
 	gtk_tree_model_get_iter (model, &iter, path);
-	gtk_list_store_set (GTK_LIST_STORE (model), &iter, column, new_text);
+	gtk_list_store_set (GTK_LIST_STORE (model), &iter, column, new_text, -1);
 
 	gtk_tree_path_free (path);
 }
@@ -302,8 +302,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2)
 	gtk_tree_view_insert_column_with_attributes (
 					GTK_TREE_VIEW (view), NAME_COLUMN,
 					title1, render,
-					"text", 0,
-					"editable", 2,
+					"text", NAME_COLUMN,
 					NULL);
 
 	render = gtk_cell_renderer_text_new ();
@@ -313,8 +312,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2)
 	gtk_tree_view_insert_column_with_attributes (
 					GTK_TREE_VIEW (view), CMD_COLUMN,
 					title2, render,
-					"text", 1,
-					"editable", 2,
+					"text", CMD_COLUMN,
 					NULL);
 
 	col = gtk_tree_view_get_column (GTK_TREE_VIEW (view), NAME_COLUMN);