From c3d6ab4b55699dfde141fc1c89e759bda14db38b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 21 Dec 2010 15:00:15 +0100 Subject: Minor compiler warnings fix --- widgets/table/e-table-field-chooser-item.c | 2 +- widgets/table/e-table-header-item.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-field-chooser-item.c b/widgets/table/e-table-field-chooser-item.c index 02c86b8136..880731e5be 100644 --- a/widgets/table/e-table-field-chooser-item.c +++ b/widgets/table/e-table-field-chooser-item.c @@ -572,7 +572,7 @@ etfci_start_drag (ETableFieldChooserItem *etfci, GdkEvent *event, gdouble x, gdo d(g_print ("etfci - %s\n", etfci_drag_types[0].target)); list = gtk_target_list_new (etfci_drag_types, G_N_ELEMENTS (etfci_drag_types)); context = gtk_drag_begin (widget, list, GDK_ACTION_MOVE, 1, event); - g_free (etfci_drag_types[0].target); + g_free ((gpointer) etfci_drag_types[0].target); button_height = e_table_header_compute_height (ecol, widget); window = gtk_widget_get_window (widget); diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 28d53ce971..7fda0066af 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -929,7 +929,7 @@ ethi_realize (GnomeCanvasItem *item) gtk_drag_dest_set ( GTK_WIDGET (item->canvas), 0, ethi_drop_types, G_N_ELEMENTS (ethi_drop_types), GDK_ACTION_MOVE); - g_free (ethi_drop_types[0].target); + g_free ((gpointer) ethi_drop_types[0].target); /* Drop signals */ ethi->drag_motion_id = g_signal_connect (item->canvas, "drag_motion", @@ -1235,7 +1235,7 @@ ethi_start_drag (ETableHeaderItem *ethi, GdkEvent *event) list = gtk_target_list_new ( ethi_drag_types, G_N_ELEMENTS (ethi_drag_types)); context = gtk_drag_begin (widget, list, GDK_ACTION_MOVE, 1, event); - g_free (ethi_drag_types[0].target); + g_free ((gpointer) ethi_drag_types[0].target); ecol = e_table_header_get_column (ethi->eth, ethi->drag_col); col_width = ecol->width; -- cgit