aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-float.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-cell-float.c')
-rw-r--r--widgets/table/e-cell-float.c93
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 9b1880be71..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)
orts-gnome/commit/sysutils?h=gstreamer&id=e9c62ab7697c2779436a024f7f0dc00175b55bf3'>Release these ports into the wild due to maintainer-timeouts and nolinimon2009-05-133-3/+3 * - Mark MAKE_JOBS_UNSAFEpav2009-05-132-0/+2 * Fix install/package with -DNOPORTDOCS.itetcu2009-05-121-2/+1 * - Reset inactive maintainerpav2009-05-121-1/+1 * - Fix tree viewpav2009-05-122-0/+15 * - "I missed an important configuration option in the original port submission."pav2009-05-121-0/+3 * - update to 0.8.7danger2009-05-122-6/+16 * - Update to 0.5.17miwi2009-05-116-12/+12 * - add yet another optional dependencydanger2009-05-111-1/+6 * b43-fwcutter is a tool which can extract firmware from various BCM43xx drivers.garga2009-05-106-0/+59 * - Update to 6.1.1garga2009-05-102-4/+4 * Update KDE ports to 4.2.3makc2009-05-1012-51/+51 * - Mark my ports as MAKE_JOBS_SAFE (with the exception of nethack34-gnome whichwxs2009-05-091-0/+1 * Update to 2.01.01a59. For the changes since 2.01.01a58 see:marius2009-05-093-9/+9 * - Update to 5.0.2amdmi32009-05-082-4/+4 * confman is a configuration manager written in bash. confman uses Subversion togarga2009-05-085-0/+53 * - Update to 6.1beat2009-05-084-16/+10 * Transfer maintainership ofvd2009-05-076-6/+6 * remove the deletion of the pt_PT locale because it is included in the mtree fileoliver2009-05-071-2/+0 * - Update to 3.0.0amdmi32009-05-072-21/+19 * flashrom is a utility for reading, writing, verifying and erasing flash ROMamdmi32009-05-074-0/+45 * update xfce to 4.6.1oliver2009-05-0617-22/+24