diff options
author | nobody <nobody@localhost> | 2002-11-07 00:33:24 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2002-11-07 00:33:24 +0800 |
commit | a8512f3aafd3df5a379752c049811f25ed5783c0 (patch) | |
tree | eb739ba41251ad0e5399c56cd201a5496914f929 /widgets/table/e-cell-float.c | |
parent | 774aba8ec57d4e7d76a8b5bab60308a05159da64 (diff) | |
download | gsoc2013-evolution-guikachu-1_3_2.tar.gz gsoc2013-evolution-guikachu-1_3_2.tar.zst gsoc2013-evolution-guikachu-1_3_2.zip |
This commit was manufactured by cvs2svn to create tagguikachu-1_3_2
'guikachu-1_3_2'.
svn path=/tags/guikachu-1_3_2/; revision=18613
Diffstat (limited to 'widgets/table/e-cell-float.c')
-rw-r--r-- | widgets/table/e-cell-float.c | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/widgets/table/e-cell-float.c b/widgets/table/e-cell-float.c deleted file mode 100644 index aff6c88cc5..0000000000 --- a/widgets/table/e-cell-float.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * e-cell-float.c - Float item for e-table. - * Copyright 2001, CodeFactory AB - * Copyright 2001, Mikael Hallendal <micke@codefactory.se> - * - * Derived from e-cell-number by Chris Lahey <clahey@ximian.com> - * ECellFloat - Float item for e-table. - * - * Author: - * Mikael Hallendal <micke@codefactory.se> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License, version 2, as published by the Free Software Foundation. - * - * This library 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 - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - */ - -#include <config.h> -#include <sys/time.h> -#include <unistd.h> -#include <gal/util/e-util.h> -#include <gal/util/e-i18n.h> -#include "e-cell-float.h" - -#define PARENT_TYPE e_cell_text_get_type () - -static ECellTextClass *parent_class; - -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 (GtkObjectClass *object_class) -{ - ECellTextClass *ectc = (ECellTextClass *) object_class; - - parent_class = gtk_type_class (PARENT_TYPE); - - ectc->get_text = ecf_get_text; - ectc->free_text = ecf_free_text; -} - -static void -e_cell_float_init (GtkObject *object) -{ -} - -/** - * 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 = gtk_type_new (e_cell_float_get_type ()); - - e_cell_text_construct(E_CELL_TEXT(ecn), fontname, justify); - - return (ECell *) ecn; -} - -E_MAKE_TYPE(e_cell_float, "ECellFloat", ECellFloat, e_cell_float_class_init, e_cell_float_init, PARENT_TYPE) |