From 97adccec5d57a466b61896eeaeaae0272e8dfe76 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 10 Jun 2004 15:29:15 +0000 Subject: fixes for compiler warnings 2004-06-10 Radek Doulik * e-cell-text.c (layout_with_preedit): removed unused variable * e-tree.c (e_tree_get_item): added cast added #include * e-table-one.c (one_finalize): removed unused variable * e-table-item.c: added #include "gal/a11y/e-table/gal-a11y-e-table-item.h" for gal_a11y_e_table_item_factory_get_type prototype * e-table-header-utils.c (e_table_header_draw_button): removed unused variable * e-table-config.c (get_source_model_col_index): removed unused variable * e-table-click-to-add.c (finish_editing): added cast (etcta_event): ditto * e-cell-toggle.c: added #include "gal/a11y/e-table/gal-a11y-e-cell-registry.h" to have gal_a11y_e_cell_registry_add_cell_type prototype * e-cell-text.c (layout_with_preedit): removed unused variable (build_layout): ditto (ect_event): ditto (e_cell_text_commit_cb): ditto * e-cell-popup.c: added #include "gal/a11y/e-table/gal-a11y-e-cell-registry.h" to have gal_a11y_e_cell_registry_add_cell_type prototype svn path=/trunk/; revision=26284 --- widgets/table/e-table-click-to-add.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'widgets/table/e-table-click-to-add.c') diff --git a/widgets/table/e-table-click-to-add.c b/widgets/table/e-table-click-to-add.c index 8fb151bc24..c02e3b8869 100644 --- a/widgets/table/e-table-click-to-add.c +++ b/widgets/table/e-table-click-to-add.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "e-table-header.h" #include "e-table-click-to-add.h" @@ -312,7 +313,7 @@ finish_editing (ETableClickToAdd *etcta) e_table_item_leave_edit (E_TABLE_ITEM (etcta->row)); e_table_one_commit(E_TABLE_ONE(etcta->one)); etcta_drop_one (etcta); - gtk_object_destroy(etcta->row); + gtk_object_destroy(GTK_OBJECT (etcta->row)); etcta->row = NULL; one = e_table_one_new(etcta->model); @@ -354,11 +355,11 @@ etcta_event (GnomeCanvasItem *item, GdkEvent *e) case GDK_BUTTON_PRESS: if (etcta->text) { - gtk_object_destroy(etcta->text); + gtk_object_destroy(GTK_OBJECT (etcta->text)); etcta->text = NULL; } if (etcta->rect) { - gtk_object_destroy(etcta->rect); + gtk_object_destroy(GTK_OBJECT (etcta->rect)); etcta->rect = NULL; } if (!etcta->row) { @@ -545,7 +546,7 @@ e_table_click_to_add_commit (ETableClickToAdd *etcta) if (etcta->row) { e_table_one_commit(E_TABLE_ONE(etcta->one)); etcta_drop_one (etcta); - gtk_object_destroy(etcta->row); + gtk_object_destroy(GTK_OBJECT (etcta->row)); etcta->row = NULL; } if (!etcta->rect) { -- cgit