diff options
author | TingPing <tingping@tingping.se> | 2013-10-22 06:21:58 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-10-22 06:21:58 -0400 |
commit | a72d40284dbd2c9be4a0c9bc46bf50db29a71f1a (patch) | |
tree | 1fefdfe04cdbd712c5e291c277a8fd2cdcaea912 /src/fe-gtk | |
parent | 4a591cf7d7df3fcb59d35e22e69b9a2eeadfcf63 (diff) |
fix some warnings
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/editlist.c | 4 | ||||
-rw-r--r-- | src/fe-gtk/xtext.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/fe-gtk/editlist.c b/src/fe-gtk/editlist.c index 3aec0d45..9f00dbcf 100644 --- a/src/fe-gtk/editlist.c +++ b/src/fe-gtk/editlist.c @@ -298,7 +298,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2) render = gtk_cell_renderer_text_new (); g_object_set (render, "editable", TRUE, NULL); 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 (view), NAME_COLUMN, title1, render, @@ -309,7 +309,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2) render = gtk_cell_renderer_text_new (); g_object_set (render, "editable", TRUE, NULL); 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 (view), CMD_COLUMN, title2, render, diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index efe372fb..438a8246 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -3230,7 +3230,6 @@ void gtk_xtext_set_palette (GtkXText * xtext, GdkColor palette[]) { int i; - GdkColor col; for (i = (XTEXT_COLS-1); i >= 0; i--) { |