aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-one.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-one.c')
-rw-r--r--widgets/table/e-table-one.c254
1 files changed, 0 insertions, 254 deletions
diff --git a/widgets/table/e-table-one.c b/widgets/table/e-table-one.c
deleted file mode 100644
index cd6be49753..0000000000
--- a/widgets/table/e-table-one.c
+++ /dev/null
@@ -1,254 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * e-table-one.c
- * Copyright 2000, 2001, Ximian, Inc.
- *
- * Authors:
- * Chris Lahey <clahey@ximian.com>
- *
- * 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 "e-table-one.h"
-
-#define PARENT_TYPE e_table_model_get_type ()
-
-static ETableModelClass *parent_class = NULL;
-
-static int
-one_column_count (ETableModel *etm)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- return e_table_model_column_count(one->source);
- else
- return 0;
-}
-
-static int
-one_row_count (ETableModel *etm)
-{
- return 1;
-}
-
-static void *
-one_value_at (ETableModel *etm, int col, int row)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->data)
- return one->data[col];
- else
- return NULL;
-}
-
-static void
-one_set_value_at (ETableModel *etm, int col, int row, const void *val)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->data && one->source) {
- e_table_model_free_value(one->source, col, one->data[col]);
- one->data[col] = e_table_model_duplicate_value(one->source, col, val);
- }
-}
-
-static gboolean
-one_is_cell_editable (ETableModel *etm, int col, int row)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- return e_table_model_is_cell_editable(one->source, col, -1);
- else
- return FALSE;
-}
-
-/* The default for one_duplicate_value is to return the raw value. */
-static void *
-one_duplicate_value (ETableModel *etm, int col, const void *value)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- return e_table_model_duplicate_value(one->source, col, value);
- else
- return (void *)value;
-}
-
-static void
-one_free_value (ETableModel *etm, int col, void *value)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- e_table_model_free_value(one->source, col, value);
-}
-
-static void *
-one_initialize_value (ETableModel *etm, int col)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- return e_table_model_initialize_value (one->source, col);
- else
- return NULL;
-}
-
-static gboolean
-one_value_is_empty (ETableModel *etm, int col, const void *value)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- return e_table_model_value_is_empty (one->source, col, value);
- else
- return FALSE;
-}
-
-static char *
-one_value_to_string (ETableModel *etm, int col, const void *value)
-{
- ETableOne *one = E_TABLE_ONE(etm);
-
- if (one->source)
- return e_table_model_value_to_string (one->source, col, value);
- else
- return g_strdup("");
-}
-
-static void
-one_destroy (GtkObject *object)
-{
- ETableOne *one = E_TABLE_ONE(object);
-
- if (one->source) {
- int i;
- int col_count;
-
- col_count = e_table_model_column_count(one->source);
-
- if (one->data) {
- for (i = 0; i < col_count; i++) {
- e_table_model_free_value(one->source, i, one->data[i]);
- }
- }
-
- gtk_object_unref(GTK_OBJECT(one->source));
- }
-
- g_free(one->data);
-
- if (GTK_OBJECT_CLASS (parent_class)->destroy)
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
-}
-
-static void
-e_table_one_class_init (GtkObjectClass *object_class)
-{
- ETableModelClass *model_class = (ETableModelClass *) object_class;
-
- parent_class = gtk_type_class (E_TABLE_MODEL_TYPE);
-
- model_class->column_count = one_column_count;
- model_class->row_count = one_row_count;
- model_class->value_at = one_value_at;
- model_class->set_value_at = one_set_value_at;
- model_class->is_cell_editable = one_is_cell_editable;
- model_class->duplicate_value = one_duplicate_value;
- model_class->free_value = one_free_value;
- model_class->initialize_value = one_initialize_value;
- model_class->value_is_empty = one_value_is_empty;
- model_class->value_to_string = one_value_to_string;
-
- object_class->destroy = one_destroy;
-}
-
-static void
-e_table_one_init (GtkObject *object)
-{
- ETableOne *one = E_TABLE_ONE(object);
-
- one->source = NULL;
- one->data = NULL;
-}
-
-GtkType
-e_table_one_get_type (void)
-{
- static GtkType type = 0;
-
- if (!type){
- GtkTypeInfo info = {
- "ETableOne",
- sizeof (ETableOne),
- sizeof (ETableOneClass),
- (GtkClassInitFunc) e_table_one_class_init,
- (GtkObjectInitFunc) e_table_one_init,
- NULL, /* reserved 1 */
- NULL, /* reserved 2 */
- (GtkClassInitFunc) NULL
- };
-
- type = gtk_type_unique (PARENT_TYPE, &info);
- }
-
- return type;
-}
-
-ETableModel *
-e_table_one_new (ETableModel *source)
-{
- ETableOne *eto;
- int col_count;
- int i;
-
- eto = gtk_type_new (e_table_one_get_type ());
-
- eto->source = source;
-
- col_count = e_table_model_column_count(source);
- eto->data = g_new(void *, col_count);
- for (i = 0; i < col_count; i++) {
- eto->data[i] = e_table_model_initialize_value(source, i);
- }
-
- if (source)
- gtk_object_ref(GTK_OBJECT(source));
-
- return (ETableModel *) eto;
-}
-
-void
-e_table_one_commit (ETableOne *one)
-{
- if (one->source) {
- int empty = TRUE;
- int col;
- int cols = e_table_model_column_count(one->source);
- for (col = 0; col < cols; col++) {
- if (!e_table_model_value_is_empty(one->source, col, one->data[col])) {
- empty = FALSE;
- break;
- }
- }
- if (!empty) {
- e_table_model_append_row(one->source, E_TABLE_MODEL(one), 0);
- }
- }
-}
pan title='1999-09-27 11:12:05 +0800'>1999-09-272-2/+9 * corrected my email added db_handle, the "file descriptor" for an openedEskil Heyn Olsen1999-09-081-0/+38 * If you're going to AC_PATH_PROG then use the prog you find :-)Havoc Pennington1999-09-022-2/+7 * revert previous commitElliot Lee1999-08-191-1/+1 * BUGFIX #1092 - we now require at least gtk+ 1.2.3 (seeing as 1.2.1 isElliot Lee1999-08-191-1/+1 * Woohoo! everything seems to be compiling and working properly.. and the binar...gedit1999-08-082-18/+0 * merging gnome-conduit-check.m4 removal from the newconduit branchPeter Teichman1999-08-022-50/+5 * put gnome-conduit-check.m4 into HEAD.Peter Teichman1999-08-012-0/+55 * Exit with error code if configure fails.Elliot Lee1999-07-301-1/+1 * Fix popt i18n: AC_CHECK_FUNCS(dgettext) Make libgnomeui popt table set theElliot Lee1999-07-271-0/+1 * Add a comment to show how to get gtk 1.2 and glib 1.2 from cvslukka1999-07-082-1/+7 * fix'em bugs.Elliot Lee1999-07-071-0/+2 * Forbid compiling gnome with gtk 1.3 as it doesn't worklukka1999-07-072-0/+18 * Make "extra library" message slightly easier to read.Raja R Harinath1999-07-062-1/+5 * give -Wunused to gcc instead of -Wno-unused.Tim Janik1999-06-262-1/+5 * Add WITH_SMBFSMiguel de Icaza1999-06-231-1/+18 * Give an error when an attempt is made to move an empty directory intoRobert Brady1999-06-231-1/+1 * Make -lqthreads be detected by qt_null, not main - now works on Debianlukka1999-06-112-2/+8 * Add `gnome-bonobo-check.m4'.Raja R Harinath1999-05-122-0/+5 * made test program return 0, changed BONOBO_CHECK to not return "failure"Jacob Berkman1999-05-092-1/+7 * Fix invocation of AM_PATH_GNOME_PRINT. Sort lines.Raja R Harinath1999-04-173-3/+9 * Bononbized Gnumeric compiles.Arturo Espinosa1999-04-131-0/+1 * Updated bonobo checksArturo Espinosa1999-04-131-30/+6 * Added Bonobo testArturo Espinosa1999-04-131-0/+172 * Require GTK 1.2 -MIguelArturo Espinosa1999-04-071-1/+1 * Deleted duplicate VFS checks. GNOME_VFS_CHECKS now contains all VFSNorbert Warmuth1999-03-292-2/+30 * Cambia algunos nomrees del los inputfiles,Alan Aspuru Guzik1999-03-291-1/+1 * Revert unlogged change.Raja R Harinath1999-03-181-1/+1 * se arreglaron las graficas de la funcion de onda, por lo menos el HO jala bie...Alan Aspuru Guzik1999-03-171-1/+1 * Applied this change:Tomislav Vujec1999-03-112-3/+12 * Applied Bug fix:Raja R Harinath1999-03-112-1/+8 * Add a new paramater, which is passed to GNOME_INIT_HOOK.Raja R Harinath1999-03-102-6/+33 * Ok, this was bugging me.... ....for a while my objc compiler was borked. IMark Crichton1999-03-012-0/+11 * Remove a CVS conflict marker.Martin Baulig1999-02-281-1/+1 * Require at least gtk+ 1.2 (pointless getting bug reports with an oldGregory McLean1999-02-282-2/+6 * Require LibGTop >= 1.0.0.Martin Baulig1999-02-252-3/+3 * Fixes for release.Elliot Lee1999-02-251-4/+4 * look in the right prefixElliot Lee1999-02-251-3/+4 * Require LibGTop >= 0.100.0.Martin Baulig1999-02-242-1/+5 * Only add the compilation warnings if the compiler is GCC.Miguel de Icaza1999-02-232-0/+12 * ZVT_LIBSTimur Bakeyev1999-02-202-0/+6 * x Wonderful, now we have autoconf magic, --enable-pvm=[yes,no]Alan Aspuru Guzik1999-02-191-1/+1 * svn path=/trunk/; revision=675Owen Taylor1999-02-182-1/+5 * BSDI's shell fix..Timur Bakeyev1999-02-162-2/+10 * Reworked the paragraph formatting dialog.Chris Lahey1999-02-152-26/+170 * Applied a patch from Kenneth Stailey; use $CFLAGS when invoking $OBJC soMartin Baulig1999-02-102-1/+7 * Don't add warning and compiler flags to the CFLAGS and CXXFLAGS whenMartin Baulig1999-02-052-2/+17 * New automake conditional that's always false.Martin Baulig1999-02-044-2/+43 * Re-order logRaja R Harinath1999-01-281-5/+5 * Add recognition of 2 more libraries - pthreads and pthread-support buildTimur Bakeyev1999-01-242-1/+15 * New macro. This checks whether you have the LibGTop documentationMartin Baulig1999-01-242-0/+34 * Applied a patch from Owen Taylor to keep this in sync withMartin Baulig1999-01-212-1/+9 * Rewrite to be saner. Don't limit yourself to a fixed set of names for theRaja R Harinath1999-01-202-13/+13 * initial rev.Marcin Gorycki1999-01-191-0/+15 * Suggest using libtool 1.2dArturo Espinosa1999-01-191-1/+1 * x GMoiss about box fixedAlan Aspuru Guzik1999-01-131-1/+1 * x I must leave - Incomplete commit for bit to hack in the nightAlan Aspuru Guzik1999-01-121-1/+1 * (This is a patch from Nix <nix@esperi.demon.co.uk>) Brought C++ languageTero Pulkkinen1999-01-111-4/+10 * Couple of changes:Arturo Espinosa1999-01-081-0/+4 * Thu, 7 Jan 1999 16:59:35 +0100 Paolo Molaro <lupus@debian.org>Paolo Molaro1999-01-071-1/+4 * Added gnome-print-check.m4 to MACROSNat Friedman1999-01-062-0/+5 * A new autoconf macro to check for libgnomeprint. I've never writtenNat Friedman1999-01-061-0/+34 * Include dirent.h before checking whether `scandir' needs to be declared.Raja R Harinath1999-01-063-4/+12 * Fix the scandir detectionArturo Espinosa1999-01-062-1/+4 * Applied patch for DG/UX from Marc J. Fraioli:Martin Baulig1999-01-061-1/+1 * More fixes for 0_99_2Arturo Espinosa1999-01-051-1/+1 * Minor `make distcheck' fixes.Martin Baulig1999-01-041-0/+1 * Added and exported GNOME_APPLET_LIBS.Jeff Garzik1998-12-232-0/+6 * Merge the changes from GNOME_STABLE into HEAD.Arturo Espinosa1998-12-172-23/+5 * Add the hacked version of the gettext macros that is used in Gtk+ here.Martin Baulig1998-12-163-0/+357 * Just set the version number to 0.99.0 to keep it in sync with the restMartin Baulig1998-12-162-3/+3 * All parts of GNOME will now require LibGTop >= 0.30.0 which is the latestMartin Baulig1998-12-152-1/+7 * Fixed typo, from Markus Linnala <maage@cs.tut.fi>Jeff Garzik1998-12-101-1/+1 * Added gnome-orbit-check.m4.Martin Baulig1998-12-091-0/+1 * Make this work with more than one directory.Martin Baulig1998-12-092-1/+6 * Removed gnome-libgtop-sysdeps.m4 here.Martin Baulig1998-12-091-1/+0 * Moved into the LibGTop module. This file contains too much stuff thatMartin Baulig1998-12-092-249/+6 * Ok, the check for NO-AUTO-GEN is now working. This was borking up theMark Crichton1998-12-091-1/+1 * test -e is broken in Solaris /bin/sh, use test -r insteadFrederic Devernay1998-12-081-3/+3 * Make sure aclocal.m4 works before invoking gettextize.Martin Baulig1998-12-081-0/+2 * Make sure aclocal.m4 exists before making it writable.Martin Baulig1998-12-081-1/+1 * Invoke gettextize with the --copy parameter to prevent it from makingMartin Baulig1998-12-061-1/+3 * Recognice OpenBSD as a valid system and use the `freebsd' sysdepsMartin Baulig1998-12-062-1/+6 * clear GUILE_LIBS and GUILE_INCS if guile isn't there (quick fix)Manish Singh1998-12-062-0/+6 * Added --copy option to libtoolize. This stops libtoolize fromOle J. Tetlie1998-12-061-1/+1 * Recognice NetBSD as a valid system and use the `freebsd' sysdeps directoryMartin Baulig1998-12-062-1/+6 * Define this to be the same as LINUX_VERSION_CODE either fromMartin Baulig1998-12-042-0/+30 * Only check for the linux table () function on Linux systems.Martin Baulig1998-12-031-42/+41 * "Improve" indentation and messages somewhat.Raja R Harinath1998-12-032-69/+78 * Make it with builddir != srcdir again.Martin Baulig1998-12-031-3/+3 * Platform fixes. grep -q is not portable, do not use.Jeff Garzik1998-12-022-7/+12 * Run gettextize if needed. : Run libtoolize only if configure.in hasChangwoo Ryu1998-12-012-2/+35 * Re-arranged tests such that "--without-gnome" is fully supported. Not onlyJeff Garzik1998-11-302-55/+72 * Require GTK 1.1.5 -migArturo Espinosa1998-11-291-1/+1 * All parts of GNOME will now require LibGTop >= 0.29.0 which is the latestMartin Baulig1998-11-272-1/+6 * . libgnome/gnome-mime.c: read gnomedatadir/mime.types as well . InElliot Lee1998-11-271-10/+2 * Following names changed to bring MC in accordance with curses.m4:Pavel Roskin1998-11-261-1/+1 * Changed the call to GNOME_GNORBA_CHECK to GNOME_GNORBA_HOOK([],$2). BeforeJames Henstridge1998-11-202-1/+8 * allow setting $OBJ_DIR to specify building in a subdirElliot Lee1998-11-201-4/+14 * We need to check for <net/if_var.h> and conditionally include it beforeMartin Baulig1998-11-182-0/+17 * *** empty log message ***Marius Vollmer1998-11-181-0/+6 * Add GUILE_LIBS to LIBS when checking whether guile works. Adding them toMarius Vollmer1998-11-181-1/+3 * fix my email address in logAndrew T. Veliath1998-11-131-1/+1 * Remove AC_DEFINE(HAVE_ORBIT). Add AM_CONDITIONAL for HAVE_ORBIT.Andrew T. Veliath1998-11-133-15/+32 * Add GNOME_GNORBA_CHECK if gnome-config is found. New GNOMEGNORBA_LIBSAndrew T. Veliath1998-11-134-2/+49 * Remove easy-vsnprintf hack -- it doesn't work for Solaris 2.5 binariesRaja R Harinath1998-11-132-6/+7 * Fix stupid type (sterror_r -> strerror_r).Raja R Harinath1998-11-072-1/+5 * Set this unconditionally to `yes'. We'll soon be losing this variable.Raja R Harinath1998-11-052-10/+12 * use the ORBit-supplied name service stubs (in lib -lORBitCosNaming)Sebastian Wilhelmi1998-11-031-1/+1 * Added -Wshadow and -Woverloaded-virtual to the --enable-cxx-warnings=yesHavoc Pennington1998-10-291-1/+1 * Added new feature to get PPP/ISDN support:Martin Baulig1998-10-261-0/+56 * Add ORBIT_IDL detection; fix failure flag.Andrew T. Veliath1998-10-212-4/+10 * Simple-minded copy of GNOME_COMPILE_WARNINGS that sets CXXFLAGSHavoc Pennington1998-10-181-0/+41 * Now it should also work when building packages.Martin Baulig1998-10-121-2/+2 * Added `-Wno-unused'.Martin Baulig1998-10-122-1/+5 * Use `:' instead of the empty string if there is nothing to do since theMartin Baulig1998-10-122-0/+8 * Check for "guile-config" and then for "build-guile", if guile-configMarius Vollmer1998-10-112-10/+37 * Added optional third parameter which is the `script-if-enabled' parameterMartin Baulig1998-10-112-1/+7