1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

Fix some warnings in editlist

This commit is contained in:
TingPing 2014-02-07 02:27:44 -05:00
parent 34cf164aa2
commit 02275dff51

View File

@ -223,7 +223,7 @@ editlist_edited (GtkCellRendererText *render, gchar *pathstr, gchar *new_text, g
gint column = GPOINTER_TO_INT (data); gint column = GPOINTER_TO_INT (data);
gtk_tree_model_get_iter (model, &iter, path); 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); 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_insert_column_with_attributes (
GTK_TREE_VIEW (view), NAME_COLUMN, GTK_TREE_VIEW (view), NAME_COLUMN,
title1, render, title1, render,
"text", 0, "text", NAME_COLUMN,
"editable", 2,
NULL); NULL);
render = gtk_cell_renderer_text_new (); 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_insert_column_with_attributes (
GTK_TREE_VIEW (view), CMD_COLUMN, GTK_TREE_VIEW (view), CMD_COLUMN,
title2, render, title2, render,
"text", 1, "text", CMD_COLUMN,
"editable", 2,
NULL); NULL);
col = gtk_tree_view_get_column (GTK_TREE_VIEW (view), NAME_COLUMN); col = gtk_tree_view_get_column (GTK_TREE_VIEW (view), NAME_COLUMN);