aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-29 19:15:22 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-29 19:15:22 +0800
commit0ec25e9430b540965abe2b1d233291b0f8754ac4 (patch)
treea6330b6502a3f7a1df8dea7f5b5e8de2e591f7e4 /widgets/table
parentab58720ece4787fbe3924e4da09a998123887b8c (diff)
downloadgsoc2013-evolution-0ec25e9430b540965abe2b1d233291b0f8754ac4.tar.gz
gsoc2013-evolution-0ec25e9430b540965abe2b1d233291b0f8754ac4.tar.zst
gsoc2013-evolution-0ec25e9430b540965abe2b1d233291b0f8754ac4.zip
Added a read only argument "model" to ETable.
2001-04-29 Christopher James Lahey <clahey@ximian.com> * e-table.c: Added a read only argument "model" to ETable. svn path=/trunk/; revision=9624
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index cf70454eff..2112b2ee2d 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -68,6 +68,7 @@ enum {
enum {
ARG_0,
ARG_LENGTH_THRESHOLD,
+ ARG_MODEL,
};
static gint et_signals [LAST_SIGNAL] = { 0, };
@@ -162,7 +163,7 @@ et_destroy (GtkObject *object)
if (et->group_info_change_id)
gtk_signal_disconnect (GTK_OBJECT (et->sort_info),
et->group_info_change_id);
-
+
if (et->reflow_idle_id)
g_source_remove(et->reflow_idle_id);
et->reflow_idle_id = 0;
@@ -1380,7 +1381,13 @@ e_table_get_printable (ETable *e_table)
static void
et_get_arg (GtkObject *o, GtkArg *arg, guint arg_id)
{
+ ETable *etable = E_TABLE (o);
+
switch (arg_id){
+ case ARG_MODEL:
+ GTK_VALUE_OBJECT (*arg) = (GtkObject *) etable->model;
+ break;
+
default:
break;
}
@@ -2279,6 +2286,8 @@ e_table_class_init (ETableClass *class)
gtk_object_add_arg_type ("ETable::length_threshold", GTK_TYPE_INT,
GTK_ARG_WRITABLE, ARG_LENGTH_THRESHOLD);
+ gtk_object_add_arg_type ("ETable::model", E_TABLE_MODEL_TYPE,
+ GTK_ARG_READABLE, ARG_MODEL);
}
E_MAKE_TYPE(e_table, "ETable", ETable, e_table_class_init, e_table_init, PARENT_TYPE);