From 6c87a6a872f1aa5dfc3ed463a4254916361fbbd1 Mon Sep 17 00:00:00 2001 From: Sankarasivasubramanian Pasupathilingam Date: Mon, 6 Oct 2008 09:48:25 +0000 Subject: Removed obsolete files. svn path=/trunk/; revision=36565 --- widgets/table/ChangeLog | 6 +++ widgets/table/e-cell-float.c | 92 -------------------------------------------- widgets/table/e-cell-float.h | 54 -------------------------- 3 files changed, 6 insertions(+), 146 deletions(-) delete mode 100644 widgets/table/e-cell-float.c delete mode 100644 widgets/table/e-cell-float.h (limited to 'widgets/table') diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index c14f484cfe..c7eca467ea 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,9 @@ +2008-10-06 Sankar P + + * e-cell-float.c: + * e-cell-float.h: + Remove obsolete files + 2008-10-03 Sankar P License Changes And: diff --git a/widgets/table/e-cell-float.c b/widgets/table/e-cell-float.c deleted file mode 100644 index 8befd842f9..0000000000 --- a/widgets/table/e-cell-float.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * e-cell-float.c - Float item for e-table. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Mikael Hallendal - * - * Derived from e-cell-number by Chris Lahey - * ECellFloat - Float item for e-table. - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#include - -#include -#include - -#include -#include "e-util/e-util.h" - -#include "e-cell-float.h" - -G_DEFINE_TYPE (ECellFloat, e_cell_float, E_CELL_TEXT_TYPE) - -static char * -ecf_get_text(ECellText *cell, ETableModel *model, int col, int row) -{ - gfloat *fvalue; - - fvalue = e_table_model_value_at (model, col, row); - - return e_format_number_float (*fvalue); -} - -static void -ecf_free_text(ECellText *cell, char *text) -{ - g_free(text); -} - -static void -e_cell_float_class_init (ECellFloatClass *klass) -{ - ECellTextClass *ectc = E_CELL_TEXT_CLASS (klass); - - ectc->get_text = ecf_get_text; - ectc->free_text = ecf_free_text; -} - -static void -e_cell_float_init (ECellFloat *cell_float) -{ -} - -/** - * e_cell_float_new: - * @fontname: font to be used to render on the screen - * @justify: Justification of the string in the cell. - * - * Creates a new ECell renderer that can be used to render floats that - * that come from the model. The value returned from the model is - * interpreted as being an int. - * - * See ECellText for other features. - * - * Returns: an ECell object that can be used to render floats. - */ -ECell * -e_cell_float_new (const char *fontname, GtkJustification justify) -{ - ECellFloat *ecn = g_object_new (E_CELL_FLOAT_TYPE, NULL); - - e_cell_text_construct(E_CELL_TEXT(ecn), fontname, justify); - - return (ECell *) ecn; -} - diff --git a/widgets/table/e-cell-float.h b/widgets/table/e-cell-float.h deleted file mode 100644 index 52898a0922..0000000000 --- a/widgets/table/e-cell-float.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * e-cell-float.h - Float item for e-table. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Mikael Hallendal - * - * Derived from e-cell-number by Chris Lahey - * ECellFloat - Float item for e-table. - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#ifndef _E_CELL_FLOAT_H_ -#define _E_CELL_FLOAT_H_ - -#include - -G_BEGIN_DECLS - -#define E_CELL_FLOAT_TYPE (e_cell_float_get_type ()) -#define E_CELL_FLOAT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_CELL_FLOAT_TYPE, ECellFloat)) -#define E_CELL_FLOAT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_CELL_FLOAT_TYPE, ECellFloatClass)) -#define E_IS_CELL_FLOAT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_FLOAT_TYPE)) -#define E_IS_CELL_FLOAT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_FLOAT_TYPE)) - -typedef struct { - ECellText base; -} ECellFloat; - -typedef struct { - ECellTextClass parent_class; -} ECellFloatClass; - -GType e_cell_float_get_type (void); -ECell *e_cell_float_new (const char *fontname, GtkJustification justify); - -G_END_DECLS - -#endif /* _E_CELL_FLOAT_H_ */ -- cgit v1.2.3