fix some warnings

This commit is contained in:
TingPing 2013-10-22 06:21:58 -04:00
parent 4a591cf7d7
commit a72d40284d
2 changed files with 2 additions and 3 deletions

View File

@ -298,7 +298,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2)
render = gtk_cell_renderer_text_new (); render = gtk_cell_renderer_text_new ();
g_object_set (render, "editable", TRUE, NULL); g_object_set (render, "editable", TRUE, NULL);
g_signal_connect (G_OBJECT (render), "edited", g_signal_connect (G_OBJECT (render), "edited",
G_CALLBACK (editlist_edited), NAME_COLUMN); G_CALLBACK (editlist_edited), GINT_TO_POINTER(NAME_COLUMN));
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,
@ -309,7 +309,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2)
render = gtk_cell_renderer_text_new (); render = gtk_cell_renderer_text_new ();
g_object_set (render, "editable", TRUE, NULL); g_object_set (render, "editable", TRUE, NULL);
g_signal_connect (G_OBJECT (render), "edited", g_signal_connect (G_OBJECT (render), "edited",
G_CALLBACK (editlist_edited), CMD_COLUMN); G_CALLBACK (editlist_edited), GINT_TO_POINTER(CMD_COLUMN));
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,

View File

@ -3230,7 +3230,6 @@ void
gtk_xtext_set_palette (GtkXText * xtext, GdkColor palette[]) gtk_xtext_set_palette (GtkXText * xtext, GdkColor palette[])
{ {
int i; int i;
GdkColor col;
for (i = (XTEXT_COLS-1); i >= 0; i--) for (i = (XTEXT_COLS-1); i >= 0; i--)
{ {