aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-utils.c')
-rw-r--r--widgets/table/e-table-utils.c111
1 files changed, 0 insertions, 111 deletions
diff --git a/widgets/table/e-table-utils.c b/widgets/table/e-table-utils.c
deleted file mode 100644
index 9c9aea6911..0000000000
--- a/widgets/table/e-table-utils.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * e-table.utils.c: Utilities for ETable.
- *
- * Author:
- * Chris Lahey <clahey@ximian.com>
- *
- * Copyright 2001, Ximian, Inc
- */
-
-#include <config.h>
-#include "gal/util/e-i18n.h"
-#include "e-table-utils.h"
-#include "e-table-header-utils.h"
-
-ETableHeader *
-e_table_state_to_header (GtkWidget *widget, ETableHeader *full_header, ETableState *state)
-{
- ETableHeader *nh;
- const int max_cols = e_table_header_count (full_header);
- int column;
-
- g_return_val_if_fail (widget, NULL);
- g_return_val_if_fail (full_header, NULL);
- g_return_val_if_fail (state, NULL);
-
- nh = e_table_header_new ();
-
- gtk_object_set(GTK_OBJECT(nh),
- "width_extras", e_table_header_width_extras(widget->style),
- NULL);
-
- for (column = 0; column < state->col_count; column++) {
- int col;
- double expansion;
- ETableCol *table_col;
-
- col = state->columns[column];
- expansion = state->expansions[column];
-
- if (col >= max_cols)
- continue;
-
- table_col = e_table_header_get_column (full_header, col);
-
- if (expansion >= -1)
- table_col->expansion = expansion;
-
- e_table_header_add_column (nh, table_col, -1);
- }
-
- return nh;
-}
-
-static ETableCol *
-et_col_spec_to_col (ETableColumnSpecification *col_spec,
- ETableExtras *ete)
-{
- ETableCol *col = NULL;
- ECell *cell;
- GCompareFunc compare;
-
- cell = e_table_extras_get_cell(ete, col_spec->cell);
- compare = e_table_extras_get_compare(ete, col_spec->compare);
-
- if (cell && compare) {
- if (col_spec->pixbuf && *col_spec->pixbuf) {
- GdkPixbuf *pixbuf;
-
- pixbuf = e_table_extras_get_pixbuf(
- ete, col_spec->pixbuf);
- if (pixbuf) {
- col = e_table_col_new_with_pixbuf (
- col_spec->model_col, gettext (col_spec->title),
- pixbuf, col_spec->expansion,
- col_spec->minimum_width,
- cell, compare, col_spec->resizable);
- }
- }
- if (col == NULL && col_spec->title && *col_spec->title) {
- col = e_table_col_new (
- col_spec->model_col, gettext (col_spec->title),
- col_spec->expansion, col_spec->minimum_width,
- cell, compare, col_spec->resizable);
- }
- }
- return col;
-}
-
-ETableHeader *
-e_table_spec_to_full_header (ETableSpecification *spec,
- ETableExtras *ete)
-{
- ETableHeader *nh;
- int column;
-
- g_return_val_if_fail (spec, NULL);
- g_return_val_if_fail (ete, NULL);
-
- nh = e_table_header_new ();
-
- for (column = 0; spec->columns[column]; column++) {
- ETableCol *col = et_col_spec_to_col (
- spec->columns[column], ete);
-
- if (col)
- e_table_header_add_column (nh, col, -1);
- }
-
- return nh;
-}
d>1-6/+8 * - Update to version 2.73miwi2012-03-253-39/+57 * - Update to version 2.72danfe2012-02-152-5/+7 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-1/+1 * - remove MD5ohauer2011-07-031-1/+0 * Update to version 2.70.danfe2010-07-163-4/+6 * Update to version 2.69.danfe2009-12-122-4/+4 * Update to version 2.68.danfe2008-08-082-8/+5 * - Canonicalize Makefile headerdanfe2008-08-072-10/+18 * Drop maintainership on my ports as I'm no longer using FreeBSD.anholt2008-08-071-1/+1 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-231-1/+0 * Update nickle to 2.56anholt2007-05-253-4/+5 * Update to 2.54.anholt2006-08-313-7/+9 * SHA256ifyedwin2006-01-221-0/+1 * Update to 2.47, which consists mostly of small bugfixes.anholt2005-05-053-25/+3 * At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-121-1/+1 * Assist getting more ports working on AMD64 by obeying theobrien2005-04-111-1/+1 * Update to 2.46. Remove patch-array.c which was properly fixed elsewhere a fewanholt2005-02-284-25/+25 * Don't forget to rmdir the new include/nickle. While I'm here, make rmdir ofanholt2005-02-131-1/+2 * Update to 2.45. The notable new feature is the foreign function interface,anholt2005-02-113-5/+27 * Add missing directorieskris2004-11-251-0/+3 * Fix the build on -stable. Older gcc doesn't like having the ALLOCATE mixed inanholt2004-10-171-0/+22 * Update to 2.41 and take maintainership. I hang out with the authors a lot, andanholt2004-08-223-4/+33 * - Update to version 2.28krion2004-03-203-22/+21 * Add size data.trevor2004-03-191-0/+1 * E-mail to the maintainer bounced:trevor2004-03-181-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Move inclusion of bsd.port.pre.mk later in the file for conditional BROKENkris2003-06-051-6/+6 * BROKEN on 5.1: does not compilekris2003-05-181-1/+7 * De-pkg-comment.knu2003-02-212-1/+1 * Update to 2.00 and give maintainership to submitterpat2002-01-093-3/+5 * Update MASTER_SITESkevlo2001-04-242-2/+2