aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-model.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-11-19 13:34:23 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-19 13:34:23 +0800
commitda4c37043ecbd7f1c74315f88db36dfa195d6c64 (patch)
tree231eb0410c8455218665f6913361c46ef61fdc00 /widgets/e-table/e-table-model.c
parenta4fe6af80877ae299217e74d2ca859189bbb4bb3 (diff)
downloadgsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.tar
gsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.tar.gz
gsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.tar.bz2
gsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.tar.lz
gsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.tar.xz
gsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.tar.zst
gsoc2013-evolution-da4c37043ecbd7f1c74315f88db36dfa195d6c64.zip
New E-table-item.[ch] -mig
svn path=/trunk/; revision=1419
Diffstat (limited to 'widgets/e-table/e-table-model.c')
-rw-r--r--widgets/e-table/e-table-model.c31
1 files changed, 28 insertions, 3 deletions
diff --git a/widgets/e-table/e-table-model.c b/widgets/e-table/e-table-model.c
index c3b6674130..e7c591c345 100644
--- a/widgets/e-table/e-table-model.c
+++ b/widgets/e-table/e-table-model.c
@@ -4,15 +4,23 @@
* Author:
* Miguel de Icaza (miguel@gnu.org)
*
- * (C) 1999 International GNOME Support.
+ * (C) 1999 Helix Code, Inc.
*/
#include <config.h>
+#include <gtk/gtksignal.h>
#include "e-table-model.h"
#define ETM_CLASS(e) ((ETableModelClass *)((GtkObject *)e)->klass)
static GtkObjectClass *e_table_model_parent_class;
+enum {
+ MODEL_CHANGED,
+ LAST_SIGNAL
+};
+
+static guint etm_signals [LAST_SIGNAL] = { 0, };
+
int
e_table_model_column_count (ETableModel *etable)
{
@@ -67,11 +75,21 @@ e_table_model_destroy (GtkObject *object)
}
static void
-e_table_model_class_init (GtkObjectClass *class)
+e_table_model_class_init (GtkObjectClass *object_class)
{
e_table_model_parent_class = gtk_type_class (gtk_object_get_type ());
- class->destroy = e_table_model_destroy;
+ object_class->destroy = e_table_model_destroy;
+
+ etm_signals [MODEL_CHANGED] =
+ gtk_signal_new ("model_changed",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (ETableModelClass, model_changed),
+ gtk_marshal_NONE__NONE,
+ GTK_TYPE_NONE, 0);
+
+ gtk_object_class_add_signals (object_class, etm_signals, LAST_SIGNAL);
}
GtkType
@@ -113,6 +131,13 @@ e_table_model_height (ETableModel *etable)
return size;
}
+void
+e_table_model_changed (ETableModel *e_table_model)
+{
+ gtk_signal_emit (GTK_OBJECT (e_table_model),
+ etm_signals [MODEL_CHANGED]);
+}
+
#if 0
int
e_table_model_max_col_width (ETableModel *etm, int col)